[uClinux-dev] CONFIG_USER_BUSYBOX_MD5SUM breaks pthreads?
Jamie Lokier
jamie at shareable.org
Fri Jun 13 09:22:26 EDT 2008
Wolf, Josef wrote:
> OK, I've tracked it down now. Seems to be a stack overflow in busybox.
> Adding
>
> LDFLAGS += -Wl,-elf2flt="-r -s 65536"
>
> to user/busybox/Makefile solves the problem.
Be careful: the "-s" option just changes the _initial_ thread's stack.
The stack size for subsequent threads is hard-coded into libpthread,
in uclibc. You can override it with pthread_attr_init,
pthread_attr_setstacksize, and modifying all calls to pthread_create.
Unfortunately no global run-time setting.
-- Jamie
More information about the uClinux-dev
mailing list