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

Re: New sigsegv - this one with heimdal - 2.1.5 only (ITS#2104)



"Kurt D. Zeilenga" <Kurt@OpenLDAP.org> writes:

>  From the information you provide, I cannot determine the cause
> of the segmentation violation reported on your system.  I note
> that the violation may have occurred in another thread.  In
> GDB, you can use 'info threads' to see information about threads,
> 'thread n' to select thread n, and use 'bt' in each thread to
> obtain a thread-specific back trace.

I was not able to produce any useful debuging info. Here is test from
yesterday, only sasl_gss_free_context_contents is very common in gdb
output.

There is always one thread in core dump, but on start slapd(8) will
produce 3-4 threads visible in process table.

Here is gdb when slapd(8) died but some oh his threads stayed in process table.

(root){anthea}[tmp]# gdb -p 28327
0x401c3136 in sigsuspend () from /lib/libc.so.6
(gdb) bt
#0  0x401c3136 in sigsuspend () from /lib/libc.so.6
#1  0x4018ea61 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
#2  0x4019076f in __pthread_lock () from /lib/libpthread.so.0
#3  0x4018c78e in __pthread_manager_event () from /lib/libpthread.so.0
(gdb) info threads
[New Thread 2049 (LWP 28327)]
  2 Thread 2049 (LWP 28327)  0x401c3136 in sigsuspend () from /lib/libc.so.6
  1 Thread 1024 (LWP 28326)  Couldn't get registers: No such process.
(gdb) thread 2
Couldn't get registers: No such process.
(gdb) thread 1
Couldn't get registers: No such process.
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) y
Can't detach LWP 28326: No such process
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) y
Can't detach LWP 28326: No such process
(gdb) 
[1]+  Stopped                 gdb -p 28327
(root){anthea}[tmp]# kill -9 %1

[1]+  Stopped                 gdb -p 28327
(root){anthea}[tmp]# 
[1]+  Killed                  gdb -p 28327
(root){anthea}[tmp]# 

Here is gdb when I recompiled OpenLDAP with CFLAGS="-g"

(gdb) file /usr/local/test/libexec/slapd
(gdb) run -d 256 -h "ldap://127.0.0.1 ldaps://127.0.0.1 ldap://192.168.3.1 ldaps://192.168.3.1"

[...]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4101 (LWP 28398)]
0x4020f7c3 in chunk_free () from /lib/libc.so.6
(gdb) 
(gdb) bt
#0  0x4020f7c3 in chunk_free () from /lib/libc.so.6
#1  0x4020f548 in free () from /lib/libc.so.6
#2  0x40022ad3 in sasl_gss_free_context_contents (text=0x828d0e0) at gssapi.c:548
#3  0x40022af8 in gssapi_common_mech_dispose (conn_context=0x828d0e0, utils=0x8294db0) at gssapi.c:556
#4  0x40047ab3 in server_dispose (pconn=0x8294128) at server.c:219
#5  0x40043b57 in sasl_dispose (pconn=0xbf1ffa40) at common.c:449
#6  0x0808d5e0 in strcpy ()
#7  0x08053df1 in strcpy ()
#8  0x08054300 in strcpy ()
#9  0x08055720 in strcpy ()
#10 0x08054ab4 in strcpy ()
#11 0x080d3272 in strcpy ()
#12 0x4018bf77 in pthread_start_thread () from /lib/libpthread.so.0

I realy don't know what other debug to do anymore.


-- 
Miroslav Zubcic