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 101602] Core was generated by `smbd: client [2001:6b0:17:ac00:2000::58fb]'. #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=0x80f32ec40) at ../../lib/tdb/common/lock.c:58 #4 tdb_brlock (tdb=tdb@entry=0x80f32ec40, 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=0x80f32ec40, 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=0x80f32ec40, 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=0x80f32ec40, list=9547, ltype=ltype@entry=1) at ../../lib/tdb/common/lock.c:500 #8 0x0000000804beeb82 in tdb_find_lock_hash (tdb=tdb@entry=0x80f32ec40, key=..., hash=2623254534, locktype=locktype@entry=1, rec=rec@entry=0x7fffffffd270) at ../../lib/tdb/common/tdb.c:165 #9 0x0000000804beed65 in tdb_parse_record (tdb=0x80f32ec40, key=..., parser=parser@entry=0x80589df7d , private_data=private_data@entry=0x7fffffffd2c0) at ../../lib/tdb/common/tdb.c:329 #10 0x000000080589e2e2 in db_tdb_parse (db=, key=..., parser=0x8016c7abb , private_data=0x7fffffffd340) at ../../lib/dbwrap/dbwrap_tdb.c:273 #11 0x000000080589ba5f in dbwrap_parse_record (db=, key=..., parser=parser@entry=0x8016c7abb , private_data=private_data@entry=0x7fffffffd340) at ../../lib/dbwrap/dbwrap.c:425 #12 0x00000008016c9b11 in brl_get_locks_readonly (fsp=fsp@entry=0x80fb5fca0) at ../../source3/locking/brlock.c:1887 #13 0x000000080170b91e in file_has_brlocks (fsp=0x80fb5fca0) at ../../source3/smbd/open.c:2263 #14 delay_for_oplock (pgranted=, poplock_type=, first_open_attempt=true, create_disposition=, have_sharing_violation=false, lck=0x7fffffffdc70, lease=0x0, oplock_request=0, fsp=0x80fb5fca0) at ../../source3/smbd/open.c:2780 #15 handle_share_mode_lease (pgranted=, poplock_type=, first_open_attempt=true, lease=0x0, oplock_request=0, share_access=7, access_mask=128, create_disposition=, lck=0x7fffffffdc70, fsp=0x80fb5fca0) at ../../source3/smbd/open.c:2896 #16 check_and_store_share_mode (first_open_attempt=true, lease=0x0, oplock_request=0, share_access=7, access_mask=128, create_disposition=, lck=0x7fffffffdc70, req=0x8131c58a0, fsp=0x80fb5fca0) at ../../source3/smbd/open.c:3364 #17 open_ntcreate_lock_add_entry (lck=0x7fffffffdc70, keep_locked=0x7fffffffd9e8, private_data=0x7fffffffdc50) at ../../source3/smbd/open.c:3709 #18 0x00000008016cf882 in share_mode_entry_prepare_lock_fn ( glck=0x7fffffffd540, cb_private=0x7fffffffd9a0) at ../../source3/locking/share_mode_lock.c:2978 #19 0x000000080210bf30 in g_lock_lock_cb_run_and_store ( cb_state=cb_state@entry=0x7fffffffd540) at ../../source3/lib/g_lock.c:597 #20 0x000000080210d32e in g_lock_lock_simple_fn (rec=0x7fffffffd760, value=..., private_data=0x7fffffffd910) at ../../source3/lib/g_lock.c:1212 #21 0x000000080210a583 in dbwrap_watched_do_locked_fn ( backend_rec=backend_rec@entry=0x7fffffffd660, backend_value=..., private_data=private_data@entry=0x7fffffffd730) at ../../source3/lib/dbwrap/dbwrap_watch.c:458 #22 0x000000080589e611 in db_tdb_do_locked (db=, key=..., fn=0x80210a543 , private_data=0x7fffffffd730) at ../../lib/dbwrap/dbwrap_tdb.c:208 #23 0x000000080589bd9c in dbwrap_do_locked (db=0x80f3ffa60, key=..., fn=fn@entry=0x80210a543 , private_data=private_data@entry=0x7fffffffd730) at ../../lib/dbwrap/dbwrap.c:553 #24 0x00000008021097f4 in dbwrap_watched_do_locked (db=0x80f3ffb60, key=..., fn=0x80210d1a5 , private_data=0x7fffffffd910) at ../../source3/lib/dbwrap/dbwrap_watch.c:480 #25 0x000000080589bd9c in dbwrap_do_locked (db=0x80f3ffb60, key=..., fn=fn@entry=0x80210d1a5 , private_data=private_data@entry=0x7fffffffd910) at ../../lib/dbwrap/dbwrap.c:553 #26 0x000000080210e970 in g_lock_lock (ctx=0x80fa0ad60, key=..., type=type@entry=G_LOCK_WRITE, timeout=..., cb_fn=0x8016cf7f0 , cb_private=0x7fffffffd9a0) at ../../source3/lib/g_lock.c:1267 #27 0x00000008016d4213 in _share_mode_entry_prepare_lock ( prepare_state=prepare_state@entry=0x7fffffffdc50, id=..., servicepath=, smb_fname=smb_fname@entry=0x813198380, old_write_time=old_write_time@entry=0x7fffffffdb50, fn=fn@entry=0x80170b120 , private_data=private_data@entry=0x7fffffffdc50, location=0x8017dc7f8 "../../source3/smbd/open.c:4288") at ../../source3/locking/share_mode_lock.c:3033 #28 0x000000080170fda5 in open_file_ntcreate (fsp=0x80fb5fca0, pinfo=0x7fffffffdb28, smb_fname_atname=0x813166d00, parent_dir_fname=0x81303b580, private_flags=0, lease=, oplock_request=0, new_dos_attributes=0, create_options=2097152, create_disposition=1, share_access=7, access_mask=128, req=0x8131c58a0, conn=0x80f3a8c60) at ../../source3/smbd/open.c:4288 #29 create_file_unixpath (conn=conn@entry=0x80f3a8c60, req=req@entry=0x8131c58a0, dirfsp=dirfsp@entry=0x80f3778a0, smb_fname=smb_fname@entry=0x81312ad80, access_mask=access_mask@entry=128, share_access=share_access@entry=7, create_disposition=1, create_options=2097152, file_attributes=0, oplock_request=0, lease=, allocation_size=0, private_flags=0, sd=0x0, ea_list=0x0, result=0x7fffffffddd8, pinfo=0x7fffffffddd4) at ../../source3/smbd/open.c:6285 #30 0x0000000801711324 in create_file_default (conn=0x80f3a8c60, req=0x8131c58a0, dirfsp=0x80f3778a0, smb_fname=0x81312ad80, access_mask=128, share_access=7, create_disposition=1, create_options=2097152, file_attributes=0, oplock_request=0, lease=0x0, allocation_size=0, private_flags=0, sd=0x0, ea_list=0x0, result=0x8131c5588, pinfo=0x8131c559c, in_context_blobs=0x7fffffffe200, out_context_blobs=0x80fa0eb00) at ../../source3/smbd/open.c:6604 #31 0x00000008016e0331 in vfswrap_create_file (handle=, req=, dirfsp=, smb_fname=, access_mask=, share_access=, create_disposition=1, create_options=2097152, file_attributes=0, oplock_request=0, lease=0x0, allocation_size=0, private_flags=0, sd=0x0, ea_list=0x0, result=0x8131c5588, pinfo=0x8131c559c, in_context_blobs=0x7fffffffe200, out_context_blobs=0x80fa0eb00) at ../../source3/modules/vfs_default.c:827 #32 0x0000000801719806 in smb_vfs_call_create_file (handle=, req=, dirfsp=, smb_fname=smb_fname@entry=0x81312ad80, access_mask=access_mask@entry=128, share_access=, create_disposition=1, create_options=2097152, file_attributes=0, oplock_request=0, lease=0x0, allocation_size=0, private_flags=0, sd=0x0, ea_list=0x0, result=0x8131c5588, pinfo=0x8131c559c, in_context_blobs=0x7fffffffe200, out_context_blobs=0x80fa0eb00) at ../../source3/smbd/vfs.c:1576 #33 0x000000081a43c052 in smb_full_audit_create_file (handle=0x80f3d8640, req=, dirfsp=, smb_fname=0x81312ad80, access_mask=128, share_access=, create_disposition=1, create_options=2097152, file_attributes=0, oplock_request=0, lease=0x0, allocation_size=0, private_flags=0, sd=0x0, ea_list=0x0, result_fsp=0x8131c5588, pinfo=0x8131c559c, in_context_blobs=0x7fffffffe200, out_context_blobs=0x80fa0eb00) at ../../source3/modules/vfs_full_audit.c:1172 #34 0x0000000801719806 in smb_vfs_call_create_file (handle=, req=req@entry=0x8131c58a0, dirfsp=, smb_fname=, access_mask=access_mask@entry=128, share_access=share_access@entry=7, create_disposition=1, create_options=2097152, file_attributes=0, oplock_request=0, lease=0x0, allocation_size=0, private_flags=0, sd=0x0, ea_list=0x0, result=0x8131c5588, pinfo=0x8131c559c, in_context_blobs=0x7fffffffe200, out_context_blobs=0x80fa0eb00) at ../../source3/smbd/vfs.c:1576 #35 0x00000008017496b4 in smbd_smb2_create_send (in_context_blobs=..., in_name=, in_create_options=, in_create_disposition=, in_share_access=7, in_file_attributes=0, in_desired_access=128, in_impersonation_level=2, in_oplock_level=, smb2req=0x8131c4950, ev=, mem_ctx=0x8131c4950) at ../../source3/smbd/smb2_create.c:1029 #36 smbd_smb2_request_process_create (smb2req=smb2req@entry=0x8131c4950) at ../../source3/smbd/smb2_create.c:271 #37 0x000000080173e87e in smbd_smb2_request_dispatch ( req=req@entry=0x8131c4950) at ../../source3/smbd/smb2_server.c:3405 #38 0x000000080173f579 in smbd_smb2_io_handler (fde_flags=, xconn=0x80f3ae560) at ../../source3/smbd/smb2_server.c:5016 #39 smbd_smb2_connection_handler (ev=, fde=, flags=, private_data=) at ../../source3/smbd/smb2_server.c:5054 #40 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( fde=fde@entry=0x80f32fb80, flags=, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:142 #41 0x0000000802bc5b98 in poll_event_loop_poll (tvalp=0x7fffffffe400, ev=0x80f3a8060) at ../../lib/tevent/tevent_poll.c:569 #42 poll_event_loop_once (ev=0x80f3a8060, location=) at ../../lib/tevent/tevent_poll.c:626 #43 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 #44 0x0000000802bc28f1 in tevent_common_loop_wait (ev=0x80f3a8060, location=0x8017ea800 "../../source3/smbd/smb2_process.c:2015") at ../../lib/tevent/tevent.c:949 #45 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 #46 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 #47 0x0000000001029deb in smbd_accept_connection (ev=0x80f3a8060, fde=, flags=, private_data=) at ../../source3/smbd/server.c:1031 #48 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( fde=fde@entry=0x80f32f640, flags=, removed=removed@entry=0x0) at ../../lib/tevent/tevent_fd.c:142 #49 0x0000000802bc5b98 in poll_event_loop_poll (tvalp=0x7fffffffe6b0, ev=0x80f3a8060) at ../../lib/tevent/tevent_poll.c:569 #50 poll_event_loop_once (ev=0x80f3a8060, location=) at ../../lib/tevent/tevent_poll.c:626 #51 0x0000000802bc26f4 in _tevent_loop_once (ev=ev@entry=0x80f3a8060, location=location@entry=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:823 #52 0x0000000802bc28f1 in tevent_common_loop_wait (ev=0x80f3a8060, location=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:949 #53 0x0000000802bc2953 in _tevent_loop_wait (ev=ev@entry=0x80f3a8060, location=location@entry=0x102e308 "../../source3/smbd/server.c:1373") at ../../lib/tevent/tevent.c:968 #54 0x000000000102b712 in smbd_parent_loop (parent=, ev_ctx=0x80f3a8060) at ../../source3/smbd/server.c:1373 #55 main (argc=, argv=) at ../../source3/smbd/server.c:2130 (gdb) quit