-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault in zmq::encoder_base_t #4111
Comments
This is part of https://github.com/magma/magma, looking for guidance on what we can do to debug this issue better. It is pretty sporadic. |
We ran into this again. (gdb) x/i 0x60a5b |
This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions. |
Issue description
SEGV similar to #2674. Couldn't fully figure out the resolution of that issue, happy to comment there if it is better.
Environment
libzmq version (commit hash if unreleased):
4.2.1-4+deb9u
OS:
debian-stretch
kernel - 4.9.0-9-amd64
Minimal test code / Steps to reproduce the issue
Have been running a zmq based service for a couple of weeks and saw this crash once.
What's the actual result? (include assertion message & call stack if applicable)
SIGSEGV
(gdb) bt
#0 __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/../multiarch/memmove-vec-unaligned-erms.S:416
#1 0x00007f475d2c7bc1 in __interceptor_memcpy (to=0x625000304c6a, from=0x618000800024, size=856)
at ../../../../src/libsanitizer/asan/asan_interceptors.cc:436
#2 0x00007f4757275d81 in memcpy (__len=, _src=, dest=)
at /usr/include/x86_64-linux-gnu/bits/string3.h:53
#3 zmq::encoder_base_tzmq::v2_encoder_t::encode (this=0x608000044520, data=0x7f474d9e7bc0, size=) at src/encoder.hpp:127
#4 0x00007f4757265e1a in zmq::stream_engine_t::out_event (this=0x61a00002a080) at src/stream_engine.cpp:400
#5 0x00007f47572361e7 in zmq::io_thread_t::in_event (this=0x6110000241c0) at src/io_thread.cpp:85
#6 0x00007f4757234a6e in zmq::epoll_t::loop (this=0x611000024080) at src/epoll.cpp:188
#7 0x00007f4757270a5c in thread_routine (arg=0x611000024100) at src/thread.cpp:100
#8 0x00007f475ce494a4 in start_thread (arg=0x7f474d9e9700) at pthread_create.c:456
#9 0x00007f47591bdd0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
The text was updated successfully, but these errors were encountered: