We're updating the issue view to help you get more done. 

test_shutdown_stress fails (segfault)

Description

The test_shutdown_stress test fails with a segmentaion fault.
I'm not sure if this is a bug in the test or the library.

$ tar zxvf zeromq-3.2.0-rc1.tar.gz
$ cd zeromq-3.2.0
$ ./configure
$ make
$ make check
...
test_shutdown_stress running...
/bin/bash: line 5: 6170 Segmentation fault (core dumped) ${dir}$tst
FAIL: test_shutdown_stress

$ cd tests
$ gdb .libs/lt-test_shutdown_stress core.27122
...
Program terminated with signal 11, Segmentation fault.
#0 0x000003f5000003f6 in ?? ()
(gdb) where
#0 0x000003f5000003f6 in ?? ()
#1 0x00007f562cd7a43d in zmq::ctx_t::monitor_event (this=0x7f56180009a0, socket_=0x7f561800ec60, event_=256, args_=0x7f562a628190) at ctx.cpp:405
#2 0x00007f562cd91009 in zmq::socket_base_t::monitor_event (this=0x7f561800ec60, event_=256) at socket_base.cpp:1000
#3 0x00007f562cd8fa31 in zmq::session_base_t::monitor_event (this=<value optimized out>, event_=256) at session_base.cpp:279
#4 0x00007f562cd99333 in zmq::tcp_connecter_t::close (this=0x7f5620003d60) at tcp_connecter.cpp:291
#5 0x00007f562cd99e28 in ~tcp_connecter_t (this=0x7f5620003d60, __in_chrg=<value optimized out>) at tcp_connecter.cpp:77
#6 0x00007f562cd8140c in zmq::io_thread_t::in_event (this=<value optimized out>) at io_thread.cpp:82
#7 0x00007f562cd7fe82 in zmq::epoll_t::loop (this=0x81c380) at epoll.cpp:161
#8 0x00007f562cd9aeab in thread_routine (arg_=0x81c3f0) at thread.cpp:83
#9 0x00007f562c94da04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f562bf0c7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Environment

Ubuntu-9.10 (yes it's old, but see also below):
$ osname -release
ubuntu-9.10
$ uname -srm
Linux 2.6.38.2-ts5 x86_64
$ gcc -dumpversion
4.4.1
$ /lib/libc.so.6 | head -1
GNU C Library (EGLIBC) stable release version 2.10.1, by Roland McGrath et al.

Also tested on Debian-7 with the same results:
$ head -1 /etc/os-release
PRETTY_NAME="Debian GNU/Linux wheezy/sid"
$ uname -srm
Linux 3.2.0-3-amd64 x86_64
$ gcc -dumpversion
4.7
$ /lib/x86_64-linux-gnu/libc.so.6 | head -1
GNU C Library (Debian EGLIBC 2.13-33) stable release version 2.13, by Roland McGrath et al.

Status

Assignee

Unassigned

Reporter

boaz

Labels

None

Components

Affects versions

3.2.0

Priority

Major