pjlib test crash: uninitialized stack frame

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

 



On Fri, Oct 31, 2014 at 03:48:59PM +0200, Tzafrir Cohen wrote:
> Hi
> 
> It seems my 2.3 packageis not ready yet.
> 
> I figured it would be nice to pass the tests. Alas,
> 
> cd pjlib/build && ../bin/pjlib-test-x86_64-pc-linux-gnu
> 15:29:01.499 Running errno_test()...
> 15:29:01.499 ...errno test: check the msg carefully
> 15:29:01.499 ...msg for rc=EINVAL: 'Invalid argument'
> 15:29:01.499 ...msg for rc=EINVAL (cut): 'Inval'
> 15:29:01.499 ...msg for rc=PJ_EBUG: 'BUG DETECTED! (PJ_EBUG)'
> 15:29:01.499 ...msg for rc=PJ_EBUG, cut at 6 chars: 'BUG D'
> 15:29:01.499 ...testing pj_perror: Success
> 15:29:01.499 ...testing PJ_PERROR: Success
> 15:29:01.499 ..success(0)
> 15:29:01.499 Running exception_test()...
> *** longjmp causes uninitialized stack frame ***:
> ../bin/pjlib-test-x86_64-pc-linux-gnu terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(+0x72faf)[0x7fa76ae67faf]
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fa76aeeb0a7]
> /lib/x86_64-linux-gnu/libc.so.6(+0xf5fdd)[0x7fa76aeeafdd]
> /lib/x86_64-linux-gnu/libc.so.6(__longjmp_chk+0x29)[0x7fa76aeeaf39]
> /usr/lib/libpj.so.2(pj_throw_exception_+0x2f)[0x7fa76e18d82f]
> ../bin/pjlib-test-x86_64-pc-linux-gnu[0x40766b]
> ../bin/pjlib-test-x86_64-pc-linux-gnu[0x407695]
> ../bin/pjlib-test-x86_64-pc-linux-gnu[0x419723]
> ../bin/pjlib-test-x86_64-pc-linux-gnu[0x41a236]
> ../bin/pjlib-test-x86_64-pc-linux-gnu(main+0x1b2)[0x406062]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fa76ae16b45]
> ../bin/pjlib-test-x86_64-pc-linux-gnu[0x4060c4]

Problem solved. A big clue was actually snipped here: the memory map of
the process.

The fix was to run:

  LD_LIBRARY_PATH=`echo $PWD/*/lib make selftest

(Make that '$' a '$$' if it's in a makefile)

The problem was that I had an older version of the package installed on
the system. The test driver was dynamically linked with it. And in that
case odd things can happen.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux