[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nanomsg tests fail on sparc

* Harlan Lieberman-Berg <H.LiebermanBerg@gmail.com>, 2014-10-23, 14:13:
I'll try to reproduce the FTBFS on a porterbox later today.
Awesome.  Let me know if there's anything I can do to help.

As promised, here's gdb backtrace:

#0  0xf7fa048c in nn_chunkref_size (self=self@entry=0x25351) at src/utils/chunkref.c:123
#1  0xf7fb0c9c in nn_sipc_send (self=0x25260, msg=0xffffd4dc) at src/transports/ipc/sipc.c:142
#2  0xf7f97938 in nn_pipe_send (self=0x25260, msg=msg@entry=0xffffd4dc) at src/core/pipe.c:188
#3  0xf7fa9a68 in nn_excl_send (self=0x24e38, msg=0xffffd4dc) at src/protocols/utils/excl.c:84
#4  0xf7f99470 in nn_sock_send (self=0x24ca0, msg=msg@entry=0xffffd4dc, flags=flags@entry=0) at src/core/sock.c:570
#5  0xf7f95b18 in nn_sendmsg (s=s@entry=0, msghdr=msghdr@entry=0xffffd58c, flags=flags@entry=0) at src/core/global.c:756
#6  0xf7f95d0c in nn_send (s=s@entry=0, buf=buf@entry=0x11480, len=len@entry=40, flags=flags@entry=0) at src/core/global.c:656
#7  0x00011004 in test_send_impl (line=line@entry=58, sock=sock@entry=0, data=data@entry=0x11480 "0123456789012345678901234567890123456789", file=0x112e0 "tests/ipc.c") at tests/testutil.h:112
#8  0x000109a0 in main () at tests/ipc.c:58

The line that triggers crash is:

       nn_chunk_size (((struct nn_chunkref_chunk*) self)->chunk) :

Here dereferencing fails catastrophically, because the pointer is unaligned (self=0x25351).

Jakub Wilk

Reply to: