Skip to content

ZED crashes frequently after recent changes to ZED #11924

Closed
@don-brady

Description

@don-brady
Type Version/Name
Distribution Name Ubuntu
Distribution Version 18.04.5 LTS
Linux Kernel 5.4.0-1043
Architecture x86_64
ZFS Version 2021.04.19.20-562e20d
SPL Version 2021.04.19.20-562e20d

Describe the problem you're observing

ZED is crashing. Looks like a regression from commit ca2ce9c50b6b579

Describe how to reproduce the problem

Happens during our internal test runs. I will try and isolate.

Include any warning/errors/backtraces from the system logs

#1  0x00007f456ba74921 in __GI_abort () at abort.c:79
#2  0x00007f456ca9c805 in libspl_assertf (file=0x7f456caab199 "../../module/avl/avl.c",
    func=0x7f456caab1b0 <__FUNCTION__.5089> "avl_add", line=640, format=<optimized out>) at assert.c:45
#3  0x00007f456caa4cfc in libspl_assert (line=640, func=<synthetic pointer>, file=0x7f456caab199 "../../module/avl/avl.c",
    buf=0x7f456caab170 "avl_find(tree, new_node, &where) == NULL") at ../../lib/libspl/include/assert.h:46
#4  0x00007f456caa501b in avl_add (tree=tree@entry=0x5567dedee320 <_launched_processes>, new_node=new_node@entry=0x5567dee98080)
    at ../../module/avl/avl.c:640
#5  0x00005567debe14f9 in _zed_exec_fork_child (eid=eid@entry=2487, dir=<optimized out>, prog=prog@entry=0x5567dee8d580 "all-syslog.sh",
    env=env@entry=0x5567dee97bc0, zfd=7, in_foreground=B_TRUE) at zed_exec.c:180
#6  0x00005567debe1b3f in zed_exec_process (eid=2487, class=<optimized out>, subclass=subclass@entry=0x5567dee95d90 "history_event",
    zcp=zcp@entry=0x7ffc31d582f0, envs=envs@entry=0x5567dee96a30) at zed_exec.c:360
#7  0x00005567debe1253 in zed_event_service (zcp=0x7ffc31d582f0) at zed_event.c:979
#8  0x00005567debdc7e0 in main (argc=<optimized out>, argv=<optimized out>) at zed.c:291```

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions