The Samba-Bugzilla – Attachment 17150 Details for
Bug 14970
SIGSEGV in resolve_oids_parse_tree_need when using paged_results with "anr"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
gdb.log
gdb.log (text/plain), 9.85 KB, created by
Arvid Requate
on 2022-02-07 17:42:32 UTC
(
hide
)
Description:
gdb.log
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2022-02-07 17:42:32 UTC
Size:
9.85 KB
patch
obsolete
>Program received signal SIGSEGV, Segmentation fault. >0x00007ffff396e553 in resolve_oids_parse_tree_need (ldb=0x55555556b5b0, schema=0x555556757370, tree=0x2) at ../../source4/dsdb/samdb/ldb_modules/resolve_oids.c:99 >99 switch (tree->operation) { >(gdb) bt full >#0 0x00007ffff396e553 in resolve_oids_parse_tree_need (ldb=0x55555556b5b0, schema=0x555556757370, tree=0x2) at ../../source4/dsdb/samdb/ldb_modules/resolve_oids.c:99 > i = 0 > a = 0x0 > attr = 0x55555631c690 "" > p1 = 0x7ffff769ac90 <dsdb_get_schema+599> "H\203}\240" > p2 = 0x55555556b5b0 > valp = 0x0 > ret = 0 >#1 0x00007ffff396e5b1 in resolve_oids_parse_tree_need (ldb=0x55555556b5b0, schema=0x555556757370, tree=0x555555a2a0e0) at ../../source4/dsdb/samdb/ldb_modules/resolve_oids.c:103 > i = 1 > a = 0x0 > attr = 0x7ffff3815a69 <dsdb_schema_refresh> "UH\211\345SH\203\354hH\211}\250H\211u\240H\211U\230\211ÈE\224dH\213\004%(" > p1 = 0x5555556109d0 " _`UUU" > p2 = 0x55555631c690 > valp = 0x0 > ret = 5 >#2 0x00007ffff396f025 in resolve_oids_search (module=0x5555556109d0, req=0x555555d0fa20) at ../../source4/dsdb/samdb/ldb_modules/resolve_oids.c:468 > ldb = 0x55555556b5b0 > schema = 0x555556757370 > tree = 0x55555631c690 > down_req = 0x5ffffd780 > ac = 0x55555560ddb0 > ret = 21845 > needed = false > attrs1 = 0x55555556b5b0 > attrs2 = 0x7fffffffd770 > i = 1432411568 >#3 0x00007ffff7f8f202 in ldb_next_request (module=<optimized out>, request=0x555555d0fa20) at ../../common/ldb_modules.c:537 > ret = <optimized out> >#4 0x00007ffff7fa72cb in lock_search (lock_module=0x7fffffffd7d0, req=0x555556078600) at ../../common/ldb.c:1122 > next_module = <optimized out> > down_req = 0x555555d0fa20 > lock_context = 0x55555631c690 > ldb = 0x55555556b5b0 > ret = 0 >#5 0x00007ffff7fa6569 in ldb_request (ldb=0x55555556b5b0, req=0x555556078600) at ../../common/ldb.c:1172 > lock_module_ops = {name = 0x7ffff7faea89 "lock_searches", init_context = 0x0, search = 0x7ffff7fa7140 <lock_search>, 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 = 0x555555605f20, ldb = 0x55555556b5b0, private_data = 0x0, ops = 0x7ffff7fb7300 <lock_module_ops>} > next_module = 0x7fffffffd7d0 > ret = <optimized out> >#6 0x00007ffff39a4909 in paged_search_by_dn_guid (module=0x555555610350, ac=0x555555bdfea0, result=0x7fffffffd918, guid=0x5555555fc450, attrs=0x55555556b8f0, expr=0x555555a2a0e0) at ../../source4/dsdb/samdb/ldb_modules/paged_results.c:225 > dn = 0x555556415470 > req = 0x555556078600 > res = 0x5555567f2740 > ret = 0 > guid_str = {buf = "572ba989-c4ea-4952-b962-1f0145840f55\000U"} > controls = 0x5555569e69f0 > ldb = 0x55555556b5b0 >#7 0x00007ffff39a4a74 in paged_results (ac=0x555555bdfea0, ares=0x0) at ../../source4/dsdb/samdb/ldb_modules/paged_results.c:269 > guid = 0x5555555fc450 > result = 0x0 > response = 0x0 > paged = 0x5555567f2ad0 > i = 32767 > num_ctrls = 1432421200 > ret = 21845 >#8 0x00007ffff39a5f11 in paged_search (module=0x555555610350, req=0x555555922d30) at ../../source4/dsdb/samdb/ldb_modules/paged_results.c:805 > current = 0x5555567886f0 > expr_str = 0x5555567f26c0 "(|(foo=bar)(anr=a*))" > bool_ret = true > ldb = 0x55555556b5b0 > control = 0x555555d33dc0 > vlv_control = 0x0 > private_data = 0x55555561cb10 > paged_ctrl = 0x555555b766d0 > search_req = 0x5555564d86f0 > ac = 0x555555bdfea0 > ret = 0 >#9 0x00007ffff7f8f202 in ldb_next_request (module=<optimized out>, request=0x555555922d30) at ../../common/ldb_modules.c:537 > ret = <optimized out> >#10 0x00007ffff3b400c0 in dirsync_ldb_search (module=0x555555610470, req=0x555555922d30) at ../../source4/dsdb/samdb/ldb_modules/dirsync.c:1024 > control = 0x0 > acl_res = 0x1f1c63c03896b00 > dirsync_ctl = 0x0 > extended = 0x0 > down_req = 0x55555560a1e0 > dsc = 0x7ffff399c9e0 > ldb = 0x555555eea480 > new_tree = 0x5555560e91f0 > flags = 0 > ndr_err = 21845 > blob = {data = 0x555555bdfe40 "", length = 140737353374519} > attrs = 0x5555560785a0 > ret = 1432396256 > __FUNCTION__ = "dirsync_ldb_search" >#11 0x00007ffff7f8f202 in ldb_next_request (module=<optimized out>, request=0x555555922d30) at ../../common/ldb_modules.c:537 > ret = <optimized out> >#12 0x00007ffff3aeb23e in unlazy_op (module=0x555555610580, req=0x555555922d30) at ../../source4/dsdb/samdb/ldb_modules/lazy_commit.c:40 > ret = 32767 > new_req = 0x1f1c63c03896b00 > control = 0x0 >#13 0x00007ffff7f8f202 in ldb_next_request (module=<optimized out>, request=0x555555922d30) at ../../common/ldb_modules.c:537 > ret = <optimized out> >#14 0x00007ffff3b2776b in dsdb_notification_search (module=0x5555556107a0, req=0x555555922d30) at ../../source4/dsdb/samdb/ldb_modules/dsdb_notification.c:225 > control = 0x0 >#15 0x00007ffff7f8f202 in ldb_next_request (module=<optimized out>, request=0x555555922d30) at ../../common/ldb_modules.c:537 > ret = <optimized out> >#16 0x00007ffff386bc54 in rootdse_search (module=0x5555556108c0, req=0x555555922d30) at ../../source4/dsdb/samdb/ldb_modules/rootdse.c:851 > ldb = 0x55555556b5b0 > ac = 0x6206 > down_req = 0x7fffffffdd60 > ret = 0 >#17 0x00007ffff7f8f202 in ldb_next_request (module=<optimized out>, request=0x555555922d30) at ../../common/ldb_modules.c:537 > ret = <optimized out> >#18 0x00007ffff396f104 in resolve_oids_search (module=0x5555556109d0, req=0x555555922d30) at ../../source4/dsdb/samdb/ldb_modules/resolve_oids.c:497 > ldb = 0x55555556b5b0 > schema = 0x555556757370 > tree = 0x555556757370 > down_req = 0x0 > ac = 0x5555567f26c0 > ret = 5 > needed = false > attrs1 = 0x55555556b8f0 > attrs2 = 0x7ffff3815a69 <dsdb_schema_refresh> > i = 1 >#19 0x00007ffff7f8f202 in ldb_next_request (module=<optimized out>, request=0x555555922d30) at ../../common/ldb_modules.c:537 > ret = <optimized out> >#20 0x00007ffff7fa72cb in lock_search (lock_module=0x7fffffffde80, req=0x555555edff60) at ../../common/ldb.c:1122 > next_module = <optimized out> > down_req = 0x555555922d30 > lock_context = 0x555555e34aa0 > ldb = 0x55555556b5b0 > ret = 0 >#21 0x00007ffff7fa6569 in ldb_request (ldb=0x55555556b5b0, req=0x555555edff60) at ../../common/ldb.c:1172 > lock_module_ops = {name = 0x7ffff7faea89 "lock_searches", init_context = 0x0, search = 0x7ffff7fa7140 <lock_search>, 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 = 0x555555605f20, ldb = 0x55555556b5b0, private_data = 0x0, ops = 0x7ffff7fb7300 <lock_module_ops>} > next_module = 0x7fffffffde80 > ret = <optimized out> >#22 0x00005555555556b2 in ?? () >No symbol table info available. >#23 0x00005555555553b7 in ?? () >No symbol table info available. >#24 0x00007ffff7d8409b in __libc_start_main (main=0x555555555220, argc=10, argv=0x7fffffffe488, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe478) at ../csu/libc-start.c:308 > self = <optimized out> > result = <optimized out> > unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -7778522981177755865, 93824992236560, 140737488348288, 0, 0, -4514726844491106521, -4514744733974005977}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7fffffffe4e0, 0x7ffff7ffe190}, data = {prev = 0x0, cleanup = 0x0, canceltype = -6944}}} > not_first_call = <optimized out> >#25 0x000055555555543a in ?? () >No symbol table info available. > >(gdb) list >94 const char *p1; >95 const void *p2; >96 const struct ldb_val *valp = NULL; >97 int ret; >98 >99 switch (tree->operation) { >100 case LDB_OP_AND: >101 case LDB_OP_OR: >102 for (i=0;i<tree->u.list.num_elements;i++) { >103 ret = resolve_oids_parse_tree_need(ldb, schema, >(gdb) >104 tree->u.list.elements[i]); >105 if (ret != LDB_ERR_COMPARE_FALSE) { >106 return ret; >107 } >108 } >109 return LDB_ERR_COMPARE_FALSE; >110 case LDB_OP_NOT: >111 return resolve_oids_parse_tree_need(ldb, schema, >112 tree->u.isnot.child); >113 case LDB_OP_EQUALITY: > >## Hier ist tree nicht mehr korrekt: >(gdb) p tree->operation >Cannot access memory at address 0x2 >(gdb) p tree >$1 = (const struct ldb_parse_tree *) 0x2 > >## Ein Frame darüber: >(gdb) up >#1 0x00007ffff396e5b1 in resolve_oids_parse_tree_need (ldb=0x55555556b5b0, schema=0x555556757370, tree=0x555555a2a0e0) at ../../source4/dsdb/samdb/ldb_modules/resolve_oids.c:103 >103 ret = resolve_oids_parse_tree_need(ldb, schema, >(gdb) p tree >$2 = (const struct ldb_parse_tree *) 0x555555a2a0e0 >(gdb) p tree->operation >$3 = LDB_OP_OR >(gdb) p tree->u.list.num_elements >$4 = 2 > >(gdb) p tree->u.list.elements[0] >$5 = (struct ldb_parse_tree *) 0x555555d64460 >(gdb) p tree->u.list.elements[1] >$7 = (struct ldb_parse_tree *) 0x2 > >(gdb) p tree->u.list.elements[0]->operation >$6 = 1431745968 >(gdb) p tree->u.list.elements[1]->operation >Cannot access memory at address 0x2
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 14970
: 17150 |
17151
|
17152
|
17153
|
17156