qpidd crashed with SIGSEGV in __pthread_mutex_lock()

Bug #942409 reported by kb3gtn
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qpid-cpp (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Qpidd and qpid clients segfault on exit with a SEGFAULT on pthread_mutex_lock().
Running ubuntu 12.04 (development) on AMD64 arch.
Some dorky testing with some qpid client code in c++ seems to suggest a problem with a pthread_cancel() call when an program terminates.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: qpidd 0.14-2
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Tue Feb 28 05:12:05 2012
ExecutablePath: /usr/sbin/qpidd
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111129)
ProcCmdline: qpidd -q
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x7f181f8b1e84 <pthread_mutex_lock+4>: mov 0x10(%rdi),%esi
 PC (0x7f181f8b1e84) ok
 source "0x10(%rdi)" (0x00000010) not located in a known VMA region (needed readable region)!
 destination "%esi" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: qpid-cpp
StacktraceTop:
 pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
 PR_Lock () from /usr/lib/x86_64-linux-gnu/libnspr4.so
 NSS_Shutdown () from /usr/lib/x86_64-linux-gnu/libnss3.so
 qpid::sys::SslPlugin::~SslPlugin() () from /usr/lib/qpid/daemon/ssl.so
 ?? () from /lib/x86_64-linux-gnu/libc.so.6
Title: qpidd crashed with SIGSEGV in pthread_mutex_lock()
UpgradeStatus: Upgraded to precise on 2012-01-25 (34 days ago)
UserGroups:

mtime.conffile..etc.qpid.qpidd.conf: 2012-02-17T00:13:55.350335

Revision history for this message
kb3gtn (kb3gtn) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __pthread_mutex_lock (mutex=0x0) at pthread_mutex_lock.c:50
 PR_Lock (lock=0x0) at ptsynch.c:206
 NSS_Shutdown () at nssinit.c:1143
 qpid::sys::SslPlugin::~SslPlugin (this=0x7f181e47a800, __in_chrg=<optimized out>) at qpid/sys/SslPlugin.cpp:102
 __run_exit_handlers (status=1, listp=0x7f181fe79688, run_list_atexit=true) at exit.c:78

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in qpid-cpp (Ubuntu):
importance: Undecided → Medium
summary: - qpidd crashed with SIGSEGV in pthread_mutex_lock()
+ qpidd crashed with SIGSEGV in __pthread_mutex_lock()
tags: removed: need-amd64-retrace
kb3gtn (kb3gtn)
visibility: private → public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qpid-cpp (Ubuntu):
status: New → Confirmed
Revision history for this message
kpx1894 (kpx1894) wrote :

It is crashing when module is stopped:

$ sudo /etc/init.d/qpidd stop
 * Stopping AMQP broker qpidd [ OK ]

Aug 6 16:54:13 ubuntu qpidd[3155]: notice Shut down
Aug 6 16:54:13 ubuntu kernel: [ 2961.981568] show_signal_msg: 36 callbacks suppressed
Aug 6 16:54:13 ubuntu kernel: [ 2961.981581] qpidd[3155]: segfault at 10 ip 00007f6673386e84 sp 00007fff00bce580 error 4 in libpthread-2.15.so[7f667337d000+18000]

Revision history for this message
Takahiro Shida (shida-takahiro) wrote :

We reproduce this problem.
And, we avoid this to move out ssl.so file.

$ sudo mv /usr/lib/qpid/daemon/ssl.so ~/
$ sudo /etc/init.d/qpidd start
$ sudo /etc/init.d/qpidd stop

Just a stopgap

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.