GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD] Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd12.3". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /liu/sbin/smbd... [New LWP 104891] Core was generated by `smbd: client [2001:6b0:17:ac00:1000::ed11]'. #0 0x00000008049affc8 in _fcntl () from /lib/libc.so.7 (gdb) #0 0x00000008049affc8 in _fcntl () from /lib/libc.so.7 #1 0x0000000807aab8d6 in ?? () from /lib/libthr.so.3 #2 0x00000008048845b7 in fcntl () from /lib/libc.so.7 #3 0x0000000804bf0e5c in fcntl_lock (waitflag=true, len=1, off=38356, rw=1, tdb=0x80f32ed20) at ../../lib/tdb/common/lock.c:58 #4 tdb_brlock (tdb=tdb@entry=0x80f32ed20, rw_type=rw_type@entry=1, offset=offset@entry=38356, len=len@entry=1, flags=flags@entry=TDB_LOCK_WAIT) at ../../lib/tdb/common/lock.c:200 #5 0x0000000804bf142d in tdb_nest_lock (tdb=tdb@entry=0x80f32ed20, offset=offset@entry=38356, ltype=ltype@entry=1, flags=flags@entry=TDB_LOCK_WAIT) at ../../lib/tdb/common/lock.c:390 #6 0x0000000804bf1659 in tdb_lock_list (tdb=tdb@entry=0x80f32ed20, list=list@entry=9547, ltype=ltype@entry=1, waitflag=waitflag@entry=TDB_LOCK_WAIT) at ../../lib/tdb/common/lock.c:482 #7 0x0000000804bf1720 in tdb_lock (tdb=tdb@entry=0x80f32ed20, list=9547, ltype=ltype@entry=1) at ../../lib/tdb/common/lock.c:500 #8 0x0000000804beeb82 in tdb_find_lock_hash (tdb=tdb@entry=0x80f32ed20, key=..., hash=3596024997, locktype=locktype@entry=1, rec=rec@entry=0x7fffffffda30) at ../../lib/tdb/common/tdb.c:165 #9 0x0000000804beed65 in tdb_parse_record (tdb=0x80f32ed20, key=..., parser=parser@entry=0x80589df7d , private_data=private_data@entry=0x7fffffffda80) at ../../lib/tdb/common/tdb.c:329 #10 0x000000080589e2e2 in db_tdb_parse (db=, key=..., parser=0x802108824 , private_data=0x7fffffffdaf0) at ../../lib/dbwrap/dbwrap_tdb.c:273 #11 0x000000080589ba5f in dbwrap_parse_record (db=, key=..., parser=parser@entry=0x802108824 , private_data=private_data@entry=0x7fffffffdaf0) at ../../lib/dbwrap/dbwrap.c:425 #12 0x000000080210893b in dbwrap_watched_parse_record (db=0x80f3ffb60, key=..., parser=0x80210daf8 , private_data=0x7fffffffdb70) at ../../source3/lib/dbwrap/dbwrap_watch.c:783 #13 0x000000080589ba5f in dbwrap_parse_record (db=, key=..., parser=parser@entry=0x80210daf8 , private_data=private_data@entry=0x7fffffffdb70) at ../../lib/dbwrap/dbwrap.c:425 #14 0x000000080210f129 in g_lock_dump (ctx=, key=..., fn=fn@entry=0x8016ce703 , private_data=private_data@entry=0x7fffffffdc00) at ../../source3/lib/g_lock.c:1653 #15 0x00000008016cd0f3 in share_mode_g_lock_dump (key=..., fn=fn@entry=0x8016ce703 , private_data=private_data@entry=0x7fffffffdc00) at ../../source3/locking/share_mode_lock.c:96 #16 0x00000008016d0ec3 in fsp_update_share_mode_flags (fsp=0x80f37ad20) at ../../source3/locking/share_mode_lock.c:1181 #17 file_has_read_lease (fsp=fsp@entry=0x80f37ad20) at ../../source3/locking/share_mode_lock.c:1207 #18 0x00000008017736f6 in contend_level2_oplocks_begin_default ( type=, fsp=0x80f37ad20) at ../../source3/smbd/smb2_oplock.c:1282 #19 smbd_contend_level2_oplocks_begin (fsp=0x80f37ad20, type=) at ../../source3/smbd/smb2_oplock.c:1338 #20 0x00000008041b3840 in contend_level2_oplocks_begin ( fsp=fsp@entry=0x80f37ad20, type=type@entry=LEVEL2_CONTEND_WINDOWS_BRL) at ../../source3/lib/smbd_shim.c:72 #21 0x00000008016c7f77 in brl_lock_windows_default (br_lck=0x813027160, plock=0x7fffffffde60) at ../../source3/locking/brlock.c:460 #22 0x00000008016dd521 in vfswrap_brl_lock_windows (handle=, br_lck=, plock=) at ../../source3/modules/vfs_default.c:3469 #23 0x000000080171e84c in smb_vfs_call_brl_lock_windows ( handle=, br_lck=br_lck@entry=0x813027160, plock=plock@entry=0x7fffffffde60) at ../../source3/smbd/vfs.c:2702 #24 0x000000081a43a5c8 in smb_full_audit_brl_lock_windows (handle=0x80f3d8640, br_lck=0x813027160, plock=0x7fffffffde60) at ../../source3/modules/vfs_full_audit.c:2140 #25 0x000000080171e84c in smb_vfs_call_brl_lock_windows ( handle=, br_lck=br_lck@entry=0x813027160, plock=plock@entry=0x7fffffffde60) at ../../source3/smbd/vfs.c:2702 #26 0x00000008016c8230 in brl_lock (br_lck=br_lck@entry=0x813027160, smblctx=249464399, pid=..., start=start@entry=2147483539, size=size@entry=1, lock_type=lock_type@entry=WRITE_LOCK, lock_flav=lock_flav@entry=WINDOWS_LOCK, blocker_pid=0x7fffffffe068, psmblctx=0x7fffffffe080) at ../../source3/locking/brlock.c:1007 #27 0x00000008016c4394 in do_lock_fn (lck=lck@entry=0x7fffffffdf90, private_data=private_data@entry=0x7fffffffe030) at ../../source3/locking/locking.c:271 #28 0x00000008016d3ff5 in _share_mode_do_locked_vfs_allowed (id=..., fn=fn@entry=0x8016c42e0 , private_data=private_data@entry=0x7fffffffe030, location=location@entry=0x8017bd6d0 "../../source3/locking/locking.c:335") at ../../source3/locking/share_mode_lock.c:2927 #29 0x00000008016c5190 in do_lock (fsp=fsp@entry=0x80f37ad20, req_mem_ctx=req_mem_ctx@entry=0x813024fa0, req_guid=req_guid@entry=0x813024fa0, smblctx=, count=1, offset=2147483539, lock_type=WRITE_LOCK, lock_flav=WINDOWS_LOCK, pblocker_pid=0x7fffffffe180, psmblctx=0x7fffffffe168) at ../../source3/locking/locking.c:335 #30 0x000000080171597d in smbd_do_locks_try (fsp=0x80f37ad20, num_locks=1, locks=0x813024fa0, blocker_idx=blocker_idx@entry=0x7fffffffe166, blocking_pid=blocking_pid@entry=0x7fffffffe180, blocking_smblctx=blocking_smblctx@entry=0x7fffffffe168) at ../../source3/smbd/blocking.c:46 #31 0x000000080174eb76 in smbd_smb2_lock_try (req=req@entry=0x813024d30) at ../../source3/smbd/smb2_lock.c:590 #32 0x000000080174fd13 in smbd_smb2_lock_send (in_locks=, in_lock_count=1, in_lock_sequence=, fsp=0x80f37ad20, smb2req=0x8130248e0, ev=0x80f3a8060, mem_ctx=0x8130248e0) at ../../source3/smbd/smb2_lock.c:488 #33 smbd_smb2_request_process_lock (req=req@entry=0x8130248e0) at ../../source3/smbd/smb2_lock.c:150 #34 0x000000080173e8bf in smbd_smb2_request_dispatch ( req=req@entry=0x8130248e0) at ../../source3/smbd/smb2_server.c:3435 #35 0x000000080173f579 in smbd_smb2_io_handler (fde_flags=, xconn=0x80f3ae560) at ../../source3/smbd/smb2_server.c:5016 #36 smbd_smb2_connection_handler (ev=, fde=, flags=, private_data=) at ../../source3/smbd/smb2_server.c:5054 #37 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( fde=fde@entry=0x80f32f9c0, flags=, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:142 #38 0x0000000802bc5b98 in poll_event_loop_poll (tvalp=0x7fffffffe400, ev=0x80f3a8060) at ../../lib/tevent/tevent_poll.c:569 #39 poll_event_loop_once (ev=0x80f3a8060, location=) at ../../lib/tevent/tevent_poll.c:626 #40 0x0000000802bc26f4 in _tevent_loop_once (ev=ev@entry=0x80f3a8060, location=location@entry=0x8017ea800 "../../source3/smbd/smb2_process.c:2015") at ../../lib/tevent/tevent.c:823 #41 0x0000000802bc28f1 in tevent_common_loop_wait (ev=0x80f3a8060, location=0x8017ea800 "../../source3/smbd/smb2_process.c:2015") at ../../lib/tevent/tevent.c:949 #42 0x0000000802bc2953 in _tevent_loop_wait (ev=ev@entry=0x80f3a8060, location=location@entry=0x8017ea800 "../../source3/smbd/smb2_process.c:2015") at ../../lib/tevent/tevent.c:968 #43 0x000000080172c7e0 in smbd_process (ev_ctx=ev_ctx@entry=0x80f3a8060, msg_ctx=msg_ctx@entry=0x80f32e220, sock_fd=sock_fd@entry=34, interactive=interactive@entry=false) at ../../source3/smbd/smb2_process.c:2015 #44 0x0000000001029deb in smbd_accept_connection (ev=0x80f3a8060, fde=, flags=, private_data=) at ../../source3/smbd/server.c:1031 #45 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( fde=fde@entry=0x80f32f640, flags=, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:142 #46 0x0000000802bc5b98 in poll_event_loop_poll (tvalp=0x7fffffffe6b0, ev=0x80f3a8060) at ../../lib/tevent/tevent_poll.c:569 #47 poll_event_loop_once (ev=0x80f3a8060, location=) at ../../lib/tevent/tevent_poll.c:626 #48 0x0000000802bc26f4 in _tevent_loop_once (ev=ev@entry=0x80f3a8060, location=location@entry=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:823 #49 0x0000000802bc28f1 in tevent_common_loop_wait (ev=0x80f3a8060, location=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:949 #50 0x0000000802bc2953 in _tevent_loop_wait (ev=ev@entry=0x80f3a8060, location=location@entry=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:968 #51 0x000000000102b712 in smbd_parent_loop (parent=, ev_ctx=0x80f3a8060) at ../../source3/smbd/server.c:1373 #52 main (argc=, argv=) at ../../source3/smbd/server.c:2130 (gdb) quit