Page 1 of 1

Segmentation fault

Posted: 30 Apr 2020, 18:18
by spacer
Hello evrybody, I am trying to run photorec by the terminal but I get the following error :cry:

Code: Select all

user@debian:~/Downloads/testdisk-7.1.linux26-x86_64/testdisk-7.1$ ./photorec_static 
Segmentation fault
Version downloaded TestDisk & PhotoRec 7.1 (July 7, 2019) kernel 2.6.18 or later x86_64
I am using Debian 10 4.19.0-8-amd64 running on VirtualBox

I tryed with the PhotoRec 7.0 and PhotoRec 7.2-WIP but the same problem in the end. I searched on the internet and in this forum but I have not found any solution yet.
Thank you for any help :D

Re: Segmentation fault

Posted: 01 May 2020, 11:17
by recuperation
Run it out of the virtual environment. You could run it from a Knoppix USB stick, for example.

Re: Segmentation fault

Posted: 01 May 2020, 11:50
by cgrenier
No problem with testdisk 7.2-WIP on a Debian 8.11, kernel 3.16.0-10-amd64.
The problem is confirmed on Debian 10.3, kernel 4.19.0-8-amd64, it's related to a kernel hardening "vsyscall attempted with vsyscall=none".
I will try to provide a binary that works on both kernel.
For the moment you should recompile testdisk from source if you want the latest version or use the debian package.

Re: Segmentation fault

Posted: 01 May 2020, 14:22
by cgrenier
I have uploaded a new 7.2-WIP for Linux x86_64, it works on both Debian 8 and 10. Can you try it ?

Re: Segmentation fault

Posted: 02 May 2020, 11:43
by spacer
cgrenier wrote: 01 May 2020, 14:22 I have uploaded a new 7.2-WIP for Linux x86_64, it works on both Debian 8 and 10. Can you try it ?
Now it works thank you for your help and answers!