[zeromq-dev] Assertion failed: ok (mailbox.cpp:84)

Marcin Olak marcin.olak at gmail.com
Sat Feb 11 02:39:36 CET 2012


Hi,

> If you on linux system, run your program with strace: strace
> executable -o logfile.log

Last two requests processed by the worker thread that aborted the program:

<processing HTTP request, then zeroMQ part>

10759 fcntl64(1847, F_GETFL <unfinished ...>
10759 <... fcntl64 resumed> )           = 0x2 (flags O_RDWR)
10759 fcntl64(1847, F_SETFL, O_RDWR|O_NONBLOCK <unfinished ...>
10759 <... fcntl64 resumed> )           = 0
10759 fcntl64(1848, F_GETFL <unfinished ...>
10759 <... fcntl64 resumed> )           = 0x2 (flags O_RDWR)
10759 fcntl64(1848, F_SETFL, O_RDWR|O_NONBLOCK <unfinished ...>
10759 <... fcntl64 resumed> )           = 0
10759 read(78,  <unfinished ...>
10759 <... read resumed> "@\255\262r\364\341\272\262\336x-\362\225e\263\346", 
16) = 16
10759 poll([{fd=1848, events=POLLIN}], 1, 0 <unfinished ...>

<we timeout because backed zeroMQ service is down>

10759 <... poll resumed> )              = 0 (Timeout)
10759 poll([{fd=1848, events=POLLIN}], 1, 0 <unfinished ...>
10759 <... poll resumed> )              = 0 (Timeout)
10759 poll([{fd=1848, events=POLLIN}], 1, 0 <unfinished ...>
10759 <... poll resumed> )              = 0 (Timeout)
10759 poll([{fd=1848, events=POLLIN}], 1, 5000 <unfinished ...>
10759 <... poll resumed> )              = 0 (Timeout)
10759 poll([{fd=1848, events=POLLIN}], 1, 0) = 0 (Timeout)
10759 write(1, "[2012-02-11 00:46:17] [Error Lev"..., 222) = 222
10759 poll([{fd=1589, events=POLLOUT}], 1, 10000) = 1 ([{fd=1589, 
revents=POLLOUT}])
10759 poll([{fd=1589, events=POLLOUT}], 1, 10000 <unfinished ...>
10759 <... poll resumed> )              = 1 ([{fd=1589, 
revents=POLLOUT|POLLERR|POLLHUP}])
10759 --- SIGPIPE (Broken pipe) @ 0 (0) ---
10759 close(1589)

<process next incoming HTTP request - quite lengthy>

10759 fcntl64(1357, F_GETFL <unfinished ...>
10759 <... fcntl64 resumed> )           = 0x2 (flags O_RDWR)
10759 fcntl64(1357, F_SETFL, O_RDWR|O_NONBLOCK) = 0
10759 fcntl64(3150, F_GETFL <unfinished ...>
10759 <... fcntl64 resumed> )           = 0x2 (flags O_RDWR)
10759 fcntl64(3150, F_SETFL, O_RDWR|O_NONBLOCK <unfinished ...>
10759 <... fcntl64 resumed> )           = 0
10759 read(78, "&\3657\347 1\33\300\337\307<\267\337W(\362", 16) = 16
10759 poll([{fd=3150, events=POLLIN}], 1, 0) = 1 ([{fd=3150, revents=POLLIN}])
10759 write(2, "Assertion failed: ok (mailbox.cp"..., 38) = 38
10759 --- SIGABRT (Aborted) @ 0 (0) ---

There are no other operations on fd 3150.

regards,
Marcin




More information about the zeromq-dev mailing list