Bug#235392: marked as done (lvm2: Segmentation Fault when finding non-existant label)

Debian Bug Tracking System owner@bugs.debian.org
Thu, 07 Jul 2005 19:18:07 -0700


Your message dated Thu, 7 Jul 2005 22:06:29 -0400
with message-id <20050708020629.GA14677@dman13.dyndns.org>
and subject line Bug#235392: lvm2: Segmentation Fault when finding non-existant label
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 29 Feb 2004 03:02:18 +0000
>From dman@dman13.dyndns.org Sat Feb 28 19:02:17 2004
Return-path: <dman@dman13.dyndns.org>
Received: from ms-smtp-03.nyroc.rr.com [24.24.2.57] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AxHDd-0005GQ-00; Sat, 28 Feb 2004 19:02:17 -0800
Received: from dman13.dyndns.org (roc-66-66-61-253.rochester.rr.com [66.66.61.253])
	by ms-smtp-03.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id i1T32ElK000847
	for <submit@bugs.debian.org>; Sat, 28 Feb 2004 22:02:15 -0500 (EST)
Received: by dman13.dyndns.org (Postfix, from userid 1000)
	id 71FF29F66A; Sat, 28 Feb 2004 22:06:28 -0500 (EST)
Date: Sat, 28 Feb 2004 22:06:28 -0500
From: "Derrick 'dman' Hudson" <dman@dman13.dyndns.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: lvm2: Segmentation Fault when finding non-existant label
Message-ID: <20040229030628.GA25188@dman13.dyndns.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S"
Content-Disposition: inline
X-Reportbug-Version: 2.48
X-Operating-System: Debian GNU/Linux
X-Kernel-Version: 2.6.3-1-k7
X-Editor: VIM - Vi IMproved 6.2 (2003 Jun 1, compiled Nov  9 2003 21:10:41)
X-Uptime: 17:41:29 up 18:54, 10 users,  load average: 0.52, 0.72, 0.61
User-Agent: Mutt/1.5.5.1+cvs20040105i
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_27 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_02_27
X-Spam-Level: 


--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: lvm2
Version: 2.00.08-4
Severity: important

A long time ago, when I first started using lvm, I experimented with
creating volume groups until I understood what was going on.  One of
the groups I created was called 'volume1', but it was removed shortly
afterward.  This hasn't been a problem (kernel 2.4 with lvm1) apart
=66rom some extra noise every now and then.

However, I just upgraded to lvm2 so I can use kernel 2.6 and vgscan
and vgchange segfault.  This means that during bootup, my LVM mounts
aren't mounted and I am instead prompted to log in as root and perform
emergency maintencance.  Interactively I discovered that although
vgscan segfaults, it still set all the necessary state and that if
given a specific volume name then vgchange would not crash.  Armed
with this workaround, I modified the initscript to ignore errors from
vgscan and specify the volume group name to vgchange.  This allows the
boot sequence to complete with no errors.

If I run vgscan now, on the running system, I don't get the crash but
I get the following output :
    # vgscan=20
    vgscan  Reading all physical volumes.  This may take a while...
    vgscan  Found volume group "VolumeGroup0" using metadata type lvm2
    vgscan  Out of memory.  Requested 1011089428 bytes.
    vgscan  Failed to read extents from /dev/ide/host0/bus1/target0/lun0/di=
sc
    vgscan  Out of memory.  Requested 1011089428 bytes.
    vgscan  Failed to read extents from /dev/ide/host0/bus1/target0/lun0/di=
sc
    vgscan  Volume group "volume1" not found

Volume group "volume1" is the group that doesn't exist.  Group
"VolumeGroup0" is the actual vg.

You can find the core file created last night while I discovered the
above-mentioned workaround in the "emergency" shell at
http://dman13.dyndns.org/core.vgscan.2004-02-27.  (be aware, though -
this file appears to really be 100M even though 'du -h' and 'ls -s'
report it as 400K)

On a side note, where does lvm keep finding the 'volume1' label and
how can I get rid of this label for a non-existant volume?

-D

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (80, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.3-1-k7
Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8

Versions of packages lvm2 depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared librarie=
s an
ii  libdevmapper1.00            2:1.00.07-4  The Linux Kernel Device Mapper=
 use
ii  lvm-common                  1.5.11       The Logical Volume Manager for=
 Lin

-- no debconf information


--=20
NOTICE: You have just been infected with Cooperative UNIX Email Virus.
To cooperate please run rm -rf / as root.
Thank you for your cooperation
=20
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.=
org

--AhhlLboLdkugWU4S
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAQVc0iB6vp1xAVUARAgAwAJ4/hzfldqm78iOD4ykoSueue9fR5gCglLNu
DeYAAwMujeHDEEL9P2b5Qd8=
=xv+m
-----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--

---------------------------------------
Received: (at 235392-done) by bugs.debian.org; 8 Jul 2005 02:07:03 +0000
>From dman@dman13.dyndns.org Thu Jul 07 19:07:03 2005
Return-path: <dman@dman13.dyndns.org>
Received: from rrcs-24-97-91-241.nys.biz.rr.com (smtp.redoaksw.com) [24.97.91.241] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DqiGd-0005dK-00; Thu, 07 Jul 2005 19:07:03 -0700
Received: from localhost (red2.roch.redoaksw.com [127.0.0.1])
	by red2.roch.redoaksw.com (Postfix) with ESMTP id 32553B0414D;
	Thu,  7 Jul 2005 22:06:32 -0400 (EDT)
Received: from red2.roch.redoaksw.com ([127.0.0.1])
	by localhost (red2 [127.0.0.1]) (amavisd-new, port 10024) with LMTP
	id 15011-03; Thu, 7 Jul 2005 22:06:30 -0400 (EDT)
Received: from dman13.dyndns.org (70-96-214-139.dsl1-pixley.roc.ny.frontiernet.net [70.96.214.139])
	by red2.roch.redoaksw.com (Postfix) with ESMTP id 4CD78B0414A;
	Thu,  7 Jul 2005 22:06:30 -0400 (EDT)
Received: by dman13.dyndns.org (Postfix, from userid 1000)
	id 375083B623; Thu,  7 Jul 2005 22:06:29 -0400 (EDT)
Date: Thu, 7 Jul 2005 22:06:29 -0400
From: Derrick Hudson <dman@dman13.dyndns.org>
To: Andres Salomon <dilinger@debian.org>,
	235392-quiet@bugs.debian.org
Cc: 235392-done@bugs.debian.org
Subject: Re: Bug#235392: lvm2: Segmentation Fault when finding non-existant label
Message-ID: <20050708020629.GA14677@dman13.dyndns.org>
References: <1114511199.6898.9.camel@localhost>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY"
Content-Disposition: inline
In-Reply-To: <1114511199.6898.9.camel@localhost>
X-Operating-System: Debian GNU/Linux
X-Kernel-Version: 2.6.6-2-k7
X-Editor: VIM - Vi IMproved 6.3 (2004 June 7, compiled May 20 2005 19:44:19)
X-Uptime: 22:02:41 up 20:53,  7 users,  load average: 1.25, 2.12, 2.13
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at redoaksw.com
Delivered-To: 235392-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--4Ckj6UjgE2iN1+kY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 26, 2005 at 06:26:39AM -0400, Andres Salomon wrote:
| Hi,
|=20
| Could you please try the latest lvm2 utils, and let me know whether this
| bug still occurs?

Sorry it has taken me so long to reply to this.

I'm closing this bug report for you because I can not reproduce this
now.  The disk I experienced the problem with began to fail and was
replaced with a new disk, surely invalidating any test I can do now.
In any event no one else has reported experiencing this problem and
its not a problem for me now so I see no need to keep the report open.

HAND,
-D

--=20
Pleasant words are a honeycomb,
sweet to the soul and healing to the bones.
        Proverbs 16:24
=20
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.=
org

--4Ckj6UjgE2iN1+kY
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCzd+kiB6vp1xAVUARAnelAJ9EzDvZJWfg3Z4eLdbY02iqHTELeQCdFuN2
H1tfPancRQZ0YJyK8jin3NU=
=D0oJ
-----END PGP SIGNATURE-----

--4Ckj6UjgE2iN1+kY--