AW: [uClinux-dev] CONFIG_USER_BUSYBOX_MD5SUM breaks pthreads?
Wolf, Josef
josef.wolf at siemens.com
Fri Jun 13 07:39:19 EDT 2008
Myself wrote:
> Now I decided to activate md5sum utility in busybox. With this, I get
> problems with pthreads. For some reason, only the first four
> invocations of pthread_create() are successful. The fifth invocation
> simply hangs. There's no error code returned, the system call simply
> don't return. The main thread is still there, but it stops to do
> anything. I have attached a file at the end of the mail and marked
> the point of hang with comments to illustrate the problem.
>
> When I unset the CONFIG_USER_BUSYBOX_MD5SUM, then everything starts
> working properly again.
>
> Any ideas what could be the cause of the problem or how to track down
> the problem?
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.
Now my question is: Where is the proper place to increase stack size for
busybox?
More information about the uClinux-dev
mailing list