ldb

Stefan (metze) Metzmacher metze at samba.org
Tue Nov 9 18:09:02 GMT 2004


Hi Simo,

bin/ldbsearch name=administrator name

segfault with the code in the tmp ldbPlugins branch:-(

(gdb) run
Starting program: /home/People/metze/samba/4.0/samba4-ldb/bin/ldbsearch name=adm
inistrator name

Program received signal SIGSEGV, Segmentation fault.
0x0804e417 in ldb_realloc (ldb=0x0, ptr=0x0, size=16) at ldb_alloc.c:81
81              if (!ldb->alloc_ops.alloc) {
(gdb) bt
#0  0x0804e417 in ldb_realloc (ldb=0x0, ptr=0x0, size=16) at ldb_alloc.c:81
#1  0x0804e478 in ldb_malloc (ldb=0x0, size=16) at ldb_alloc.c:89
#2  0x080518d3 in ltdb_pull_attrs (module=0x805f008, msg=0xbfffd2c4,
     attrs=0xbfffd93c) at ldb_search.c:165
#3  0x08051f95 in ltdb_add_attr_results (module=0x805f008, msg=0xbfffd2c4,
     attrs=0xbfffd93c, count=0xbfffd2d4, res=0xbfffd3f8) at ldb_search.c:390
#4  0x08053a3e in ldb_index_filter (module=0x8072a44, tree=0x8072c9c,
     base=0x0, scope=LDB_SCOPE_SUBTREE, dn_list=0xbfffd324, attrs=0xbfffd93c,
     res=0xbfffd3f8) at ldb_index.c:529
#5  0x08053af1 in ltdb_search_indexed (module=0x8072a44, base=0x0,
     scope=LDB_SCOPE_SUBTREE, tree=0x8072c9c, attrs=0xbfffd93c, res=0xbfffd3f8)
     at ldb_index.c:566
#6  0x080523f3 in ltdb_search (module=0x8072a44, base=0x0,
     scope=LDB_SCOPE_SUBTREE, expression=0xbffff609 "name=administrator",
     attrs=0xbfffd93c, res=0xbfffd3f8) at ldb_search.c:563
#7  0x0804b8ae in ldb_search (ldb=0x805f008, base=0x0,
     scope=LDB_SCOPE_SUBTREE, expression=0xbffff609 "name=administrator",
     attrs=0xbfffd93c, res=0xbfffd3f8) at ldb.c:101
#8  0x0804b21f in do_search (ldb=0x805f008, basedn=0x0, scope=2,
     expression=0xbffff609 "name=administrator", attrs=0xbfffd93c)
     at ldbsearch.c:57
#9  0x0804b6f4 in main (argc=2, argv=0xbfffd938) at ldbsearch.c:179
(gdb) exit


-- 
metze

Stefan Metzmacher <metze at samba.org> www.samba.org


More information about the samba-technical mailing list