Re: [AVFS] rar doesn't work with avfs

Ralf Hoffmann <[email protected]> Mon, 02 Mar 2015 22:06:31 +0100
Newsgroups gmane.comp.file-systems.avfs.user
Message-ID <[email protected]>
Hi,

On 2015-03-02 10:20, Artem Pylypchuk wrote:
> Hi! I've been using avfs for a while, but recently I built a new Gentoo, and when extracting from rar it doesn't work:
> 
> [341006.628386] rar[16227]: segfault at 28 ip b74e8cc0 sp bf9642e0 error 4 in libc-2.18.so[b7486000+196000]
> [341006.645071] unrar[16262]: segfault at 7b ip b74c3f51 sp bfd0ac00 error 4 in libc-2.18.so[b7455000+196000]
> 
> I have no idea why - is it because of "shared library hack" nature of avfs? Rar/unrar work perfectly on their own.

That seems indeed weird. Do you use avfs via fuse or as a regular
library? Both methods don't use any hacks. Maybe you mean the preload
method by transparently redirecting the file system calls to AVFS, but
I'm not sure if this actually still works.

Problem could also be the specific options used to extract a single file
from a rar archive. You can see them in the file "modules/urar.c"
in function "get_rar_file". Basically rar is called like this:

rar p -c- -ierr <archive> <file to extract>

You can check if this also works when running rar separately.

Best Regards,

Ralf

-- 
Ralf Hoffmann <[email protected]>
Homepage: http://www.boomerangsworld.de

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/