Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rar2fs crash #13

Closed
hasse69 opened this issue Mar 13, 2015 · 4 comments
Closed

rar2fs crash #13

hasse69 opened this issue Mar 13, 2015 · 4 comments

Comments

@hasse69
Copy link
Owner

hasse69 commented Mar 13, 2015

I got a crash in rar2fs when scanning my media directory with plex, 

I have tried this version 1.16 and trunk with unrar 4.0.7 and 4.2.4 both dies on the same file:

#sudo -u plex rar2fs -o allow_other /mnt/data1 /mnt/data1_rar2fs


LOOKUP /movies/english/In.The.House.2012.720p.BluRay.x264-MELiTE/m-ith-720p.sfv
getattr /movies/english/In.The.House.2012.720p.BluRay.x264-MELiTE/m-ith-720p.sfv
   NODEID: 409
   unique: 876, success, outsize: 144
unique: 877, opcode: READDIR (28), nodeid: 402, insize: 80, pid: 6829
   unique: 877, success, outsize: 16
unique: 878, opcode: RELEASEDIR (29), nodeid: 402, insize: 64, pid: 0
   unique: 878, success, outsize: 16
unique: 879, opcode: LOOKUP (1), nodeid: 3, insize: 103, pid: 6829
LOOKUP /movies/english/Iron.Man.Rise.Of.Technovore.2013.720p.BluRay.x264-UNTOUCHABLES
getattr /movies/english/Iron.Man.Rise.Of.Technovore.2013.720p.BluRay.x264-UNTOUCHABLES
   NODEID: 410
   unique: 879, success, outsize: 144
unique: 880, opcode: OPENDIR (27), nodeid: 410, insize: 48, pid: 6829
   unique: 880, success, outsize: 32
unique: 881, opcode: READDIR (28), nodeid: 410, insize: 80, pid: 6829
readdir[0] from 0
Got signal 11, faulty address is 0x0x8, from 0x0x407bd9
rar2fs() [0x407bd9]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7effd611bcb0]
/lib/x86_64-linux-gnu/libc.so.6(+0x89101) [0x7effd5dd6101]
/lib/x86_64-linux-gnu/libc.so.6(__strdup+0x16) [0x7effd5dd5d66]
rar2fs() [0x40dad9]
rar2fs() [0x40ea6b]
rar2fs() [0x40edc8]
/lib/x86_64-linux-gnu/libfuse.so.2(fuse_fs_readdir+0x96) [0x7effd6a95986]
/lib/x86_64-linux-gnu/libfuse.so.2(+0xcbd8) [0x7effd6a95bd8]
/lib/x86_64-linux-gnu/libfuse.so.2(+0x14666) [0x7effd6a9d666]
/lib/x86_64-linux-gnu/libfuse.so.2(+0x15947) [0x7effd6a9e947]
/lib/x86_64-linux-gnu/libfuse.so.2(fuse_session_loop+0x9f) [0x7effd6a9b1af]
/lib/x86_64-linux-gnu/libfuse.so.2(fuse_loop+0x1b8) [0x7effd6a931d8]
rar2fs() [0x4088c3]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7effd6113e9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7effd5e40cbd]

Original issue reported on code.google.com by andreas@weightpoint.se on 2013-04-15 18:03:28

@hasse69
Copy link
Owner Author

hasse69 commented May 2, 2015

I just noticed that the file header is corrupt in those files when trying to unpack
manually. Is there anything I can do to make rar2fs skip this files?

Original issue reported on code.google.com by andreas@weightpoint.se on 2013-04-15 18:03:28

@hasse69
Copy link
Owner Author

hasse69 commented May 2, 2015

--seek-length=1 solved it, sorry for not reading the manual better. =)

Regards Andreas

Original issue reported on code.google.com by andreas@weightpoint.se on 2013-04-15 19:12:02

@hasse69
Copy link
Owner Author

hasse69 commented May 2, 2015

Thanks for the issue report.
Even though --seek-length=1 solves the problem for you does not mean rar2fs should
crash simply because some header is corrupt. So your report is very much valid.
I will start by sending you a private e-mail with some additional questions before
digging deeper into this issue.


Original issue reported on code.google.com by hasse69 on 2013-04-15 19:43:42

@hasse69
Copy link
Owner Author

hasse69 commented May 2, 2015

A possible fix has been sent to submitter and verified to resolve the issue (also attached).
An official version will be committed to trunk after a few more tests.

Case closed.

Original issue reported on code.google.com by hasse69 on 2013-04-16 21:41:11


- _Attachment: [check_bad_header.patch](https://storage.googleapis.com/google-code-attachments/rar2fs/issue-13/comment-4/check_bad_header.patch)_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant