Skip to content

the init script /etc/init.d/zfs-zed broken on systems using openrc. #18653

@rosaceous

Description

@rosaceous

System information

Type Version/Name
Distribution Name
Distribution Version
Kernel Version
Architecture
OpenZFS Version

Describe the problem you're observing

the command "/etc/init.d/zfs-zed status" always crash the bash process.

Describe how to reproduce the problem

switchs to your console, type "/etc/init.d/zfs-zed status".

the script "/etc/zfs/zfs-functions" introduces a function "zfs_daemon_status()", which will call the function "status()" when it does not find the function "status_of_proc()", the behavior leads to a dead loop, as the function "status()" is redefined to call the "zfs_daemon_status()" again.

Include any warning/errors/backtraces from the system logs

no console output, and the kernel reports,

openrc-run.sh[5835]: segfault at 7ffd3947cff0 ip 0000564cc66dd43e sp 00007ffd3947cfe0 error 6 in bash[6b43e,564cc6679000+b1000] likely on CPU 1 (core 1, socket 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions