I received a seg fault on ubuntu when trying to use foremost.
In gdb I tracked it down to be an issue formatting the block variable.
I changed the following format string in dir.c at line 331
"%d:\t%10ld.%s \t %10s \t %10llu \t %s"
to
"%d:\t%10llu.%s \t %10s \t %10llu \t %s"
This seems to fix the issue.