From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-90791-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1LWbDz-0006B8-ME
	for garchives@archives.gentoo.org; Mon, 09 Feb 2009 18:51:19 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B4802E015E;
	Mon,  9 Feb 2009 18:51:18 +0000 (UTC)
Received: from mail-bw0-f157.google.com (mail-bw0-f157.google.com [209.85.218.157])
	by pigeon.gentoo.org (Postfix) with ESMTP id 4BE6EE015E
	for <gentoo-user@lists.gentoo.org>; Mon,  9 Feb 2009 18:51:18 +0000 (UTC)
Received: by bwz1 with SMTP id 1so1727106bwz.10
        for <gentoo-user@lists.gentoo.org>; Mon, 09 Feb 2009 10:51:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
         :user-agent:mime-version:to:subject:references:in-reply-to
         :x-enigmail-version:content-type:content-transfer-encoding;
        bh=cVwKxGuhRHGtLTedvy/YeqHt0Hv42mEVwifkYwMxuMs=;
        b=vHk7sT87VOKKF3hu4KFdKV8C9eUPs9svyqhIU/T2u3l0NKLuNgOZXiMaDeG5AOGnFO
         mBsCL9C/Jg+4UznLuJRw5c1TplaVbA5yDYNA+9et/+w+pEiP7HnfFdZk7w5Jc1VPB6G0
         4hKeeQ72IEa98Cpc5P6dqUMTh0zeTimxzzL5Y=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:subject:references
         :in-reply-to:x-enigmail-version:content-type
         :content-transfer-encoding;
        b=S8RgHKWTqpG1/z45uacbORvoZOfE87pZ3KD8AwsDU35FkGbHZnrSiz57LLAGfKPcKP
         AH2j+t8zW84YohzeHvdqt8AZYV5lF7zWySQznPSVfYIT9hDmnChRm29E/SxOa2VXIylg
         zZDVFtU0+BskrQBGJquidv3WV62FOoQXmPPyA=
Received: by 10.223.108.74 with SMTP id e10mr2646925fap.35.1234205473913;
        Mon, 09 Feb 2009 10:51:13 -0800 (PST)
Received: from ?192.168.1.100? (nl104-214-126.student.uu.se [130.243.214.126])
        by mx.google.com with ESMTPS id y15sm6344076fkd.32.2009.02.09.10.51.12
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Mon, 09 Feb 2009 10:51:13 -0800 (PST)
Message-ID: <49907ADC.5020208@gmail.com>
Date: Mon, 09 Feb 2009 19:50:04 +0100
From: =?ISO-8859-1?Q?Johan_Bl=E5b=E4ck?= <johan.bluecreek@gmail.com>
User-Agent: Thunderbird 2.0.0.19 (X11/20090103)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Segfaulting cryptsetup in init
References: <498FEBBC.8030008@gmail.com> <499072C5.1030005@gmail.com>
In-Reply-To: <499072C5.1030005@gmail.com>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 2602149c-1202-4063-b500-78352d8b4aaf
X-Archives-Hash: ecf427625fb9dc4995984e5b8de397a5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johan Bl=E5b=E4ck wrote:
> Johan Bl=E5b=E4ck wrote:
>> hi,
>=20
>> I'm setting up this old computer of mine and why not encrypt it. I hav=
e
>> done this on several computers before, but never have I gotten these
>> kind of errors.
>=20
>> When booting, cryptsetup segfaults. I can find no obvious reason why, =
I
>> have tried to recompile cryptsetup using different arch, but still the
>> same. It is build statically, USE=3D-dynamic is set and ldd just says =
"no
>> dynamic executable". But when trying to debug I copied the cryptsetup,
>> that is not working in the init, to a usb-device and tried to decrypt =
my
>> disk using a livecd, and this went fine.
>=20
>> So to summarize:
>> init - cryptsetup segfaults
>> in livecd env - cryptsetup ok
>> in gentoo system - cryptsetup ok
>=20
>> the other programs in the init seems to run as they should; busybox an=
d lvm.
>=20
>> Any ideas on how to continue debugging or is there someone with the an=
swer?
>=20
>=20
>=20
> hi again,
>=20
> Still got a segfault :-/
> The things I have tried more is to recompile cryptsetup and used that
> for init, but no change. Compiled in all crypto algorithms, no change.
> I'm not that good with all the options in the kernel. If anyone know of
> which kernel options that could affect cryptsetup in this way?
>=20
> Any ideas anyone?
> (thx for the help sofar)
>=20

I had noticed this problem w/ my laptop where some usbdevices dont show
up until a few seconds later than when the init is running. So I added a
'sleep 10' to the init, and what I got was

- - 10 s sleep
- - during these I get a messege: sda: sda1 sda2 (this is the bootable
usb-key)
- - cryptsetup segfaults
- - ls -l /dev/sd* gives 'ls: /dev/sd*: No such file or directory'
- - ls -l DEv/hd* gives '/dev/hda1'

How is this possible? Shouldn't it show sda, sda1 and sda2 together with
hda and hda1? Why are these missing?


- --
For security reasons, all text in this mail is double-rot13 encrypted.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmQetwACgkQ82oqndqg+41aSwCgl7CAh0MXlWEogo2dnA9BSkr1
sTAAnR9Ppheav4nbGxBonWB6nzs80KEg
=3DSzmp
-----END PGP SIGNATURE-----