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
libtsk13 4.4.2: crash in the dfvfs test suite (from Debian Project) #953
Comments
Looks like vs->block_size is set to 0. It should have been set to something else. Do you know what image format the test image is? Is the test image available? |
2017-09-14 14:03 GMT-03:00 Brian Carrier <notifications@github.com>:
Looks like vs->block_size is set to 0. It should have been set to
something else. Do you know what image format the test image is? Is the
test image available?
Thanks for your reply,
The problem is occurring when building dfvfs using libtsk13 as dependency,
not when using the system.
|
But it looks like it is a test suite from dfvfs that is run during build that is exposing the problem. I'm trying to better understand what the test is that caused this error to occur so that I can more easily recreate it. |
2017-09-14 14:53 GMT-03:00 Brian Carrier <notifications@github.com>:
But it looks like it is a test suite from dfvfs that is run during build
that is exposing the problem.
Yeap!
I'm trying to better understand what the test is that caused this error to
occur so that I can more easily recreate it.
Can you compile dfvfs with libtsk?
|
@joachimmetz, do you know which test image is having problems in dfvfs and where I can find it? |
@eribertomota first of all this report should have better details:
dfvfs is Python and is not "compiled" (https://en.wikipedia.org/wiki/Compiled_language) what version of pytsk is used? @bcarrier Looks like this test is failing: which maps to https://github.com/log2timeline/dfvfs/blob/master/tests/volume/tsk_volume_system.py#L42 Which uses this test image https://github.com/log2timeline/dfvfs/blob/master/test_data/tsk_volume_system.raw |
Hi Joachim,
2017-09-14 17:36 GMT-03:00 Joachim Metz <notifications@github.com>:
@eribertomota <https://github.com/eribertomota> first of all this report
should have better details:
when compiling dfvfs test suite
dfvfs is Python and is not "compiled" (https://en.wikipedia.org/
wiki/Compiled_language)
Sorry for this mistake. I was say building, not compiling. It is packaged
in Debian and the command 'debuild' will start all building process.
what version of pytsk is used?
20170802
Thanks.
@bcarrier <https://github.com/bcarrier> Looks like this test is failing:
… testIterateVolumes (volume.tsk_volume_system.TSKVolumeSystemTest)
which maps to https://github.com/log2timeline/dfvfs/blob/
master/tests/volume/tsk_volume_system.py#L42
Which uses this test image https://github.com/log2timeline/dfvfs/blob/
master/test_data/tsk_volume_system.raw
|
@eribertomota was pytsk recompiled after updating libtsk? |
No worries. Kali seems to have a similar issue: log2timeline/plaso#1404 |
I can't recreate this with the image with the TSK tools and all code paths that I see in TSK's usage set sector_size to non-zero. Must be something in pyTSK that is allowing it to be non-zero. But, I added checks to not open file or volume systems if it is set to 0. |
Thanks @joachimmetz and @bcarrier I can see a light. On Debian, I rebuilt pytsk and, now, dfvfs builds too. The pytsk is maintained on Debian by @hillu (Hilko Bengen). I will do more tests in some hours. Thanks. |
@eribertomota there is (likely) an ABI dependency between pytsk and libtsk. |
Hi all, I can confirm that rebuilding pytsk in Debian (same version, a rebuild only) solves the problem. I think this bug can be closed. Thanks a lot for your help! Regards, Eriberto |
A quick comment from the maintainer of the pytsk package in Debian: I had to modify the build script for two reasons: (1) libtalloc is provided as a Debian package, so embedding it is a bad idea. (2) Fetching sleuthkit sources via git at build time is against policy. So I initially had |
@hillu thx |
Added sector_size 0 checks before using img_info. Fixes: #953
Hi,
This is a bug report from Debian[1]. The libtsk 4.4.2 is causing a Floating point exception when compiling dfvfs test suite[2]. It is a 'serious' bug in Debian and TSK will be remove from 'testing' release until the problem is solved. Several packages that depends of TSK will be removed too.
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=873374
[2] https://github.com/log2timeline/dfvfs
The original bug says:
Thanks a lot in advance.
Regards,
Eriberto
The text was updated successfully, but these errors were encountered: