I create pthreads, and each thread uses its own messenger, so there is no sharing and no mutexes. The program works however when there is only 1 thread, but crashes immediately when there is mo than one thread. It works in 64 bit mode no matter how many threads I create, but I have to use it in 32 bit environment.
Debug build shows that encoder->position is NULL. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xf7feeb70 (LWP 4661)] 0x0012f877 in pn_encoder_writef8 (encoder=0xf6a0b278, value=0 '\000') at /var/home/smeldris/qpid-proton-0.6/proton-c/src/codec/encoder.c:149 149 encoder->position[0] = value; Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6_3.7.i686 libuuid-2.17.2-12.7.el6_3.i686 (gdb) p encoder->position $1 = 0x0 (gdb) p encoder $2 = (pn_encoder_t *) 0xf6a0b278 (gdb) p encoder->size $3 = 2147483648 (gdb) p encoder->output $4 = 0x0 -- View this message in context: http://qpid.2158936.n2.nabble.com/Qpid-Proton-messenger-on-32-bit-linux-tp7603445p7603468.html Sent from the Apache Qpid Proton mailing list archive at Nabble.com.
