Hello, Jakub,

Jakub Jermar on 2012-08-16:
> On 08/15/2012 05:50 AM, Sean Bartell wrote:
> > file contents. At least, it works on Linux; running it on initrd.img in
> > HelenOS causes a memory access error partway through, possibly due to
> > stack overflow.
> 
> Indeed, the faulting address corresponds to the area just below the
> fixed-size stack. The displayed stack trace is definitely the largest I
> have seen on HelenOS. We have discussed support for growing uspace
> stacks here on this list previously, but before this gets eventually
> implemented, I'd recommend checking if you could avoid some recursion
> when interpreting the bithenge script.

I've now checked, and it needs an unreasonable stack size: 200K for
initrd.img and far more for FAT filesystems with larger files. The
problem is that the script itself uses recursion to follow the FAT
entries for each file. A proper fix would require new features, but I
will implement a workaround for this particular case where only the
first part of the data is printed.

Thanks,
Sean

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to