You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Cajus Pollmeier <ca...@naasa.net> on 2011/12/01 10:58:41 UTC

Segfaults when stopping qpid 0.12

Hi,

after reporting failed tests some days ago, I continued to build the 
msgstore module. There I noticed that the stop-broker skript produces 
segfaults when calling "qpidd --quit". That is reproduceable on the 
command line and seems to even work when pressing Strg+C, too:

8<-----
root@debian:~# export LC_ALL=C
root@debian:~# qpidd
2011-12-01 10:36:38 notice Listening on TCP port 5672
2011-12-01 10:36:38 notice SSL plugin not enabled, you must set 
--ssl-cert-db to enable it.
2011-12-01 10:36:38 notice Broker running
^C2011-12-01 10:36:39 notice Shut down
Segmentation fault (core dumped)
root@debian:~# gdb /usr/sbin/qpidd core
GNU gdb (GDB) 7.3-debian
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/qpidd...(no debugging symbols 
found)...done.
[New LWP 1990]
[New LWP 1992]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `qpidd'.
Program terminated with signal 11, Segmentation fault.
#0  __pthread_mutex_lock (mutex=0x0) at pthread_mutex_lock.c:50
50      pthread_mutex_lock.c: No such file or directory.
         in pthread_mutex_lock.c
(gdb) bt full
#0  __pthread_mutex_lock (mutex=0x0) at pthread_mutex_lock.c:50
         __PRETTY_FUNCTION__ = "__pthread_mutex_lock"
         type = <optimized out>
#1  0x00007fc353d940e9 in PR_Lock (lock=0x0) at ptsynch.c:206
No locals.
#2  0x00007fc354200ece in NSS_Shutdown () at nssinit.c:1143
         rv = <optimized out>
#3  0x00007fc3547386a6 in qpid::sys::SslPlugin::~SslPlugin() () from 
/usr/lib/qpid/daemon/ssl.so
No symbol table info available.
#4  0x00007fc3553d6d82 in __run_exit_handlers (status=0, 
listp=0x7fc35571e4c8, run_list_atexit=true) at exit.c:78
         atfct = <optimized out>
         onfct = <optimized out>
         cxafct = 0x7fc35518d110 <__pthread_mutex_lock>
#5  0x00007fc3553d6dd5 in *__GI_exit (status=0) at exit.c:100
No locals.
#6  0x00007fc3553beeb4 in __libc_start_main (main=<optimized out>, 
argc=<optimized out>, ubp_av=<optimized out>,
     init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized 
out>, stack_end=0x7fffb0729b48) at libc-start.c:260
         result = 1427689744
         unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 
-6338148498696610698, 4240260, 140736153688912, 0, 0, 
6338041733426928758,
                 6308687600543816822}, mask_was_saved = 0}}, priv = {pad 
= {0x0, 0x0, 0x414080, 0x7fffb0729b58}, data = {prev = 0x0,
               cleanup = 0x0, canceltype = 4276352}}}
         not_first_call = <optimized out>
#7  0x000000000040b3ad in ?? ()
No symbol table info available.
#8  0x00007fffb0729b48 in ?? ()
No symbol table info available.
#9  0x000000000000001c in ?? ()
No symbol table info available.
#10 0x0000000000000001 in ?? ()
No symbol table info available.
#11 0x00007fffb0729ea9 in ?? ()
No symbol table info available.
#12 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb)
8<-----

While the core dump is nearly the same, 'qpidd --quit' doesn't seem to 
find the PID file and does not quit qpidd:

2011-12-01 10:35:00 critical Unexpected error: Cannot open 
/root/.qpidd/qpidd.5672.pid: No such file or directory

Regards,
Cajus


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org