Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Another dcesrv trace
sudo gdb -batch -ex bt -p 1468
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
memcpy () at ../sysdeps/x86_64/multiarch/../multiarch/memmove-vec-unaligned-erms.S:142
142 ../sysdeps/x86_64/multiarch/../multiarch/memmove-vec-unaligned-erms.S: File o directory non esistente.
#0 memcpy () at ../sysdeps/x86_64/multiarch/../multiarch/memmove-vec-unaligned-erms.S:142
#1 0x00007fe51ffc0627 in tdb_read (tdb=0x55574745e270, off=124847564, buf=0x7ffea210e260, len=24, cv=0) at ../lib/tdb/common/io.c:279
#2 0x00007fe51ffc1434 in tdb_rec_read (tdb=0x55574745e270, offset=124847564, rec=0x7ffea210e260) at ../lib/tdb/common/io.c:736
#3 0x00007fe51ffba37d in tdb_find (tdb=0x55574745e270, key=..., hash=490668901, r=0x7ffea210e260) at ../lib/tdb/common/tdb.c:95
#4 0x00007fe51ffba4d8 in tdb_find_lock_hash (tdb=0x55574745e270, key=..., hash=490668901, locktype=0, rec=0x7ffea210e260) at ../lib/tdb/common/tdb.c:125
#5 0x00007fe51ffba8c5 in tdb_parse_record (tdb=0x55574745e270, key=..., parser=0x7fe504f3ea34 <ltdb_parse_data_unpack>, private_data=0x7ffea210e2d0) at ../lib/tdb/common/tdb.c:285
#6 0x00007fe504f3ec39 in ltdb_search_key (module=0x555747809910, ltdb=0x555747bf3900, tdb_key=..., msg=0x5557474bfd50, unpack_flags=5) at ../lib/ldb/ldb_tdb/ldb_search.c:258
#7 0x00007fe504f42d53 in ltdb_index_filter (ltdb=0x555747bf3900, dn_list=0x55574851f990, ac=0x555747fc4cd0, match_count=0x7ffea210e3f8) at ../lib/ldb/ldb_tdb/ldb_index.c:1656
#8 0x00007fe504f43380 in ltdb_search_indexed (ac=0x555747fc4cd0, match_count=0x7ffea210e3f8) at ../lib/ldb/ldb_tdb/ldb_index.c:1875
#9 0x00007fe504f3fcb0 in ltdb_search (ctx=0x555747fc4cd0) at ../lib/ldb/ldb_tdb/ldb_search.c:830
#10 0x00007fe504f3ddd2 in ltdb_callback (ev=0x55574844cf20, te=0x555747c9f440, t=..., private_data=0x555747fc4cd0) at ../lib/ldb/ldb_tdb/ldb_tdb.c:1747
#11 0x00007fe521a0f841 in tevent_common_loop_timer_delay (ev=0x55574844cf20) at ../lib/tevent/tevent_timed.c:369
#12 0x00007fe521a11b49 in epoll_event_loop_once (ev=0x55574844cf20, location=0x7fe51ad2411d "../lib/ldb/common/ldb.c:639") at ../lib/tevent/tevent_epoll.c:915
#13 0x00007fe521a0e8c5 in std_event_loop_once (ev=0x55574844cf20, location=0x7fe51ad2411d "../lib/ldb/common/ldb.c:639") at ../lib/tevent/tevent_standard.c:114
#14 0x00007fe521a081a1 in _tevent_loop_once (ev=0x55574844cf20, location=0x7fe51ad2411d "../lib/ldb/common/ldb.c:639") at ../lib/tevent/tevent.c:725
#15 0x00007fe51ad19d40 in ldb_wait (handle=0x555748480100, type=LDB_WAIT_ALL) at ../lib/ldb/common/ldb.c:639
#16 0x00007fe51ad1c649 in ldb_search (ldb=0x555747c40060, mem_ctx=0x55574848f280, result=0x7ffea210e768, base=0x55574780bcc0, scope=LDB_SCOPE_SUBTREE, attrs=0x7ffea210e940, exp_fmt=0x7fe51aaec7c0 "%s") at ../lib/ldb/common/ldb.c:1765
#17 0x00007fe51aae1247 in gendb_search_v (ldb=0x555747c40060, mem_ctx=0x55574848f280, basedn=0x55574780bcc0, msgs=0x7ffea210e918, attrs=0x7ffea210e940, format=0x7fe50c24e335 "(objectClass=user)", ap=0x7ffea210e7f8) at ../lib/util/util_ldb.c:54
#18 0x00007fe51aac84ab in samdb_search_domain (sam_ldb=0x555747c40060, mem_ctx=0x55574848f280, basedn=0x55574780bcc0, res=0x7ffea210e918, attrs=0x7ffea210e940, domain_sid=0x555747ec7c10, format=0x7fe50c24e335 "(objectClass=user)") at ../source4/dsdb/common/util.c:73
#19 0x00007fe50c1c5a3c in dcesrv_samr_EnumDomainUsers (dce_call=0x55574848f280, mem_ctx=0x55574848f280, r=0x55574835f4d0) at ../source4/rpc_server/samr/dcesrv_samr.c:1286
#20 0x00007fe50c1d1204 in samr__op_dispatch (dce_call=0x55574848f280, mem_ctx=0x55574848f280, r=0x55574835f4d0) at default/librpc/gen_ndr/ndr_samr_s.c:212
#21 0x00007fe50c215047 in dcesrv_request (call=0x55574848f280) at ../source4/rpc_server/dcerpc_server.c:1874
#22 0x00007fe50c215ac0 in dcesrv_process_ncacn_packet (dce_conn=0x5557483ebd70, pkt=0x555747b12570, blob=...) at ../source4/rpc_server/dcerpc_server.c:2196
#23 0x00007fe50c21747c in dcesrv_read_fragment_done (subreq=0x0) at ../source4/rpc_server/dcerpc_server.c:2774
#24 0x00007fe521a09f70 in _tevent_req_notify_callback (req=0x555747b12360, location=0x7fe51e1de150 "../librpc/rpc/dcerpc_util.c:835") at ../lib/tevent/tevent_req.c:125
#25 0x00007fe521a0a045 in tevent_req_finish (req=0x555747b12360, state=TEVENT_REQ_DONE, location=0x7fe51e1de150 "../librpc/rpc/dcerpc_util.c:835") at ../lib/tevent/tevent_req.c:162
#26 0x00007fe521a0a06d in _tevent_req_done (req=0x555747b12360, location=0x7fe51e1de150 "../librpc/rpc/dcerpc_util.c:835") at ../lib/tevent/tevent_req.c:168
#27 0x00007fe51e1d83af in dcerpc_read_ncacn_packet_done (subreq=0x0) at ../librpc/rpc/dcerpc_util.c:835
#28 0x00007fe521a09f70 in _tevent_req_notify_callback (req=0x55574dad4de0, location=0x7fe51e3f88b8 "../lib/tsocket/tsocket_helpers.c:245") at ../lib/tevent/tevent_req.c:125
#29 0x00007fe521a0a045 in tevent_req_finish (req=0x55574dad4de0, state=TEVENT_REQ_DONE, location=0x7fe51e3f88b8 "../lib/tsocket/tsocket_helpers.c:245") at ../lib/tevent/tevent_req.c:162
#30 0x00007fe521a0a06d in _tevent_req_done (req=0x55574dad4de0, location=0x7fe51e3f88b8 "../lib/tsocket/tsocket_helpers.c:245") at ../lib/tevent/tevent_req.c:168
#31 0x00007fe51e3f1118 in tstream_readv_pdu_ask_for_next_vector (req=0x55574dad4de0) at ../lib/tsocket/tsocket_helpers.c:245
#32 0x00007fe51e3f1343 in tstream_readv_pdu_readv_done (subreq=0x55574771a460) at ../lib/tsocket/tsocket_helpers.c:319
#33 0x00007fe521a09f70 in _tevent_req_notify_callback (req=0x55574771a460, location=0x7fe51e3f83ab "../lib/tsocket/tsocket.c:604") at ../lib/tevent/tevent_req.c:125
#34 0x00007fe521a0a045 in tevent_req_finish (req=0x55574771a460, state=TEVENT_REQ_DONE, location=0x7fe51e3f83ab "../lib/tsocket/tsocket.c:604") at ../lib/tevent/tevent_req.c:162
#35 0x00007fe521a0a06d in _tevent_req_done (req=0x55574771a460, location=0x7fe51e3f83ab "../lib/tsocket/tsocket.c:604") at ../lib/tevent/tevent_req.c:168
#36 0x00007fe51e3f0669 in tstream_readv_done (subreq=0x0) at ../lib/tsocket/tsocket.c:604
#37 0x00007fe521a09f70 in _tevent_req_notify_callback (req=0x5557486ef8b0, location=0x7fe51e6052b0 "../libcli/named_pipe_auth/npa_tstream.c:596") at ../lib/tevent/tevent_req.c:125
#38 0x00007fe521a0a045 in tevent_req_finish (req=0x5557486ef8b0, state=TEVENT_REQ_DONE, location=0x7fe51e6052b0 "../libcli/named_pipe_auth/npa_tstream.c:596") at ../lib/tevent/tevent_req.c:162
#39 0x00007fe521a0a16d in tevent_req_trigger (ev=0x5557473ff910, im=0x5557486ef990, private_data=0x5557486ef8b0) at ../lib/tevent/tevent_req.c:219
#40 0x00007fe521a09318 in tevent_common_loop_immediate (ev=0x5557473ff910) at ../lib/tevent/tevent_immediate.c:135
#41 0x00007fe521a11b2f in epoll_event_loop_once (ev=0x5557473ff910, location=0x7fe514cef0d0 "../source4/smbd/process_standard.c:494") at ../lib/tevent/tevent_epoll.c:911
#42 0x00007fe521a0e8c5 in std_event_loop_once (ev=0x5557473ff910, location=0x7fe514cef0d0 "../source4/smbd/process_standard.c:494") at ../lib/tevent/tevent_standard.c:114
#43 0x00007fe521a081a1 in _tevent_loop_once (ev=0x5557473ff910, location=0x7fe514cef0d0 "../source4/smbd/process_standard.c:494") at ../lib/tevent/tevent.c:725
#44 0x00007fe521a084b8 in tevent_common_loop_wait (ev=0x5557473ff910, location=0x7fe514cef0d0 "../source4/smbd/process_standard.c:494") at ../lib/tevent/tevent.c:848
#45 0x00007fe521a0e967 in std_event_loop_wait (ev=0x5557473ff910, location=0x7fe514cef0d0 "../source4/smbd/process_standard.c:494") at ../lib/tevent/tevent_standard.c:145
#46 0x00007fe521a0855b in _tevent_loop_wait (ev=0x5557473ff910, location=0x7fe514cef0d0 "../source4/smbd/process_standard.c:494") at ../lib/tevent/tevent.c:867
#47 0x00007fe514cee5f7 in standard_new_task (ev=0x5557473ff910, lp_ctx=0x5557473f3750, service_name=0x7fe50c48b15d "rpc", new_task=0x7fe5222d26db <task_server_callback>, private_data=0x55574832c440, service_details=0x5557473ff560, from_parent_fd=24) at ../source4/smbd/process_standard.c:494
#48 0x00007fe5222d2892 in task_server_startup (event_ctx=0x5557473ff910, lp_ctx=0x5557473f3750, service_name=0x7fe50c48b15d "rpc", model_ops=0x7fe514eefb80 <standard_ops>, task_init=0x7fe50c48ada0 <dcesrv_task_init>, service_details=0x5557473ff560, from_parent_fd=24) at ../source4/smbd/service_task.c:123
#49 0x00007fe5222d0934 in server_service_init (name=0x5557473f5f20 "rpc", event_context=0x5557473ff910, lp_ctx=0x5557473f3750, model_ops=0x7fe514eefb80 <standard_ops>, from_parent_fd=24) at ../source4/smbd/service.c:70
#50 0x00007fe5222d0ab9 in server_service_startup (event_ctx=0x5557473ff910, lp_ctx=0x5557473f3750, model=0x555745ca4070 "standard", server_services=0x5557473f5dc0, from_parent_fd=24) at ../source4/smbd/service.c:108
#51 0x0000555745ca3502 in binary_smbd_main (binary_name=0x555745ca3f71 "samba", argc=1, argv=0x7ffea210f7c8) at ../source4/smbd/server.c:678
#52 0x0000555745ca3600 in main (argc=1, argv=0x7ffea210f7c8) at ../source4/smbd/server.c:709
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment