qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shearer, Davin" <dshea...@novetta.com>
Subject Re: void qpid::sys::Mutex::lock(): Assertion `0' failed
Date Mon, 20 Jan 2014 22:24:51 GMT
Here's the last bit of an strace of the same command:

...
write(1, "  --topic-patterns PATTERN  Patt"..., 57  --topic-patterns
PATTERN  Pattern for on-demand topics
) = 57
write(1, "\n", 1
)                       = 1
dup(2)                                  = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f1222ea0000
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(3, "Invalid argument\n", 17Invalid argument
)      = 17
close(3)                                = 0
munmap(0x7f1222ea0000, 4096)            = 0
write(2, "qpidd: /home/davin/stash/exit2xx"..., 142qpidd:
/home/davin/stash/exit2xx/external/qpid/build/cpp/src/qpid/sys/posix/Mutex.h:116:
void qpid::sys::Mutex::lock(): Assertion `0' failed.
) = 142
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f1222ea0000
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(30725, 30725, SIGABRT)           = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=30725, si_uid=1011}
---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)

Loading qpidd up in gdb and putting a breakpoint on lseek (what caused the
illegal seek in the system trace) gives the following backtrace:

#0  0x00000037c84f5de0 in lseek64 () from /lib64/libc.so.6
#1  0x00000037c8476775 in __GI__IO_file_seekoff () from /lib64/libc.so.6
#2  0x00000037c8478107 in __GI__IO_file_attach () from /lib64/libc.so.6
#3  0x00000037c846bd37 in fdopen@@GLIBC_2.2.5 () from /lib64/libc.so.6
#4  0x00000037c8468e88 in perror () from /lib64/libc.so.6
#5  0x0000000000668f03 in qpid::sys::Mutex::lock() ()
#6  0x0000000000668fa4 in
qpid::sys::ScopedLock<qpid::sys::Mutex>::ScopedLock(qpid::sys::Mutex&) ()
#7  0x00000000008b0048 in
qpid::sys::DeletionManager<qpid::sys::PollerHandlePrivate>::AllThreadsStatuses::~AllThreadsStatuses()
()
#8  0x00000037c8439279 in __run_exit_handlers () from /lib64/libc.so.6
#9  0x00000037c84392c5 in exit () from /lib64/libc.so.6
#10 0x00000037c8421b4c in __libc_start_main () from /lib64/libc.so.6
#11 0x0000000000648389 in _start ()

Hope it helps narrow down the issue.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message