ts-7000
[Top] [All Lists]

[ts-7000] Re: Busybox/sh problems?

To:
Subject: [ts-7000] Re: Busybox/sh problems?
From: "Charles" <>
Date: Fri, 16 Oct 2009 13:22:04 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU