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? _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
