[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Segmentation Fault using slapadd



Could be wrong, but it looks like you're running a old version of OpenLDAP?

Can't find that eval.c file.

--Kervin

Celso G. Lima wrote:
Thanks a lot for helping me with that.

The programs exits with the following message (I noticed the " malloc.c: No
such file of directory"):

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 6964)]
0x402bf246 in chunk_free (ar_ptr=0x40372b80, p=0x8594718) at malloc.c:3242
3242    malloc.c: No such file or directory.
        in malloc.c


(gdb) backtrace full gives us the following:

#0  0x402bf246 in chunk_free (ar_ptr=0x40372b80, p=0x8594718) at
malloc.c:3242
        hd = 4096
        sz = 4152
        idx = 4104
        next = 0x8594748
        nextsz = 4104
        prevsz = 4096
        bck = 0x40372c20
        fwd = 0x13579ace
        islr = 0
        sz = 4152
        next = 0x8594748
        bck = 0x40372c20
        islr = 0
#1  0x402beff4 in __libc_free (mem=0x8594720) at malloc.c:3154
        mem = (void *) 0x13579ace
        ar_ptr = (arena *) 0x40372b80
        p = 0x8594718
        hook = (void (*)()) 0x1000
#2  0x4006767a in _gdbm_read_entry () at eval.c:41
        ap = (void **) 0x87888d4
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x87888c8 "\bÈ\202\b"
        result = 142117076
        result = 142117064
#3  0x400678f8 in _gdbm_findkey () at eval.c:41
---Type <return> to continue, or q <return> to quit---
        ap = (void **) 0x8b6ff1c
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x882c888 "ðC\017"
        result = 146210588
        result = 142788744
#4  0x40065751 in gdbm_fetch () at eval.c:41
        ap = (void **) 0x0
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x0
        result = 0
        result = 0
#5  0x0807d958 in avl_dup_error () at eval.c:41
        ap = (void **) 0x10
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x87853e8 "0Tx\b\001"
        result = 16
        result = 142103528
#6  0x08073cbe in ldbm_back_db_config () at eval.c:41
        ap = (void **) 0x10
        digval = 4096
---Type <return> to continue, or q <return> to quit---
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x87853e8 "0Tx\b\001"
        result = 16
        result = 142103528
#7  0x08077f19 in ldbm_back_group () at eval.c:41
        ap = (void **) 0x10
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x80921ac " &\t\b"
        result = 16
        result = 134816172
#8  0x080784ef in ldbm_back_group () at eval.c:41
        ap = (void **) 0x80b3a7c
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x80b3308 "ä\020\t\b"
        result = 134953596
        result = 134951688
#9  0x0807a2b0 in ldbm_back_group () at eval.c:41
        ap = (void **) 0x80b3a7c
        digval = 4096
        digval = 4096
        digval = 4096
---Type <return> to continue, or q <return> to quit---
        digval = 4096
        p = 0x80b3308 "ä\020\t\b"
        result = 134953596
        result = 134951688
#10 0x08079daa in ldbm_back_group () at eval.c:41
        ap = (void **) 0x80b3a7c
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x8 <Address 0x8 out of bounds>
        result = 134953596
        result = 8
#11 0x08079e9b in ldbm_back_group () at eval.c:41
        ap = (void **) 0x809df00
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x809dec8 "sn"
        result = 134864640
        result = 134864584
#12 0x08079fab in ldbm_back_group () at eval.c:41
        ap = (void **) 0x8b9dde0
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x8ba2b78 "\030\215¶\b\200Ƹ\b\230¹À\b!"
---Type <return> to continue, or q <return> to quit---
        result = 146398688
        result = 146418552
#13 0x0807a07a in ldbm_back_group () at eval.c:41
        ap = (void **) 0x8bd3418
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x809dec8 "sn"
        result = 146617368
        result = 134864584
#14 0x0806d730 in ldbm_tool_entry_put () at eval.c:41
        ap = (void **) 0x8b9dde0
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0xffffffff <Address 0xffffffff out of bounds>
        result = 146398688
        result = 4294967295
#15 0x0804c7b1 in ldap_str2matchingrule () at eval.c:41
        ap = (void **) 0x809204c
        digval = 4096
        digval = 4096
        digval = 4096
        digval = 4096
        p = 0x8b9dde0 "V$"
        result = 134815820
        result = 146398688
---Type <return> to continue, or q <return> to quit---
#16 0x4025a627 in __libc_start_main (main=0x804c4d4
<ldap_str2matchingrule+288>, argc=5, ubp_av=0xbfffe0e4,
    init=0x804b99c <_init>, fini=0x8081f70 <_fini>, rtld_fini=0x4000dcc4
<_dl_fini>, stack_end=0xbfffe0dc)
    at ../sysdeps/generic/libc-start.c:129
        ubp_av = (char **) 0x809204c
        fini = (void (*)()) 0x8b9dde0
        rtld_fini = (void (*)()) 0x40372b80 <main_arena>
        ubp_ev = (char **) 0xbfffe0fc




----- Original Message ----- From: "Kervin Pierre" <kpierre@fit.edu> To: "Celso G. Lima" <celso.lima@usm.edu>; <openldap-software@OpenLDAP.org> Sent: Thursday, April 11, 2002 2:27 PM Subject: Re: Segmentation Fault using slapadd



1. Run gdb, at the command line with slapadd as the only arguement.
2. At the gdb prompt execute the 'run' command with your arguements.
ie...

#gdb slapadd
gdb>run -f  slapd.conf -l filename.ldif

Now if your program reliabley segfaults, then gdb will catch it.  You
should see a notice saying that it faulted.

at the gdb prompt run the backtrace command.

gdb>backtrace full

Copy and past the output in an email.  That should at least give us more
information to work with in debuging.

--Kervin

Celso G. Lima wrote:

I could not find a core file, so I am assuming It did not leave any. Do

you

know where else I can look to try to backtrace?


----- Original Message ----- From: "Kervin Pierre" <kpierre@fit.edu> To: "Celso G. Lima" <celso.lima@usm.edu> Cc: <openldap-software@OpenLDAP.org> Sent: Thursday, April 11, 2002 1:35 PM Subject: Re: Segmentation Fault using slapadd




did it leave a core file?  full backtrace might be helpful.

Celso G. Lima wrote:


I got a segmentation fault error when I ran

                      slapadd -f  slapd.conf -l filename.ldif

Does anybody know what might be causing this error?

Thanks,

Celso





-- http://linuxquestions.org/ - Ask linux questions, give linux help. http://splint.org/ - Write safe C code. splint source-code analyzer.





--
http://linuxquestions.org/ - Ask linux questions, give linux help.
http://splint.org/ - Write safe C code. splint source-code analyzer.






-- http://linuxquestions.org/ - Ask linux questions, give linux help. http://splint.org/ - Write safe C code. splint source-code analyzer.