root@primary20:~/samba-4.13.13# gdb --args ldbsearch -H /var/lib/samba/private/sam.ldb "(|(foo=bar)(anr=a))" objectClass --controls paged_results:0:2 GNU gdb (Debian 8.2.1-2+b3) 8.2.1 Copyright (C) 2018 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-linux-gnu". 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 ldbsearch...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/ldbsearch -H /var/lib/samba/private/sam.ldb \(\|\(foo=bar\)\(anr=a\)\) objectClass --controls paged_results:0:2 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". # record 1 dn: CN=aed72870-bf16-4788-8ac7-22299c8207f1,CN=Operations,CN=DomainUpdates,CN=System,DC=ucs50domain,DC=net objectClass: top objectClass: container # record 2 dn: CN=Account Operators,CN=Builtin,DC=ucs50domain,DC=net objectClass: top objectClass: group # Referral ref: ldap://ucs50domain.net/CN=Configuration,DC=ucs50domain,DC=net # Referral ref: ldap://ucs50domain.net/DC=DomainDnsZones,DC=ucs50domain,DC=net # Referral ref: ldap://ucs50domain.net/DC=ForestDnsZones,DC=ucs50domain,DC=net # record 3 dn: CN=AdminSDHolder,CN=System,DC=ucs50domain,DC=net objectClass: top objectClass: container Program received signal SIGSEGV, Segmentation fault. parse_tree_attr_replace (tree=tree@entry=0x6e44747365726f46, private_context=private_context@entry=0x7fffffffd160) at ../../common/ldb_parse.c:896 896 ../../common/ldb_parse.c: Datei oder Verzeichnis nicht gefunden. (gdb) bt full #0 parse_tree_attr_replace (tree=tree@entry=0x6e44747365726f46, private_context=private_context@entry=0x7fffffffd160) at ../../common/ldb_parse.c:896 ctx = 0x7fffffffd160 #1 0x00007ffff7f9adea in ldb_parse_tree_walk (tree=0x6e44747365726f46, callback=0x7ffff7f99910 , private_context=0x7fffffffd160) at ../../common/ldb_parse.c:852 i = ret = #2 0x00007ffff7f9ae46 in ldb_parse_tree_walk (private_context=, callback=, tree=) at ../../common/ldb_parse.c:861 i = 0 ret = i = ret = #3 ldb_parse_tree_walk (tree=, callback=0x7ffff7f99910 , private_context=0x7fffffffd160) at ../../common/ldb_parse.c:845 i = ret = 0 #4 0x00007ffff7f9ae9c in ldb_parse_tree_attr_replace (tree=, attr=, replace=) at ../../common/ldb_parse.c:940 ctx = {attr = 0x7ffff39ad621 "createTimeStamp", replace = 0x7ffff39ad631 "whenCreated"} #5 0x00007ffff39aad08 in operational_search (module=0x555555609af0, req=0x5555559f41a0) at ../../source4/dsdb/samdb/ldb_modules/operational.c:1690 ldb = 0x55555556b270 ac = 0x5555559bcb90 down_req = 0x5555562a5670 search_attrs = 0x0 i = 0 a = 0 ret = 32767 #6 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555559f41a0) at ../../common/ldb_modules.c:537 ret = #7 0x00007ffff3b1a25a in es_search (module=0x555555609b80, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/encrypted_secrets.c:1212 ldb = 0x55555556b270 ec = 0x5555556ea4f0 down_req = 0x5555559f41a0 ret = 0 #8 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 ret = #9 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 ret = #10 0x00007ffff78a5e27 in aclread_search (module=0x55555560a500, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/acl_read.c:849 ldb = 0x55555556b270 --Type for more, q to quit, c to continue without paging--c ret = 21845 ac = 0x55555681b970 down_req = 0x555555fb9460 as_system = 0x0 flags = 0 res = 0xbd950086a070a00 p = 0x555555640210 need_sd = false explicit_sd_flags = false is_untrusted = false _all_attrs = {0x7ffff78a783b "*", 0x0} all_attrs = false attrs = 0x0 acl_attrs = {0x7ffff78a7124 "instanceType", 0x0} #11 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 ret = #12 0x00007ffff78c5e52 in acl_search (module=0x55555560a610, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/acl.c:2245 ldb = 0x55555556b270 ac = 0x55555681b9d0 down_tree = 0x55555556b5b0 down_req = 0x0 data = 0x55555563d2a0 ret = 32767 i = 4160446509 #13 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 ret = #14 0x00007ffff3b44802 in descriptor_search (module=0x55555560a720, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/descriptor.c:937 ret = 21845 ldb = 0x555555641c20 down_req = 0x7fffffffd540 ac = 0x55555556b5b0 explicit_sd_flags = false sd_flags = 15 show_sd = false #15 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 ret = #16 0x00007ffff3b11e6d in extended_base_callback (req=0x555556598400, ares=0x555555ead030) at ../../source4/dsdb/samdb/ldb_modules/extended_dn_in.c:275 ac = 0x555555cbec80 down_req = 0x5555562a5670 el = 0x5555569e5be0 ret = 0 i = 1453218784 j = 21845 wkn_len = 0 valstr = 0x0 found = 0x0 #17 0x00007ffff3b1a0d0 in es_callback (req=0x555555ad2a50, ares=0x5555559e4e90) at ../../source4/dsdb/samdb/ldb_modules/encrypted_secrets.c:1166 ec = 0x555555eccbd0 ret = 21845 #18 0x00007ffff39aa8d0 in operational_callback (req=0x55555634ac10, ares=0x555555629160) at ../../source4/dsdb/samdb/ldb_modules/operational.c:1582 ac = 0x55555601e610 ret = 21845 #19 0x00007ffff3b0ab29 in extended_callback (req=0x5555569e4c80, ares=0x55555566fba0) at ../../source4/dsdb/samdb/ldb_modules/extended_dn_out.c:246 ac = 0x5555561f17f0 ret = -135075765 i = 32767 j = 1432535472 k = 21845 msg = 0x0 p = 0x555555641210 ldb = 0x55555556b270 have_reveal_control = false #20 0x00007ffff3b0b55c in extended_callback_ldb (req=0x5555569e4c80, ares=0x55555566fba0) at ../../source4/dsdb/samdb/ldb_modules/extended_dn_out.c:459 No locals. #21 0x00007ffff7811f28 in dsdb_next_callback (req=0x5555567563c0, ares=0x555556290e50) at ../../source4/dsdb/samdb/ldb_modules/util.c:888 up_req = 0x5555569e4c80 #22 0x00007ffff398df6b in partition_req_callback (req=0x55555556c380, ares=0x5555561c2540) at ../../source4/dsdb/samdb/ldb_modules/partition.c:213 ac = 0x5555557be600 module = 0x5555569e5be0 nreq = 0x5555565444d0 ret = 0 partition_ctrl = 0x0 #23 0x00007ffff78fcdf3 in ldb_kv_callback (ev=, te=, t=..., private_data=) at ../../ldb_key_value/ldb_kv.c:1995 ctx = 0x55555562c1b0 ret = #24 0x00007ffff7f4e4f5 in tevent_common_invoke_timer_handler () from /lib/x86_64-linux-gnu/libtevent.so.0 No symbol table info available. #25 0x00007ffff7f4e69a in tevent_common_loop_timer_delay () from /lib/x86_64-linux-gnu/libtevent.so.0 No symbol table info available. #26 0x00007ffff7f4f897 in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 No symbol table info available. #27 0x00007ffff7f4db37 in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 No symbol table info available. #28 0x00007ffff7f48e01 in _tevent_loop_once () from /lib/x86_64-linux-gnu/libtevent.so.0 No symbol table info available. #29 0x00007ffff7fae223 in ldb_wait (type=, handle=0x555555625c90) at ../../common/ldb.c:648 ev = 0x5555565444d0 ret = ev = ret = #30 ldb_wait (handle=0x555555625c90, type=) at ../../common/ldb.c:597 ev = ret = #31 0x00007ffff399e927 in paged_search_by_dn_guid (module=0x55555560b310, ac=0x5555567a2160, result=0x7fffffffd9c8, guid=0x5555556bbf70, attrs=0x55555556b5b0, expr=0x55555630a650) at ../../source4/dsdb/samdb/ldb_modules/paged_results.c:226 dn = 0x555555ec2440 req = 0x555556850d20 res = 0x555555ef5560 ret = 0 guid_str = {buf = "36ba8c04-0c5a-4239-8482-93ed5127e2b3\000\177"} controls = 0x555555bcbdf0 ldb = 0x55555556b270 #32 0x00007ffff399ea74 in paged_results (ac=0x5555567a2160, ares=0x0) at ../../source4/dsdb/samdb/ldb_modules/paged_results.c:268 guid = 0x5555556bbf70 result = 0x0 response = 0x0 paged = 0x5555567e37e0 i = 32767 num_ctrls = 1432400656 ret = 0 #33 0x00007ffff399ffe3 in paged_search (module=0x55555560b310, req=0x555555eace40) at ../../source4/dsdb/samdb/ldb_modules/paged_results.c:817 current = 0x555556139560 expr_str = 0x555555d40030 "(|(foo=bar)(anr=a))" bool_ret = true ldb = 0x55555556b270 control = 0x5555559461a0 vlv_control = 0x0 private_data = 0x555555602250 paged_ctrl = 0x5555565dd680 search_req = 0x0 ac = 0x5555567a2160 ret = 0 #34 0x00007ffff7f97202 in ldb_next_request (module=, request=0x555555eace40) at ../../common/ldb_modules.c:537 ret = #35 0x00007ffff3b390c0 in dirsync_ldb_search (module=0x55555560b430, req=0x555555eace40) at ../../source4/dsdb/samdb/ldb_modules/dirsync.c:1024 control = 0x0 acl_res = 0xbd950086a070a00 dirsync_ctl = 0x0 extended = 0x0 down_req = 0x5555563a1070 dsc = 0x7ffff39969e0 ldb = 0x555555d40030 new_tree = 0x55555630a650 flags = 0 ndr_err = 21845 blob = {data = 0x5555567a2100 "", length = 140737353407287} attrs = 0x5555566fd4f0 ret = 1446645872 __FUNCTION__ = "dirsync_ldb_search" #36 0x00007ffff7f97202 in ldb_next_request (module=, request=0x555555eace40) at ../../common/ldb_modules.c:537 ret = #37 0x00007ffff3acc23e in unlazy_op (module=0x55555560b540, req=0x555555eace40) at ../../source4/dsdb/samdb/ldb_modules/lazy_commit.c:40 ret = 32767 new_req = 0xbd950086a070a00 control = 0x0 #38 0x00007ffff7f97202 in ldb_next_request (module=, request=0x555555eace40) at ../../common/ldb_modules.c:537 ret = #39 0x00007ffff3b2076b in dsdb_notification_search (module=0x55555560b760, req=0x555555eace40) at ../../source4/dsdb/samdb/ldb_modules/dsdb_notification.c:225 control = 0x0 #40 0x00007ffff7f97202 in ldb_next_request (module=, request=0x555555eace40) at ../../common/ldb_modules.c:537 ret = #41 0x00007ffff386dc54 in rootdse_search (module=0x55555560b880, req=0x555555eace40) at ../../source4/dsdb/samdb/ldb_modules/rootdse.c:851 ldb = 0x55555556b270 ac = 0x1e1f down_req = 0x7fffffffde10 ret = 0 #42 0x00007ffff7f97202 in ldb_next_request (module=, request=0x555555eace40) at ../../common/ldb_modules.c:537 ret = #43 0x00007ffff3969104 in resolve_oids_search (module=0x55555560b990, req=0x555555eace40) at ../../source4/dsdb/samdb/ldb_modules/resolve_oids.c:497 ldb = 0x55555556b270 schema = 0x5555565247e0 tree = 0x5555565247e0 down_req = 0x0 ac = 0x5555557be940 ret = 5 needed = false attrs1 = 0x55555556b5b0 attrs2 = 0x7ffff380da69 i = 1 #44 0x00007ffff7f97202 in ldb_next_request (module=, request=0x555555eace40) at ../../common/ldb_modules.c:537 ret = #45 0x00007ffff7faf2cb in lock_search (lock_module=0x7fffffffdf30, req=0x55555566fc30) at ../../common/ldb.c:1122 next_module = down_req = 0x555555eace40 lock_context = 0x555555ec2630 ldb = 0x55555556b270 ret = 0 #46 0x00007ffff7fae569 in ldb_request (ldb=0x55555556b270, req=0x55555566fc30) at ../../common/ldb.c:1172 lock_module_ops = {name = 0x7ffff7fb6a89 "lock_searches", init_context = 0x0, search = 0x7ffff7faf140 , add = 0x0, modify = 0x0, del = 0x0, rename = 0x0, request = 0x0, extended = 0x0, start_transaction = 0x0, prepare_commit = 0x0, end_transaction = 0x0, del_transaction = 0x0, sequence_number = 0x0, read_lock = 0x0, read_unlock = 0x0, private_data = 0x0} lock_module = {prev = 0x0, next = 0x5555555ffa90, ldb = 0x55555556b270, private_data = 0x0, ops = 0x7ffff7fbf300 } next_module = 0x7fffffffdf30 ret = #47 0x00005555555556b2 in ?? () No symbol table info available. #48 0x00005555555553b7 in ?? () No symbol table info available. #49 0x00007ffff7d8c09b in __libc_start_main (main=0x555555555220, argc=7, argv=0x7fffffffe538, init=, fini=, rtld_fini=, stack_end=0x7fffffffe528) at ../csu/libc-start.c:308 self = result = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 6091377764368788830, 93824992236560, 140737488348464, 0, 0, 134473127958293854, 134455800850296158}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7fffffffe578, 0x7ffff7ffe190}, data = {prev = 0x0, cleanup = 0x0, canceltype = -6792}}} not_first_call = #50 0x000055555555543a in ?? () No symbol table info available. (gdb) cd lib/ldb/tests/python/ Working directory /root/samba-4.13.13/lib/ldb/tests/python. (gdb) l warning: Source file is more recent than executable. 891 callback for ldb_parse_tree_attr_replace() 892 */ 893 static int parse_tree_attr_replace(struct ldb_parse_tree *tree, void *private_context) 894 { 895 struct parse_tree_attr_replace_ctx *ctx = private_context; 896 switch (tree->operation) { 897 case LDB_OP_EQUALITY: 898 case LDB_OP_GREATER: 899 case LDB_OP_LESS: 900 case LDB_OP_APPROX: (gdb) p tree->operation Cannot access memory at address 0x6e44747365726f46 (gdb) p tree->u.list.num_elements Cannot access memory at address 0x6e44747365726f4e (gdb) up #1 0x00007ffff7f9adea in ldb_parse_tree_walk (tree=0x6e44747365726f46, callback=0x7ffff7f99910 , private_context=0x7fffffffd160) at ../../common/ldb_parse.c:852 852 ret = callback(tree, private_context); (gdb) #2 0x00007ffff7f9ae46 in ldb_parse_tree_walk (private_context=, callback=, tree=) at ../../common/ldb_parse.c:861 861 ret = ldb_parse_tree_walk(tree->u.list.elements[i], callback, private_context); (gdb) #3 ldb_parse_tree_walk (tree=, callback=0x7ffff7f99910 , private_context=0x7fffffffd160) at ../../common/ldb_parse.c:845 845 int ldb_parse_tree_walk(struct ldb_parse_tree *tree, (gdb) #4 0x00007ffff7f9ae9c in ldb_parse_tree_attr_replace (tree=, attr=, replace=) at ../../common/ldb_parse.c:940 940 ldb_parse_tree_walk(tree, parse_tree_attr_replace, &ctx); (gdb) #5 0x00007ffff39aad08 in operational_search (module=0x555555609af0, req=0x5555559f41a0) at ../../source4/dsdb/samdb/ldb_modules/operational.c:1690 1690 ../../source4/dsdb/samdb/ldb_modules/operational.c: Datei oder Verzeichnis nicht gefunden. (gdb) cd ../../../../source4/dsdb/ Working directory /root/samba-4.13.13/source4/dsdb. (gdb) l 1685 * unmodified. SSS */ 1686 /* replace any attributes in the parse tree that are 1687 searchable, but are stored using a different name in the 1688 backend */ 1689 for (i=0;iop.search.tree, 1691 parse_tree_sub[i].attr, 1692 parse_tree_sub[i].replace); 1693 } 1694 (gdb) up #6 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555559f41a0) at ../../common/ldb_modules.c:537 537 ../../common/ldb_modules.c: Datei oder Verzeichnis nicht gefunden. (gdb) #7 0x00007ffff3b1a25a in es_search (module=0x555555609b80, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/encrypted_secrets.c:1212 1212 return ldb_next_request(module, down_req); (gdb) #8 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 537 ../../common/ldb_modules.c: Datei oder Verzeichnis nicht gefunden. (gdb) #9 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 537 in ../../common/ldb_modules.c (gdb) #10 0x00007ffff78a5e27 in aclread_search (module=0x55555560a500, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/acl_read.c:849 849 return ldb_next_request(module, req); (gdb) #11 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 537 ../../common/ldb_modules.c: Datei oder Verzeichnis nicht gefunden. (gdb) #12 0x00007ffff78c5e52 in acl_search (module=0x55555560a610, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/acl.c:2245 warning: Source file is more recent than executable. 2245 return ldb_next_request(module, req); (gdb) #13 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 537 ../../common/ldb_modules.c: Datei oder Verzeichnis nicht gefunden. (gdb) #14 0x00007ffff3b44802 in descriptor_search (module=0x55555560a720, req=0x5555562a5670) at ../../source4/dsdb/samdb/ldb_modules/descriptor.c:937 937 return ldb_next_request(module, req); (gdb) #15 0x00007ffff7f97202 in ldb_next_request (module=, request=0x5555562a5670) at ../../common/ldb_modules.c:537 537 ../../common/ldb_modules.c: Datei oder Verzeichnis nicht gefunden. (gdb) #16 0x00007ffff3b11e6d in extended_base_callback (req=0x555556598400, ares=0x555555ead030) at ../../source4/dsdb/samdb/ldb_modules/extended_dn_in.c:275 275 return ldb_next_request(ac->module, down_req); (gdb) p down_req-> callback context controls handle op operation starttime timeout (gdb) p down_req->op.search.tree $1 = (struct ldb_parse_tree *) 0x55555630a650 (gdb) $2 = (struct ldb_parse_tree *) 0x55555630a650 (gdb) p down_req->op.search.tree->u.list.elements[0] $3 = (struct ldb_parse_tree *) 0x6e44747365726f46 (gdb) up #17 0x00007ffff3b1a0d0 in es_callback (req=0x555555ad2a50, ares=0x5555559e4e90) at ../../source4/dsdb/samdb/ldb_modules/encrypted_secrets.c:1166 1166 return ldb_module_done(ec->req, ares->controls, (gdb) #18 0x00007ffff39aa8d0 in operational_callback (req=0x55555634ac10, ares=0x555555629160) at ../../source4/dsdb/samdb/ldb_modules/operational.c:1582 1582 return ldb_module_done(ac->req, ares->controls, (gdb) #19 0x00007ffff3b0ab29 in extended_callback (req=0x5555569e4c80, ares=0x55555566fba0) at ../../source4/dsdb/samdb/ldb_modules/extended_dn_out.c:246 246 return ldb_module_done(ac->req, ares->controls, (gdb) #20 0x00007ffff3b0b55c in extended_callback_ldb (req=0x5555569e4c80, ares=0x55555566fba0) at ../../source4/dsdb/samdb/ldb_modules/extended_dn_out.c:459 459 return extended_callback(req, ares); (gdb) #21 0x00007ffff7811f28 in dsdb_next_callback (req=0x5555567563c0, ares=0x555556290e50) at ../../source4/dsdb/samdb/ldb_modules/util.c:888 warning: Source file is more recent than executable. 888 return ldb_module_done(up_req, ares->controls, (gdb) #22 0x00007ffff398df6b in partition_req_callback (req=0x55555556c380, ares=0x5555561c2540) at ../../source4/dsdb/samdb/ldb_modules/partition.c:213 warning: Source file is more recent than executable. 213 return ldb_module_done(ac->req, ares->controls, (gdb) #23 0x00007ffff78fcdf3 in ldb_kv_callback (ev=, te=, t=..., private_data=) at ../../ldb_key_value/ldb_kv.c:1995 1995 ../../ldb_key_value/ldb_kv.c: Datei oder Verzeichnis nicht gefunden. (gdb) #24 0x00007ffff7f4e4f5 in tevent_common_invoke_timer_handler () from /lib/x86_64-linux-gnu/libtevent.so.0 (gdb) #25 0x00007ffff7f4e69a in tevent_common_loop_timer_delay () from /lib/x86_64-linux-gnu/libtevent.so.0 (gdb) #26 0x00007ffff7f4f897 in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 (gdb) #27 0x00007ffff7f4db37 in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 (gdb) #28 0x00007ffff7f48e01 in _tevent_loop_once () from /lib/x86_64-linux-gnu/libtevent.so.0 (gdb) #29 0x00007ffff7fae223 in ldb_wait (type=, handle=0x555555625c90) at ../../common/ldb.c:648 648 ../../common/ldb.c: Datei oder Verzeichnis nicht gefunden. (gdb) #30 ldb_wait (handle=0x555555625c90, type=) at ../../common/ldb.c:597 597 in ../../common/ldb.c (gdb) #31 0x00007ffff399e927 in paged_search_by_dn_guid (module=0x55555560b310, ac=0x5555567a2160, result=0x7fffffffd9c8, guid=0x5555556bbf70, attrs=0x55555556b5b0, expr=0x55555630a650) at ../../source4/dsdb/samdb/ldb_modules/paged_results.c:226 warning: Source file is more recent than executable. 226 ret = ldb_wait(req->handle, LDB_WAIT_ALL); (gdb) l 221 222 talloc_steal(req, dn); 223 224 ret = ldb_request(ldb, req); 225 if (ret == LDB_SUCCESS) { 226 ret = ldb_wait(req->handle, LDB_WAIT_ALL); 227 } 228 229 talloc_free(req); 230 if (ret != LDB_SUCCESS) { (gdb) p req->op.search.tree->u.list.elements[0] $4 = (struct ldb_parse_tree *) 0x6e44747365726f46 (gdb) p req->op.search.tree->u.list.num_elements $5 = 2 (gdb) p req->op.search.tree->u.list.elements[0]->operation Cannot access memory at address 0x6e44747365726f46