What's new

simple threaded app seg faults

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ethician

Occasional Visitor
Using the latest asuswrt-merlin from git and custom built gcc (4.8.3) I've tried to compile a simple threaded application using libpthread (boost wrapped) which immediately seg faults on execution.

gdb gives
#0 0x2ab4bf7c in memcpy () from /lib/libc.so.0
#1 0x2ab7129c in __libc_pthread_init () from /lib/libc.so.0
#2 0x2aac90f0 in __pthread_initialize_minimal () from /lib/libpthread.so.0
#3 0x2ab71480 in __uClibc_init () from /lib/libc.so.0
#4 0x2aaac8f0 in _dl_get_ready_to_run () from /lib/ld-uClibc.so.0
#5 0x2aaacdac in ?? () from /lib/ld-uClibc.so.0

Is there any known remedy?

Thanks!
 
For those, who are interested: forcing the Makefile (libfoo.pl) not to strip the respective libraries solves this issue.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top