The Samba-Bugzilla – Attachment 17893 Details for
Bug 15370
smbd deadlocks in tdb_nest_lock -> fcntl_lock with TCP connection in CLOSED state
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Backtrace of process 51187
core.51187.bt (text/plain), 13.01 KB, created by
Peter Eriksson
on 2023-05-19 19:37:00 UTC
(
hide
)
Description:
Backtrace of process 51187
Filename:
MIME Type:
Creator:
Peter Eriksson
Created:
2023-05-19 19:37:00 UTC
Size:
13.01 KB
patch
obsolete
>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 <http://gnu.org/licenses/gpl.html> >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: ><https://www.gnu.org/software/gdb/bugs/>. >Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > >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 <db_tdb_parser>, > private_data=private_data@entry=0x7fffffffd2c0) > at ../../lib/tdb/common/tdb.c:329 >#10 0x000000080589e2e2 in db_tdb_parse (db=<optimized out>, key=..., > parser=0x8016c7abb <brl_get_locks_readonly_parser>, > private_data=0x7fffffffd340) at ../../lib/dbwrap/dbwrap_tdb.c:273 >#11 0x000000080589ba5f in dbwrap_parse_record (db=<optimized out>, key=..., > parser=parser@entry=0x8016c7abb <brl_get_locks_readonly_parser>, > 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=<synthetic pointer>, > poplock_type=<synthetic pointer>, first_open_attempt=true, > create_disposition=<optimized out>, 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=<synthetic pointer>, > poplock_type=<synthetic pointer>, first_open_attempt=true, lease=0x0, > oplock_request=0, share_access=7, access_mask=128, > create_disposition=<optimized out>, 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=<optimized out>, 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=<optimized out>, key=..., > fn=0x80210a543 <dbwrap_watched_do_locked_fn>, private_data=0x7fffffffd730) > at ../../lib/dbwrap/dbwrap_tdb.c:208 >#23 0x000000080589bd9c in dbwrap_do_locked (db=0x80f3ffa60, key=..., > fn=fn@entry=0x80210a543 <dbwrap_watched_do_locked_fn>, > private_data=private_data@entry=0x7fffffffd730) > at ../../lib/dbwrap/dbwrap.c:553 >#24 0x00000008021097f4 in dbwrap_watched_do_locked (db=0x80f3ffb60, key=..., > fn=0x80210d1a5 <g_lock_lock_simple_fn>, private_data=0x7fffffffd910) > at ../../source3/lib/dbwrap/dbwrap_watch.c:480 >#25 0x000000080589bd9c in dbwrap_do_locked (db=0x80f3ffb60, key=..., > fn=fn@entry=0x80210d1a5 <g_lock_lock_simple_fn>, > 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 <share_mode_entry_prepare_lock_fn>, > 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=<optimized out>, smb_fname=smb_fname@entry=0x813198380, > old_write_time=old_write_time@entry=0x7fffffffdb50, > fn=fn@entry=0x80170b120 <open_ntcreate_lock_add_entry>, > 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=<optimized out>, > 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=<optimized out>, 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=<optimized out>, > req=<optimized out>, dirfsp=<optimized out>, smb_fname=<optimized out>, > access_mask=<optimized out>, share_access=<optimized out>, > 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=<optimized out>, > req=<optimized out>, dirfsp=<optimized out>, > smb_fname=smb_fname@entry=0x81312ad80, access_mask=access_mask@entry=128, > share_access=<optimized out>, 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=<optimized out>, dirfsp=<optimized out>, smb_fname=0x81312ad80, > access_mask=128, share_access=<optimized out>, 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=<optimized out>, > req=req@entry=0x8131c58a0, dirfsp=<optimized out>, > smb_fname=<optimized out>, 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=<optimized out>, in_create_options=<optimized out>, > in_create_disposition=<optimized out>, in_share_access=7, > in_file_attributes=0, in_desired_access=128, in_impersonation_level=2, > in_oplock_level=<optimized out>, smb2req=0x8131c4950, ev=<optimized out>, > 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=<optimized out>, > xconn=0x80f3ae560) at ../../source3/smbd/smb2_server.c:5016 >#39 smbd_smb2_connection_handler (ev=<optimized out>, fde=<optimized out>, > flags=<optimized out>, private_data=<optimized out>) > at ../../source3/smbd/smb2_server.c:5054 >#40 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( > fde=fde@entry=0x80f32fb80, flags=<optimized out>, > 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=<optimized out>) > 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=<optimized out>, flags=<optimized out>, private_data=<optimized out>) > at ../../source3/smbd/server.c:1031 >#48 0x0000000802bc32bb in tevent_common_invoke_fd_handler ( > fde=fde@entry=0x80f32f640, flags=<optimized out>, > 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=<optimized out>) > 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=<optimized out>, > ev_ctx=0x80f3a8060) at ../../source3/smbd/server.c:1373 >#55 main (argc=<optimized out>, argv=<optimized out>) > at ../../source3/smbd/server.c:2130 >(gdb) >quit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15370
:
17892
|
17893
|
17894
|
17895
|
18150