Hi --
--- In "Dunge2" <> wrote:
>
> I managed to reproduce this bug in my perfectly safe and valid "helloworld"
> program by using multiple threads (pthread_create()), mutex
> (pthread_mutex_*()) and system() calls. It takes about an hour, but
> eventually crash the same way my application do, with corrupt memory and
> stack.
>
> Anyone got a solution? Should I find another compatible busybox? Should I use
> another linux distribution?
No solution, but I'd suspect glibc (libpthreads), then busybox. You may be
able to work around it by better checking return codes?
regards, ......... Charlie
>
> --- In "Dunge2" <dunge2@> wrote:
> >
> > Hi!
> >
> > I've got an application (gtk, multiple threads, etc) who have to call the
> > system() function to execute things like playsound and udhcpc. Problem is,
> > when I call system(), once on about every 150 calls it crash my application
> > with a corrupt stack. Something like that is sure to fail:
> >
> > for (int i=0; i<100; i++)
> > system("killall test");
> >
> > Of course there's no "test" process, but after a few calls it crash. I then
> > tried to use fork()/execl() instead, but same thing happens. Strange thing,
> > when I try it in an empty "hello word" program it don't crash, but I guess
> > that's because it don't use as much memory.
> >
> > I see that /bin/sh use busybox (BusyBox v1.7.1 from TS). Could this be the
> > problem? I know it have many problems (non-working pipes, non-working awk,
> > etc). I saw one in the files section here, but it's even older. I tried to
> > recompile the latest release (1.14.1) myself but it whine about things that
> > only exist in a newer kernel. What should I do?
> >
> > Also, I still use the old kernel/busybox/oabi first provided by TS because
> > my attempts at running EABI/Xorg failed multiple times.
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|