Saturday, 2 March 2013

Re: [gccsdk] stderr 2 file advantage

In message <2d6cc70253.beeb@ron1954.woosh.co.nz>
Ron <beeb@woosh.co.nz> wrote:

> In message <20121223124205.46E522522B@orac.inputplus.co.uk>
> Ralph Corderoy <ralph@inputplus.co.uk> wrote:
>
> > Hi Ron,
> >
> > > I can get this to error (foo.tar is in CSD in RAM:)
> > > ADFS::HardDisc4.$.!TarCtrl.Files.Bin.tar vxf foo.tar but moving the
> > > tar binary to the same directory and all is OK. tar vxf foo.tar
> >
> > Could it be a memory corruption issue and changing the command line is
> > altering whether real data as opposed to padding it being trampled?
> > Perhaps ensure ADFS::HardDisc4.$.!TarCtrl.Files.Bin.tar still fails then
> > rename the path to be shorter, character by character, and see if
> > there's a pattern to when it works.
> >
> > Cheers, Ralph.
> >
>
> Possible memory corruption is another complication, and rebooting with
> different approaches is necessary now and again to stop drawing wrong
> conclusions.
> It is possible to get the error to toggle just around the changing of
> one character, for example I tried something similar to your
> suggestion and it appeared to work without the ! in the path.
> A reboot dispelled that theory and for 'good measure' worked as expected
> not erroring as in the initially described way either.
>
<snip more inuendo>

Just to update, I made a lot of changes to circumnavigate suspicious
areas, replaced arguments with environment variable, did away with
fork/exec to the CLI for file renaming, (a modified tar now does this
much easier) but still got a few segmentation erorrs.

By looking at the backtrace, I removed a couple of un-needed functions
in the vicinity of the crash and haven't had any more errors since.
The last one removed was related to pwuid (or something similar)

The new bright shining !TarCtrl app is available at
http://homepages.woosh.co.nz/ron.may/tarctrl.zip

I have noticed lately a lot of tar/gz files from the web are actually
just plain tar files, so if a compressed archive doesn't extract, try
setting compression to none.

Thanks, Ron M.


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment