[Yaffs-archive] yaffs segfaults

Top Page
Attachments:
Message as email
+ (text/plain)
+ st (application/octet-stream)
Delete this message
Reply to this message
Author: Nick Bane
Date:  
To: yaffs list
Subject: [Yaffs-archive] yaffs segfaults
I can confirm a partially repeatable segfault as a result of a yaffs write.

When I tried to do an ipkg install on Balloon there was a segfault seemingly
on closing an inoccuous file from within ipkg. This does not happen on an
iPaq 3700 under jffs2 so it isn't likely to be ipkg.

Repeatedly trying to install caused the same fault. Reboot did not clear the
fault.

The created file that caused the segfault on closing happened to be
"/usr/lib/ipkg/info/thttpd.list".
This file should be quite small but was rather large and contained data that
should not have been there.
Reading the file by either "cat" or "vi" or by "more" also caused a segfault
but only when the end of the file was reached in the case of "more".
I rm'd the file (no problem) and then ipkg installed thttpd without fuss
yielding a resonably sized thttpd.list with the expected contents.

Strace attached in case it is helpful.

I then tried to install rsync. The only problem was that /usr/doc/rsync was
cresteated as a file not a directory so the copyright message didn't get
added. ipkg remove rsync was fine. Trying ipkg install rsync then dropped
out with a segfault. Guess what, cat rsync.list (which was very large) also
failed with a segfault.

Reboot and .. all is fine, ipkg install|remove rsync has no problems.

Doing the same thing with "less" and the same problem comes back leaving a
zero length less.list file that segfaults on "cat"ing.


Nick

-------------------------------------------
Nick Bane
Cambridge, UK.
+44(0)1954 719270