Bug 15758 - Segfault in vfs_btrfs
Summary: Segfault in vfs_btrfs
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: 4.20.1
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Jule Anger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-28 13:29 UTC by Andreas Schneider
Modified: 2024-11-28 13:48 UTC (History)
1 user (show)

See Also:


Attachments
patch for 4.21 (1.26 KB, patch)
2024-11-28 13:43 UTC, Andreas Schneider
slow: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2024-11-28 13:29:47 UTC
samba3.smb2.ioctl fs_specific(nt4_dc) crashes smbd on a btrfs filesystem.


UNEXPECTED(failure): samba3.smb2.ioctl fs_specific.copy_chunk_bug15644(nt4_dc)
REASON: Exception: Exception: ../../source4/torture/smb2/ioctl.c:7587: status was NT_STATUS_CONNECTION_DISCONNECTED, expected NT_STATUS_OBJECT_NAME_NOT_FOUND: FSCTL_SRV_COPYCHUNK


2024-11-28T10:40:00.629205+00:00 localnt4dc2.samba.example.com log.smbd[118984]:   Oplock break failed for file oplock_test/test_batch22a.dat -- replying anyway
2024-11-28T10:40:21.748164+00:00 localnt4dc2.samba.example.com log.smbd[119220]:   smbd_smb2_inbuf_parse_compound: SUICIDE: Exiting immediately with code 93
2024-11-28T10:40:38.936613+00:00 localnt4dc2.samba.example.com log.smbd[119406]:   fsctl_srv_copychunk_vfs_done: copy chunk failed [NT_STATUS_FILE_LOCK_CONFLICT] chunk [0] of [1]
2024-11-28T10:40:38.953958+00:00 localnt4dc2.samba.example.com log.smbd[119408]:   fsctl_srv_copychunk_vfs_done: copy chunk failed [NT_STATUS_FILE_LOCK_CONFLICT] chunk [0] of [1]
2024-11-28T10:40:38.979584+00:00 localnt4dc2.samba.example.com log.smbd[119412]:   fsctl_srv_copychunk_vfs_done: copy chunk failed [NT_STATUS_OBJECT_NAME_NOT_FOUND] chunk [0] of [1]
2024-11-28T10:40:39.013156+00:00 localnt4dc2.samba.example.com log.smbd[119414]:   ===============================================================
2024-11-28T10:40:39.013209+00:00 localnt4dc2.samba.example.com log.smbd[119414]:   INTERNAL ERROR: Signal 11: Segmentation fault in smbd (smbd[10.53.57.1) (client [10.53.57.11]) pid 119414 (4.21.2)
2024-11-28T10:40:39.013226+00:00 localnt4dc2.samba.example.com log.smbd[119414]:   If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
2024-11-28T10:40:39.013240+00:00 localnt4dc2.samba.example.com log.smbd[119414]:   ===============================================================
2024-11-28T10:40:39.013251+00:00 localnt4dc2.samba.example.com log.smbd[119414]:   PANIC (pid 119414): Signal 11: Segmentation fault in 4.21.2
2024-11-28T10:40:39.013636+00:00 localnt4dc2.samba.example.com log.smbd[119414]:   BACKTRACE: 29 stack frames:
   #0 bin/shared/private/libgenrand-private-samba.so(log_stack_trace+0x35) [0x7f1e88150fe5]
   #1 bin/shared/private/libgenrand-private-samba.so(smb_panic+0x15) [0x7f1e881517f5]
   #2 bin/shared/private/libgenrand-private-samba.so(+0x38ad) [0x7f1e881518ad]
   #3 /lib64/libc.so.6(+0x19dd0) [0x7f1e84a25dd0]
   #4 bin/shared/private/libsmbd-base-private-samba.so(vfs_offload_token_db_fetch_fsp+0x3c) [0x7f1e88c1b4fc]
   #5 /builddir/build/BUILD/samba-4.21.2-build/samba-4.21.2/bin/modules/vfs/btrfs.so(+0x55c1) [0x7f1e83ea15c1]
   #6 bin/shared/private/libsmbd-base-private-samba.so(+0x1508d1) [0x7f1e88c968d1]
   #7 bin/shared/private/libsmbd-base-private-samba.so(smb2_ioctl_network_fs+0x5ea) [0x7f1e88c9898a]
   #8 bin/shared/private/libsmbd-base-private-samba.so(smbd_smb2_request_process_ioctl+0x650) [0x7f1e88c99210]
   #9 bin/shared/private/libsmbd-base-private-samba.so(smbd_smb2_request_dispatch+0x1a84) [0x7f1e88c85e94]
   #10 bin/shared/private/libsmbd-base-private-samba.so(+0x141c72) [0x7f1e88c87c72]
   #11 bin/shared/private/libtevent-private-samba.so(tevent_common_invoke_fd_handler+0x98) [0x7f1e88669878]
   #12 bin/shared/private/libtevent-private-samba.so(+0x13ad6) [0x7f1e8866dad6]
   #13 bin/shared/private/libtevent-private-samba.so(+0xa924) [0x7f1e88664924]
   #14 bin/shared/private/libtevent-private-samba.so(_tevent_loop_once+0x99) [0x7f1e886664d9]
   #15 bin/shared/private/libtevent-private-samba.so(tevent_common_loop_wait+0x2b) [0x7f1e8866660b]
   #16 bin/shared/private/libtevent-private-samba.so(+0xa9a4) [0x7f1e886649a4]
   #17 bin/shared/private/libsmbd-base-private-samba.so(smbd_process+0x983) [0x7f1e88c74803]
   #18 ./bin/smbd(+0xd196) [0x55b6c2de8196]
   #19 bin/shared/private/libtevent-private-samba.so(tevent_common_invoke_fd_handler+0x98) [0x7f1e88669878]
   #20 bin/shared/private/libtevent-private-samba.so(+0x13ad6) [0x7f1e8866dad6]
   #21 bin/shared/private/libtevent-private-samba.so(+0xa924) [0x7f1e88664924]
   #22 bin/shared/private/libtevent-private-samba.so(_tevent_loop_once+0x99) [0x7f1e886664d9]
   #23 bin/shared/private/libtevent-private-samba.so(tevent_common_loop_wait+0x2b) [0x7f1e8866660b]
   #24 bin/shared/private/libtevent-private-samba.so(+0xa9a4) [0x7f1e886649a4]
   #25 ./bin/smbd(main+0x1529) [0x55b6c2deb679]
   #26 /lib64/libc.so.6(+0x3248) [0x7f1e84a0f248]
   #27 /lib64/libc.so.6(__libc_start_main+0x8b) [0x7f1e84a0f30b]
   #28 ./bin/smbd(_start+0x25) [0x55b6c2de6425]
2024-11-28T10:40:39.013864+00:00 localnt4dc2.samba.example.com log.smbd[119414]:   call_panic_action: Calling panic action [cd /builddir/build/BUILD/samba-4.21.2-build/samba-4.21.2 && /builddir/build/BUILD/samba-4.21.2-build/samba-4.21.2/selftest/gdb_backtrace 119414 ./bin/smbd]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f1e84ae9497 in wait4 () from /lib64/libc.so.6

### detailed backtrace

#0  0x00007f1e84ae9497 in wait4 () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f1e84a3a75b in do_system () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007f1e8889cb1a in call_panic_action.isra.0 (as_root=as_root@entry=false, why=<optimized out>) at ../../source3/lib/util.c:699
        lp_sub = <optimized out>
        cmd = 0x55b6f148a4f0 "cd /builddir/build/BUILD/samba-4.21.2-build/samba-4.21.2 && /builddir/build/BUILD/samba-4.21.2-build/samba-4.21.2/selftest/gdb_backtrace 119414 ./bin/smbd"
        result = <optimized out>
        __func__ = <optimized out>
#3  0x00007f1e8889268f in smb_panic_s3 (why=<optimized out>) at ../../source3/lib/util.c:715
No locals.
#4  0x00007f1e88151806 in smb_panic (why=why@entry=0x7ffee03a2190 "Signal 11: Segmentation fault") at ../../lib/util/fault.c:209
No locals.
#5  0x00007f1e881518ad in fault_report (sig=11) at ../../lib/util/fault.c:83
        signal_string = "Signal 11: Segmentation fault\000\000\000v\322\001\000\000\000\000\000\020&:\340\376\177\000\000@\":\340\376\177\000\000\a", '\000' <repeats 15 times>, "@\030G\361\266U\000\000 \":\340\376\177\000\000g\271\212\210\036\177\000\000\000\000\000\000\000\000\000\000\200':\340\376\177\000\000\t\000\000\000\000\000\000\000\220\000\000\000\000\000\000"
        counter = <optimized out>
        signal_string = <optimized out>
#6  sig_fault (sig=11) at ../../lib/util/fault.c:94
No locals.
#7  <signal handler called>
No symbol table info available.
#8  0x00007f1e88c1b4fc in vfs_offload_token_db_fetch_fsp (ctx=0x0, token_blob=token_blob@entry=0x55b6f13aae60, fsp=fsp@entry=0x7ffee03a2fb0) at ../../source3/modules/offload_token.c:203
        state = {fsp = 0x7ffee03a2fb0, status = {v = 0}}
        key = <optimized out>
        status = <optimized out>
        __func__ = "vfs_offload_token_db_fetch_fsp"
#9  0x00007f1e83ea15c1 in btrfs_offload_write_send (handle=0x55b6f148d8d0, mem_ctx=<optimized out>, ev=0x55b6f13c7920, fsctl=1327346, token=0x55b6f13aae60, transfer_offset=0, dest_fsp=0x55b6f14968e0, dest_off=0, num=4096) at ../../source3/modules/vfs_btrfs.c:266
        req = 0x55b6f14561c0
        state = 0x55b6f14563a0
        subreq = 0x0
        cr_args = {src_fd = 2, src_offset = 94244220152368, src_length = 140732660330512, dest_offset = 139769121598045}
        src_lck = {context = {smblctx = 140732660330608, tid = 2225658766, pid = {pid = 140732660330608, task_id = 2288988910, vnn = 32542, unique_id = 94244220512224}}, start = 94244220517344, size = 94244220517344, fnum = 139769115817869, lock_type = (unknown: 0xe03a30c0), lock_flav = (unknown: 0x7ffe)}
        dest_lck = {context = {smblctx = 1732790439, tid = 3761910048, pid = {pid = 140732660330784, task_id = 32, vnn = 0, unique_id = 94244220512144}}, start = 0, size = 94244220512144, fnum = 18446744073709551088, lock_type = READ_LOCK, lock_flav = WINDOWS_LOCK}
        src_off = 0
        src_fsp = 0x0
        ret = <optimized out>
        handle_offload_write = true
        do_locking = false
        status = <optimized out>
        ok = <optimized out>
        __func__ = "btrfs_offload_write_send"
        __FUNCTION__ = "btrfs_offload_write_send"
#10 0x00007f1e88c968d1 in fsctl_srv_copychunk_loop (req=req@entry=0x55b6f13aac30) at ../../source3/smbd/smb2_ioctl_network_fs.c:199
        state = <optimized out>
        subreq = 0x0
        length = <optimized out>
        source_off = <optimized out>
        target_off = <optimized out>
#11 0x00007f1e88c9898a in fsctl_srv_copychunk_send (smb2req=<optimized out>, mem_ctx=<optimized out>, ev=0x55b6f13c7920, ctl_code=4047154704, dst_fsp=0x55b6f14968e0, in_input=<optimized out>, in_max_output=12) at ../../source3/smbd/smb2_ioctl_network_fs.c:165
        req = 0x55b6f13aac30
        state = 0x55b6f13aae10
        ndr_ret = <optimized out>
        status = <optimized out>
        req = <optimized out>
        state = <optimized out>
        ndr_ret = <optimized out>
        status = <optimized out>
        __FUNCTION__ = <optimized out>
        __func__ = <optimized out>
#12 smb2_ioctl_network_fs (ctl_code=ctl_code@entry=1327346, ev=ev@entry=0x55b6f13c7920, req=req@entry=0x55b6f14925b0, state=<optimized out>) at ../../source3/smbd/smb2_ioctl_network_fs.c:660
        subreq = <optimized out>
        status = <optimized out>
#13 0x00007f1e88c99210 in smbd_smb2_ioctl_send (in_flags=1, mem_ctx=0x55b6f14a28e0, ev=0x55b6f13c7920, smb2req=0x55b6f14a28e0, fsp=0x55b6f14968e0, in_ctl_code=<optimized out>, in_input=..., in_max_output=<optimized out>) at ../../source3/smbd/smb2_ioctl.c:464
        req = 0x55b6f14925b0
        state = 0x55b6f1492790
        smbreq = 0x55b6f14a2d30
        req = <optimized out>
        state = <optimized out>
        smbreq = <optimized out>
        __func__ = <optimized out>
        __FUNCTION__ = <optimized out>
#14 smbd_smb2_request_process_ioctl (req=0x55b6f14a28e0) at ../../source3/smbd/smb2_ioctl.c:224
        status = <optimized out>
        inbody = <optimized out>
        min_buffer_offset = <optimized out>
        max_buffer_offset = <optimized out>
        min_output_offset = <optimized out>
        allowed_length_in = <optimized out>
        allowed_length_out = <optimized out>
        in_ctl_code = <optimized out>
        in_file_id_persistent = <optimized out>
        in_file_id_volatile = <optimized out>
        in_fsp = 0x55b6f14968e0
        in_input_offset = <optimized out>
        in_input_length = <optimized out>
        in_input_buffer = {data = 0x55b6f14a2c98 "deadbeefdeadbeefdeadbeef\001", length = <optimized out>}
        in_max_input_length = <optimized out>
        in_output_offset = <optimized out>
        in_output_length = <optimized out>
        in_output_buffer = <optimized out>
        in_max_output_length = <optimized out>
        in_flags = <optimized out>
        data_length_in = <optimized out>
        data_length_out = <optimized out>
        data_length_tmp = <optimized out>
        data_length_max = <optimized out>
        subreq = <optimized out>
#15 0x00007f1e88c85e94 in smbd_smb2_request_dispatch (req=req@entry=0x55b6f14a28e0) at ../../source3/smbd/smb2_server.c:3535
        xconn = <optimized out>
        call = <optimized out>
        intf_v = <optimized out>
        inhdr = <optimized out>
        opcode = 11
        flags = <optimized out>
        mid = <optimized out>
        status = <optimized out>
        session_status = <optimized out>
        allowed_flags = <optimized out>
        return_value = <optimized out>
        x = <optimized out>
        signing_required = <optimized out>
        encryption_desired = <optimized out>
        encryption_required = <optimized out>
        session_expired = false
        __FUNCTION__ = "smbd_smb2_request_dispatch"
        __func__ = "smbd_smb2_request_dispatch"
        _root_ioctl_call = {opcode = 11, fileid_ofs = 0, need_session = false, need_tcon = false, as_root = true, modify = false}
#16 0x00007f1e88c87c72 in smbd_smb2_advance_incoming (xconn=0x55b6f1478610, n=<optimized out>) at ../../source3/smbd/smb2_server.c:5112
        sconn = 0x55b6f14862b0
        state = 0x55b6f1478710
        min_recvfile_size = 4294967295
        status = <optimized out>
        ok = <optimized out>
        req = 0x55b6f14a28e0
        now = <optimized out>
        sconn = <optimized out>
        state = <optimized out>
        req = <optimized out>
        min_recvfile_size = <optimized out>
        status = <optimized out>
        now = <optimized out>
        ok = <optimized out>
        got_full = <optimized out>
        __FUNCTION__ = <optimized out>
        ofs = <optimized out>
#17 smbd_smb2_io_handler (xconn=0x55b6f1478610, fde_flags=<optimized out>) at ../../source3/smbd/smb2_server.c:5227
        state = 0x55b6f1478710
        recvmsg_flags = 16448
        ret = <optimized out>
        err = 0
        status = <optimized out>
        retry = false
        state = <optimized out>
        recvmsg_flags = <optimized out>
        ret = <optimized out>
        err = <optimized out>
        retry = <optimized out>
        status = <optimized out>
        again = <optimized out>
#18 smbd_smb2_connection_handler (ev=<optimized out>, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out>) at ../../source3/smbd/smb2_server.c:5257
        xconn = 0x55b6f1478610
        status = <optimized out>
#19 0x00007f1e88669878 in tevent_common_invoke_fd_handler (fde=0x55b6f14879b0, flags=1, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:174
        handler_ev = 0x55b6f13c7920
#20 0x00007f1e8866dad6 in epoll_event_loop (epoll_ev=0x55b6f146a6d0, tvalp=0x7ffee03a3360) at ../../lib/tevent/tevent_epoll.c:696
        fde = <optimized out>
        effective_flags = <optimized out>
        flags = <optimized out>
        got_error = <optimized out>
        selected = <optimized out>
        ret = 1
        i = 0
        timeout = <optimized out>
        wait_errno = <optimized out>
        events = {{events = 1, data = {ptr = 0x55b6f14879b0, fd = -246908496, u32 = 4048058800, u64 = 94244220467632}}}
        ret = <optimized out>
        i = <optimized out>
        events = <optimized out>
        timeout = <optimized out>
        wait_errno = <optimized out>
        fde = <optimized out>
        selected = <optimized out>
        effective_flags = <optimized out>
        flags = <optimized out>
        got_error = <optimized out>
        add_flags = <optimized out>
#21 epoll_event_loop_once (ev=<optimized out>, location=<optimized out>) at ../../lib/tevent/tevent_epoll.c:926
        epoll_ev = 0x55b6f146a6d0
        tval = {tv_sec = 0, tv_usec = 999699}
        panic_triggered = false
#22 0x00007f1e88664924 in std_event_loop_once (ev=0x55b6f13c7920, location=0x7f1e88be9a20 "../../source3/smbd/smb2_process.c:2163") at ../../lib/tevent/tevent_standard.c:110
        glue_ptr = <optimized out>
        glue = 0x55b6f13c7ac0
        ret = <optimized out>
#23 0x00007f1e886664d9 in _tevent_loop_once (ev=ev@entry=0x55b6f13c7920, location=location@entry=0x7f1e88be9a20 "../../source3/smbd/smb2_process.c:2163") at ../../lib/tevent/tevent.c:820
        ret = <optimized out>
        nesting_stack_ptr = 0x0
        __func__ = "_tevent_loop_once"
#24 0x00007f1e8866660b in tevent_common_loop_wait (ev=0x55b6f13c7920, location=0x7f1e88be9a20 "../../source3/smbd/smb2_process.c:2163") at ../../lib/tevent/tevent.c:949
        ret = <optimized out>
#25 0x00007f1e886649a4 in std_event_loop_wait (ev=0x55b6f13c7920, location=0x7f1e88be9a20 "../../source3/smbd/smb2_process.c:2163") at ../../lib/tevent/tevent_standard.c:141
        glue_ptr = <optimized out>
        glue = 0x55b6f13c7ac0
        ret = <optimized out>
#26 0x00007f1e88c74803 in smbd_process (ev_ctx=ev_ctx@entry=0x55b6f13c7920, msg_ctx=msg_ctx@entry=0x55b6f1373330, sock_fd=sock_fd@entry=41, interactive=interactive@entry=false) at ../../source3/smbd/smb2_process.c:2163
        lp_sub = 0x7f1e8889e400 <s3_global_substitution>
        client = 0x55b6f13c0d90
        sconn = 0x55b6f14862b0
        xconn = 0x55b6f1478610
        locaddr = <optimized out>
        remaddr = <optimized out>
        ret = <optimized out>
        status = <optimized out>
        tv = {tv_sec = 1732790438, tv_usec = 983065}
        trace_state = {ev = 0x55b6f13c7920, frame = 0x55b6f148a490, profile_idle = {start = 0, stats = 0x0}, before_wait_tv = {tv_sec = 1732790438, tv_usec = 983065}, after_wait_tv = {tv_sec = 1732790438, tv_usec = 983065}}
        debug = false
        now = 133772640389830650
        chroot_dir = <optimized out>
        rc = <optimized out>
        __func__ = "smbd_process"
        __FUNCTION__ = "smbd_process"
#27 0x000055b6c2de8196 in smbd_accept_connection (ev=0x55b6f13c7920, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out>) at ../../source3/smbd/server.c:1033
        addrstr = "10.53.57.11", '\000' <repeats 29 times>, " y<\361\266U"
        status = <optimized out>
        s = 0x0
        msg_ctx = 0x55b6f1373330
        addr = {ss_family = 2, __ss_padding = "r\323\n59\v", '\000' <repeats 64 times>, " y<\361\266U\000\000\260\002G\361\266U\000\000\330\002G\361\266U\000\000@6:\340\376\177\000\000\364\300f\210\036\177\000\000\246HHg\000\000\000", __ss_align = 139769114183510}
        in_addrlen = 16
        fd = 41
        pid = <optimized out>
        __FUNCTION__ = "smbd_accept_connection"
#28 0x00007f1e88669878 in tevent_common_invoke_fd_handler (fde=0x55b6f14878a0, flags=1, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:174
        handler_ev = 0x55b6f13c7920
#29 0x00007f1e8866dad6 in epoll_event_loop (epoll_ev=0x55b6f13c7c10, tvalp=0x7ffee03a36c0) at ../../lib/tevent/tevent_epoll.c:696
        fde = <optimized out>
        effective_flags = <optimized out>
        flags = <optimized out>
        got_error = <optimized out>
        selected = <optimized out>
        ret = 1
        i = 0
        timeout = <optimized out>
        wait_errno = <optimized out>
        events = {{events = 1, data = {ptr = 0x55b6f14878a0, fd = -246908768, u32 = 4048058528, u64 = 94244220467360}}}
        ret = <optimized out>
        i = <optimized out>
        events = <optimized out>
        timeout = <optimized out>
        wait_errno = <optimized out>
        fde = <optimized out>
        selected = <optimized out>
        effective_flags = <optimized out>
        flags = <optimized out>
        got_error = <optimized out>
        add_flags = <optimized out>
#30 epoll_event_loop_once (ev=<optimized out>, location=<optimized out>) at ../../lib/tevent/tevent_epoll.c:926
        epoll_ev = 0x55b6f13c7c10
        tval = {tv_sec = 0, tv_usec = 999974}
        panic_triggered = false
#31 0x00007f1e88664924 in std_event_loop_once (ev=0x55b6f13c7920, location=0x55b6c2de24a0 "../../source3/smbd/server.c:1382") at ../../lib/tevent/tevent_standard.c:110
        glue_ptr = <optimized out>
        glue = 0x55b6f13c7ac0
        ret = <optimized out>
#32 0x00007f1e886664d9 in _tevent_loop_once (ev=ev@entry=0x55b6f13c7920, location=location@entry=0x55b6c2de24a0 "../../source3/smbd/server.c:1382") at ../../lib/tevent/tevent.c:820
        ret = <optimized out>
        nesting_stack_ptr = 0x0
        __func__ = "_tevent_loop_once"
#33 0x00007f1e8866660b in tevent_common_loop_wait (ev=0x55b6f13c7920, location=0x55b6c2de24a0 "../../source3/smbd/server.c:1382") at ../../lib/tevent/tevent.c:949
        ret = <optimized out>
#34 0x00007f1e886649a4 in std_event_loop_wait (ev=0x55b6f13c7920, location=0x55b6c2de24a0 "../../source3/smbd/server.c:1382") at ../../lib/tevent/tevent_standard.c:141
        glue_ptr = <optimized out>
        glue = 0x55b6f13c7ac0
        ret = <optimized out>
#35 0x000055b6c2deb679 in smbd_parent_loop (parent=0x55b6f13bb6e0, ev_ctx=0x55b6f13c7920) at ../../source3/smbd/server.c:1382
        trace_state = {frame = 0x55b6f13c89e0}
        ret = 0
        trace_state = <optimized out>
        ret = <optimized out>
        __FUNCTION__ = <optimized out>
#36 main (argc=<optimized out>, argv=<optimized out>) at ../../source3/smbd/server.c:2354
        cmdline_daemon_cfg = <optimized out>
        log_stdout = <optimized out>
        ports = 0x0
        profile_level = 0x0
        opt = <optimized out>
        pc = <optimized out>
        main_server_id = {pid = 62715, task_id = 0, vnn = 4294967295, unique_id = 13476819881168813694}
        long_options = {{longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f1e8724b160 <poptHelpOptions>, val = 0, descrip = 0x55b6c2de19b8 "Help options:", argDescrip = 0x0}, {longName = 0x55b6c2de1c0b "build-options", shortName = 98 'b', argInfo = 0, arg = 0x0, val = 98, descrip = 0x55b6c2de1686 "Print build options", argDescrip = 0x0}, {longName = 0x55b6c2de19f9 "port", shortName = 112 'p', argInfo = 1, arg = 0x7ffee03a3860, val = 0, descrip = 0x55b6c2de16b2 "Listen on the specified ports", argDescrip = 0x0}, {longName = 0x55b6c2de1b3a "profiling-level", shortName = 80 'P', argInfo = 1, arg = 0x7ffee03a3858, val = 0, descrip = 0x55b6c2de19cf "Set profiling level", argDescrip = 0x55b6c2de1c19 "PROFILE_LEVEL"}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f1e88d3e100 <popt_common_samba>, val = 0, descrip = 0x55b6c2de19e3 "Common Samba options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f1e88d3db00 <popt_common_daemon>, val = 0, descrip = 0x55b6c2de1c27 "Daemon options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f1e88d3dc20 <popt_common_version>, val = 0, descrip = 0x55b6c2de180f "Version options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}
        parent = 0x55b6f13bb6e0
        frame = <optimized out>
        status = <optimized out>
        ev_ctx = 0x55b6f13c7920
        msg_ctx = 0x55b6f1373330
        server_id = {pid = 62715, task_id = 0, vnn = 4294967295, unique_id = 10155410361000258337}
        se = <optimized out>
        profiling_level = <optimized out>
        np_dir = <optimized out>
        lp_sub = <optimized out>
        ok = <optimized out>
        smbd_shim_fns = {change_to_root_user = 0x7f1e88c45d00 <smbd_change_to_root_user>, become_authenticated_pipe_user = 0x7f1e88c45db0 <smbd_become_authenticated_pipe_user>, unbecome_authenticated_pipe_user = 0x7f1e88c45eb0 <smbd_unbecome_authenticated_pipe_user>, contend_level2_oplocks_begin = 0x7f1e88cbdbf0 <smbd_contend_level2_oplocks_begin>, contend_level2_oplocks_end = 0x7f1e88cb0860 <smbd_contend_level2_oplocks_end>, become_root = 0x7f1e88c45e80 <smbd_become_root>, unbecome_root = 0x7f1e88c45ec0 <smbd_unbecome_root>, exit_server = 0x7f1e88cadb00 <smbd_exit_server>, exit_server_cleanly = 0x7f1e88cadb20 <smbd_exit_server_cleanly>}
        __func__ = "main"
        __FUNCTION__ = "main"

### info locals

No symbol table info available.
/builddir/build/BUILD/samba-4.21.2-build/samba-4.21.2/st/tmp/gdb_backtrace_main.ibrmGL2hTh:20: Error in sourced command file:
No symbol "PyList_New" in current context.
[Inferior 1 (process 119414) detached]
Comment 1 Andreas Schneider 2024-11-28 13:43:14 UTC
Created attachment 18503 [details]
patch for 4.21

The offload code in vfs_btrfs has been removed with 909edd6e8a5222c996553a3565b6d4b20da77e71 in master
Comment 2 Ralph Böhme 2024-11-28 13:48:52 UTC
Reassigning to Jule for inclusion in 4.21.