LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-25-2008, 04:25 AM   #1
dlinux
Member
 
Registered: Jan 2007
Location: Portugal
Distribution: Slackware 13.0
Posts: 52

Rep: Reputation: 15
cryptsetup-segmentation fault on Slackware-12.0 - 2.6.23.14


Today,unexpectedly my cryptsetup started to segfault with the command:
Quote:
cryptsetup luksOpen /dev/sda1 hardsafe
it just spits segfault.The output from dmesg:
Quote:
cryptsetup[2869]: segfault at b7eb62ef eip b7ecdaa2 esp bff37210 error 7
cryptsetup[2870]: segfault at b7eb52ef eip b7eccaa2 esp bfb93670 error 7
cryptsetup[2871]: segfault at b7ef12ef eip b7f08aa2 esp bfc3f720 error 7
cryptsetup[2872]: segfault at b7ecf2ef eip b7ee6aa2 esp bfa114f0 error 7
cryptsetup[2874]: segfault at b7f662ef eip b7f7daa2 esp bf8c23a0 error 7
5 errors from the 5 times i tried.Anybody have a clue what's wrong?
Clearly a bug.

ps: i have sucessfuly used cryptsetup with the same 2.6.23.14 kernel before.

nevermind,i already figured out the problem with the help of strace:

Quote:
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 3106 detached

Last edited by dlinux; 01-25-2008 at 04:32 AM.
 
Old 01-29-2008, 04:56 PM   #2
reed68
LQ Newbie
 
Registered: Aug 2007
Posts: 28

Rep: Reputation: 0
Hi,

Out of curiosity could you explain how you fixed it. I don't understand how you figured it out by what you wrote.

Thank you.
 
Old 01-30-2008, 06:42 AM   #3
dlinux
Member
 
Registered: Jan 2007
Location: Portugal
Distribution: Slackware 13.0
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reed68 View Post
Hi,

Out of curiosity could you explain how you fixed it. I don't understand how you figured it out by what you wrote.

Thank you.

the problem was that the block device /dev/sda1 didn't exist at the moment
i tried that cryptsetup command(which you can see by the failed open(2) syscall):

Quote:
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
I just unplugged the usb cable and plugged it again(external hard drive) to get it working.
type
Quote:
man 2 open
in a shell for more information.

I still wonder why it did segfault,the open syscall failed cryptsetup should have quit immediately.

Last edited by dlinux; 01-30-2008 at 09:28 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
segmentation fault with chroot in Slackware 11 vilnisr Slackware 1 10-30-2006 07:16 PM
segmentation fault ->the slackware do not starts at all raliz Slackware 2 10-22-2006 06:30 AM
winex cvs + slackware 10.2 = segmentation fault erickFis Slackware 3 01-09-2006 06:11 AM
Erlang Segmentation Fault on Slackware 10... nebx Linux - Newbie 3 02-06-2005 06:25 PM
Segmentation fault after OpenLDAP / Berkley DB (Slackware 8.1) cereal Linux - General 0 07-17-2003 01:34 PM


All times are GMT -5. The time now is 02:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration