Segmentation fault Topic is solved

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
spacer
Posts: 2
Joined: 30 Apr 2020, 17:53

Segmentation fault

#1 Post 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

recuperation
Posts: 2729
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Segmentation fault

#2 Post by recuperation »

Run it out of the virtual environment. You could run it from a Knoppix USB stick, for example.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Segmentation fault

#3 Post 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.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Segmentation fault

#4 Post 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 ?

spacer
Posts: 2
Joined: 30 Apr 2020, 17:53

Re: Segmentation fault

#5 Post 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!

Locked