| View previous topic :: View next topic |
| Author |
Message |
ghosterius n00b


Joined: 23 Jun 2005 Posts: 27 Location: Portugal/Porto
|
Posted: Thu Oct 18, 2007 7:21 am Post subject: Truecrypt unexpected segmentation fault |
|
|
I had installed truecrypt a few days ago, everything ran fine and it was properly installed... followed the wiki at gentoo-wiki.com, but suddently it has stoped working, the only things it shouts out is a Segmentation fault... is there anyway to get a diagnostic for this? I can't really tell what's going wrong since I can't get any error but that! I've tried creating a new encrypted drive and stuff, but nothing works! I've tested the drive I want to use in a windows machine with truecrypt and worked just fine...
Help!!!  _________________ Nothing lasts forever... |
|
| Back to top |
|
 |
Poe Bodhisattva


Joined: 03 Apr 2004 Posts: 2157 Location: Mysłowice/Lublin, Poland
|
Posted: Sat Oct 20, 2007 8:48 pm Post subject: |
|
|
hmm... maybe have you strange flags? could you take it for us? or you should test your RAM by memtest. segfaults are depend on hardware (RAM memory often) _________________ Hardware:HP Pavilion DV6875SE[C2DT5550@1.83GHz_3GB-DDR2_320GB-SATA_GF8400GS]
http://poe.art.pl/ - fotografia artystyczna
http://poe.art.pl/blog - III Rzeczywistość Polska
RLU#342333 |
|
| Back to top |
|
 |
ghosterius n00b


Joined: 23 Jun 2005 Posts: 27 Location: Portugal/Porto
|
Posted: Tue Oct 23, 2007 7:23 pm Post subject: |
|
|
flags... cflags is it? hmmmm now that you mention it... I'll post out my emerge --info for you
| Code: |
Portage 2.1.3.15 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.22-ghost.laptop i686)
=================================================================
System uname: 2.6.22-ghost.laptop i686 Intel(R) Pentium(R) M processor 1.60GHz
Timestamp of tree: Tue, 23 Oct 2007 00:20:01 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -mmmx -msse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pt_PT.UTF-8"
LC_ALL="pt_PT.UTF-8"
LINGUAS="pt pt_PT"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/portage/local/layman/vmware"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa apm bluetooth c++ cairo cdaudio cdb cdda cddb cdinstall cdio cdparanoia cdr cdrom chroot cli cracklib crypt css dbus dga dhcp divx dri dts dvd dvdnav dvdr dvdread dxr3 dxr3-audio-denoise eap-tls emerald encode evo expat fbsplash firefox fortran gdbm gdm gif gkrellm glitz gnome gpm gstreamer gtk hal iconv jpeg kerberos midi mp3 mp4 mp4live mpeg mpeg2 ncurses nls nptl nptlonly ogg opengl openmp openssh openssl opensslcrypt oss pam pam_chroot pam_console pcre pdf perl png python qt3 qt3support qt4 quicktime readline sdl session spell spl sse sse2 ssl svg svga tcl tcp tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vorbis win32codecs x264 x86 xcb xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="plug ioplug dmix" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_PT" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
Hope it rins a bell  _________________ Nothing lasts forever... |
|
| Back to top |
|
 |
martinm1000 Apprentice


Joined: 17 Apr 2003 Posts: 174 Location: Montréal, Canada
|
Posted: Wed Oct 24, 2007 10:59 pm Post subject: Me too |
|
|
I also started getting segfaults on truecrypt volumes; I haven't had problems in the past.
Right now, it looks like I get them mostly on volumes (4G) created under Windows.
I tough it was when the volumes were on a FAT32 usb drive, but it just happened again, after moving them
elsewhere.
I could not find the problem looking at strace...
| Code: |
getuid32() = 0
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7dfb708) = 11904
close(4) = 0
fcntl64(3, F_GETFL) = 0 (flags O_RDONLY)
fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f44000
_llseek(3, 0, 0xbfb206bc, SEEK_CUR) = -1 ESPIPE (Illegal seek)
read(3, "crypt-swap: 0 6297417 crypt aes-"..., 1024) = 229
read(3, "", 1024) = 0
close(3) = 0
munmap(0xb7f44000, 4096) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 11904
--- SIGCHLD (Child exited) @ 0 (0) ---
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f44000
read(3, "rootfs / rootfs rw 0 0\n/dev/root"..., 1024) = 552
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
|
|
|
| Back to top |
|
 |
ghosterius n00b


Joined: 23 Jun 2005 Posts: 27 Location: Portugal/Porto
|
Posted: Thu Oct 25, 2007 10:06 am Post subject: |
|
|
Still working at this to find a solution... _________________ Nothing lasts forever... |
|
| Back to top |
|
 |
martinm1000 Apprentice


Joined: 17 Apr 2003 Posts: 174 Location: Montréal, Canada
|
Posted: Thu Oct 25, 2007 9:21 pm Post subject: |
|
|
Well each time I get this, it works after a reboot !
(at first I tried to rmmod truecrypt and then try it again, but it would still segfault).
Is it possible that we are having this problem since kernel 2.6.23 ? |
|
| Back to top |
|
 |
ghosterius n00b


Joined: 23 Jun 2005 Posts: 27 Location: Portugal/Porto
|
Posted: Sat Oct 27, 2007 1:41 am Post subject: |
|
|
I "reverted" the situation... seems like a problem with the linux-headers-2.6.23 ... I've got back to 2.6.22-r2 and everything's working back!
Good luck for you! _________________ Nothing lasts forever... |
|
| Back to top |
|
 |
ghosterius n00b


Joined: 23 Jun 2005 Posts: 27 Location: Portugal/Porto
|
Posted: Sun Oct 28, 2007 10:01 am Post subject: |
|
|
Well.... Seems like the problem ain't the headers.... the problem continues and doesn't seem to have a solution in sight....  _________________ Nothing lasts forever... |
|
| Back to top |
|
 |
funkychicken818 n00b

Joined: 20 Sep 2007 Posts: 8
|
Posted: Sun Oct 28, 2007 8:33 pm Post subject: |
|
|
hey you probably have bad Memory.
Run Memtest and then figure out which stick of memory is bad and remove it right away. |
|
| Back to top |
|
 |
ghosterius n00b


Joined: 23 Jun 2005 Posts: 27 Location: Portugal/Porto
|
Posted: Mon Oct 29, 2007 1:14 pm Post subject: |
|
|
Did it already 100% flawless... memory's fine... the problem must be something that I've updated and it's interfering with truecrypt ... :S _________________ Nothing lasts forever... |
|
| Back to top |
|
 |
thewtex Tux's lil' helper

Joined: 22 Jun 2007 Posts: 93
|
Posted: Sun Nov 04, 2007 8:38 pm Post subject: |
|
|
Here are some thoughts/comments/questions on the CFLAGS
-o2 --> -O2, not sure if case makes a difference.
-fomit-frame-pointer, could try removing this to see if it fixes the problem. It could be causing the problem. If it isn't causing the problem, it is specified implicitly when an optimization flag is set, according to the gcc man page.
-mmmx -msse -mss2, as I understand it, if you specify a -march, these will automatically be added if needed. |
|
| Back to top |
|
 |
dweezil-n0xad n00b

Joined: 30 Oct 2006 Posts: 57 Location: Ostend, Belgium
|
Posted: Sun Nov 04, 2007 9:13 pm Post subject: |
|
|
I had truecrypt segmentation faults when mounting encrypted volumes using this command:
| Code: | $ truecrypt /path/to/volume /mnt/volume
segmentation fault |
However this worked:
| Code: | $ truecrypt /path/to/volume
Enter password for /path/to/volume:
$ truecrypt -l
/dev/mapper/truecrypt0 /path/to/volume
$ mount /dev/mapper/truecrypt0 /mnt/volume |
_________________ HP HDX 18 | C2Q Q9000 @2GHz | 6GB DDR3 | NVIDIA GeForce 9600M GT |
|
| Back to top |
|
 |
jstn n00b

Joined: 30 Sep 2003 Posts: 29 Location: boston, ma.
|
Posted: Fri Nov 30, 2007 1:00 pm Post subject: |
|
|
| dweezil-n0xad wrote: | I had truecrypt segmentation faults when mounting encrypted volumes using this command:
| Code: | $ truecrypt /path/to/volume /mnt/volume
segmentation fault |
However this worked:
| Code: | $ truecrypt /path/to/volume
Enter password for /path/to/volume:
$ truecrypt -l
/dev/mapper/truecrypt0 /path/to/volume
$ mount /dev/mapper/truecrypt0 /mnt/volume |
|
Same thing workd here... but how did you unmount the volume?
- j _________________ "talk is cheap because
supply exceeds demand." |
|
| Back to top |
|
 |
dweezil-n0xad n00b

Joined: 30 Oct 2006 Posts: 57 Location: Ostend, Belgium
|
Posted: Fri Nov 30, 2007 1:43 pm Post subject: |
|
|
Dismount and unmap all mapped volumes:
_________________ HP HDX 18 | C2Q Q9000 @2GHz | 6GB DDR3 | NVIDIA GeForce 9600M GT |
|
| Back to top |
|
 |
jstn n00b

Joined: 30 Sep 2003 Posts: 29 Location: boston, ma.
|
Posted: Fri Nov 30, 2007 2:49 pm Post subject: |
|
|
I didn't want to dismount all my volumes... I was doing:
| Code: | | truecrypt -d crypt.file |
and it segfaults.
- j _________________ "talk is cheap because
supply exceeds demand." |
|
| Back to top |
|
 |
dweezil-n0xad n00b

Joined: 30 Oct 2006 Posts: 57 Location: Ostend, Belgium
|
Posted: Fri Nov 30, 2007 3:01 pm Post subject: |
|
|
hmmz. I don't know how to do that. _________________ HP HDX 18 | C2Q Q9000 @2GHz | 6GB DDR3 | NVIDIA GeForce 9600M GT |
|
| Back to top |
|
 |
Lord_Asriel n00b

Joined: 05 Oct 2006 Posts: 7
|
Posted: Wed Jan 02, 2008 2:07 pm Post subject: |
|
|
| jstn wrote: | | dweezil-n0xad wrote: | I had truecrypt segmentation faults when mounting encrypted volumes using this command:
| Code: | $ truecrypt /path/to/volume /mnt/volume
segmentation fault |
However this worked:
| Code: | $ truecrypt /path/to/volume
Enter password for /path/to/volume:
$ truecrypt -l
/dev/mapper/truecrypt0 /path/to/volume
$ mount /dev/mapper/truecrypt0 /mnt/volume |
|
|
I noticed exactly the same behavior on my machine.
Moreover truecrypt -d segfaults as well.
Did anybody manage to solve this?
What's the problem if I don't detach volumes/just unmount /dev/mapper/truecrypt0 ? |
|
| Back to top |
|
 |
jstn n00b

Joined: 30 Sep 2003 Posts: 29 Location: boston, ma.
|
Posted: Wed Jan 02, 2008 2:30 pm Post subject: |
|
|
I rebuilt truecrypt and reloaded/unloaded the module which seemed to fix the problem.
I don't think you want to unmount /dev/mapper/truecrypt0 manually. Instead you should use:
| Code: |
truecrypt -d file.crypt
|
I wish there was a mime handler in Gnome for truecrypt volumes and a GUI so I could just add the volume password to my keyring... Can this be done?
- jp _________________ "talk is cheap because
supply exceeds demand." |
|
| Back to top |
|
 |
|