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 105649] Core was generated by `smbd: client [2001:6b0:17:ac00:1000::5317]'. #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=3111656176, locktype=locktype@entry=1, rec=rec@entry=0x7fffffffd960) 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=0x7fffffffd9b0) at ../../lib/tdb/common/tdb.c:329 #10 0x000000080589e2e2 in db_tdb_parse (db=, key=..., parser=0x802108824 , private_data=0x7fffffffda20) at ../../lib/dbwrap/dbwrap_tdb.c:273 #11 0x000000080589ba5f in dbwrap_parse_record (db=, key=..., parser=parser@entry=0x802108824 , private_data=private_data@entry=0x7fffffffda20) at ../../lib/dbwrap/dbwrap.c:425 #12 0x000000080210893b in dbwrap_watched_parse_record (db=0x80f3ffb60, key=..., parser=0x80210daf8 , private_data=0x7fffffffdaa0) 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=0x7fffffffdaa0) at ../../lib/dbwrap/dbwrap.c:425 #14 0x000000080210f129 in g_lock_dump (ctx=, key=..., fn=fn@entry=0x8016d0496 , private_data=private_data@entry=0x7fffffffdb00) at ../../source3/lib/g_lock.c:1653 #15 0x00000008016d1799 in fetch_share_mode_unlocked (mem_ctx=, id=...) at ../../source3/locking/share_mode_lock.c:1567 #16 0x00000008016c6b0e in get_file_infos (id=..., name_hash=name_hash@entry=0, delete_on_close=delete_on_close@entry=0x0, write_time=write_time@entry=0x7fffffffdc80) at ../../source3/locking/locking.c:652 #17 0x00000008016ea7d5 in smbd_dirptr_get_entry (ctx=ctx@entry=0x80f3b7640, dirptr=dirptr@entry=0x80f3a0da0, mask=mask@entry=0x80f32d0a0 "*", dirtype=dirtype@entry=22, dont_descend=dont_descend@entry=false, ask_sharemode=ask_sharemode@entry=true, get_dosmode_in=true, match_fn=0x8016f36d3 , mode_fn=0x8016f336b , private_data=0x7fffffffdf80, _fname=0x7fffffffdf50, _smb_fname=0x7fffffffdf58, _mode=0x7fffffffdf44, _prev_offset=0x7fffffffdf48) at ../../source3/smbd/dir.c:1050 #18 0x00000008016f75ae in smbd_dirptr_lanman2_entry ( ctx=ctx@entry=0x80f3b7640, conn=0x80f3a8c60, dirptr=0x80f3a0da0, flags2=, path_mask=, dirtype=22, info_level=260, requires_resume_key=0, dont_descend=false, ask_sharemode=true, get_dosmode=true, align=8 '\b', do_pad=false, ppdata=0x80f3b76a0, base_data=0x80f37c060 "\270", end_data=0x80f37e057 "", space_remaining=2988, _smb_fname=0x7fffffffe0f0, got_exact_match=0x7fffffffe0ee, _last_entry_off=0x80f3b76c4, name_list=0x0, file_id=0x7fffffffe100) at ../../source3/smbd/smb2_trans2.c:1958 #19 0x0000000801754d03 in smb2_query_directory_next_entry ( req=req@entry=0x80f3b7480) at ../../source3/smbd/smb2_query_directory.c:561 #20 0x000000080175639b in smbd_smb2_query_directory_send ( in_file_name=, in_output_buffer_length=, in_file_index=, in_flags=0 '\000', in_file_info_class=3 '\003', fsp=0x80f376720, smb2req=0x813118060, ev=0x80f3a8060, mem_ctx=0x813118060) at ../../source3/smbd/smb2_query_directory.c:529 #21 smbd_smb2_request_process_query_directory (req=req@entry=0x813118060) at ../../source3/smbd/smb2_query_directory.c:129 #22 0x000000080173eca6 in smbd_smb2_request_dispatch ( req=req@entry=0x813118060) at ../../source3/smbd/smb2_server.c:3470 #23 0x000000080173f579 in smbd_smb2_io_handler (fde_flags=, xconn=0x80f3ae560) at ../../source3/smbd/smb2_server.c:5016 #24 smbd_smb2_connection_handler (ev=, fde=, flags=, private_data=) at ../../source3/smbd/smb2_server.c:5054 #25 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( fde=fde@entry=0x80f32f8e0, flags=, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:142 #26 0x0000000802bc5b98 in poll_event_loop_poll (tvalp=0x7fffffffe400, ev=0x80f3a8060) at ../../lib/tevent/tevent_poll.c:569 #27 poll_event_loop_once (ev=0x80f3a8060, location=) at ../../lib/tevent/tevent_poll.c:626 #28 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 #29 0x0000000802bc28f1 in tevent_common_loop_wait (ev=0x80f3a8060, location=0x8017ea800 "../../source3/smbd/smb2_process.c:2015") at ../../lib/tevent/tevent.c:949 #30 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 #31 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 #32 0x0000000001029deb in smbd_accept_connection (ev=0x80f3a8060, fde=, flags=, private_data=) at ../../source3/smbd/server.c:1031 #33 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( fde=fde@entry=0x80f32f640, flags=, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:142 #34 0x0000000802bc5b98 in poll_event_loop_poll (tvalp=0x7fffffffe6b0, ev=0x80f3a8060) at ../../lib/tevent/tevent_poll.c:569 #35 poll_event_loop_once (ev=0x80f3a8060, location=) at ../../lib/tevent/tevent_poll.c:626 #36 0x0000000802bc26f4 in _tevent_loop_once (ev=ev@entry=0x80f3a8060, location=location@entry=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:823 #37 0x0000000802bc28f1 in tevent_common_loop_wait (ev=0x80f3a8060, location=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:949 #38 0x0000000802bc2953 in _tevent_loop_wait (ev=ev@entry=0x80f3a8060, location=location@entry=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:968 #39 0x000000000102b712 in smbd_parent_loop (parent=, ev_ctx=0x80f3a8060) at ../../source3/smbd/server.c:1373 #40 main (argc=, argv=) at ../../source3/smbd/server.c:2130 (gdb) quit