Skip to contentSkip to conversation

LVM 0.9.1beta1 vgscan segfault when run with -d

linux-lvm Charles Duffy 2 participants 4 messages Jan 13, 2001

lore
Share & tools
lore
#0 lore raw

Howdy. I'm experiencing some difficulties while transitioning from LVM 0.8i to 0.9.

vgscan reports:

vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV": can't get data of volume group "vg01" from physical volume(s)

When I try to recieve more info (by running vgscan with "-D"), I recieve a segfault.

This appears to be happening inside pv_read_uuidlist, at the memset on line 91 (I added some extra debug() calls to determine this). The attached log (from the original, unpatched version) should help by giving some context.

Frankly, I don't know why this is happening -- more than sufficient space appears to be allocated beforehand -- but, as long as one rules out a bug in debug(), I don't see any other way 'round it.

Thanks for your help.

#1 lore raw

Charles, is this under devfs?
Side remark: you probably run "vgscan -d", right?

Didn't get the attachement, sorry. Send it again please.

Quoted 21 lines · Charles Duffy

Howdy. I'm experiencing some difficulties while transitioning from LVM 0.8i to 0.9.

vgscan reports:

vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV": can't get data of volume group "vg01" from physical volume(s)

When I try to recieve more info (by running vgscan with "-D"), I recieve a segfault.

This appears to be happening inside pv_read_uuidlist, at the memset on line 91 (I added some extra debug() calls to determine this). The attached log (from the original, unpatched version) should help by giving some context.

Frankly, I don't know why this is happening -- more than sufficient space appears to be allocated beforehand -- but, as long as one rules out a bug in debug(), I don't see any other way 'round it.

Thanks for your help.

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

No, I am not using devfs.

Yes, I ran 'vgscan -d'. Indeed, I meant to attach the associated log (unless it was stripped by the list software). I'll try again.

Also, I misreported the version number. It was 0.9.1beta1 under which this occured.

Quoted 28 lines · Heinz J. Mauelshagen

Charles, is this under devfs?
Side remark: you probably run "vgscan -d", right?

Didn't get the attachement, sorry. Send it again please.

Quoted 21 lines · Charles Duffy

Howdy. I'm experiencing some difficulties while transitioning from LVM 0.8i to 0.9.

vgscan reports:

vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV": can't get data of volume group "vg01" from physical volume(s)

When I try to recieve more info (by running vgscan with "-D"), I recieve a segfault.

This appears to be happening inside pv_read_uuidlist, at the memset on line 91 (I added some extra debug() calls to determine this). The attached log (from the original, unpatched version) should help by giving some context.

Frankly, I don't know why this is happening -- more than sufficient space appears to be allocated beforehand -- but, as long as one rules out a bug in debug(), I don't see any other way 'round it.

Thanks for your help.

#3 lore raw
In reply to Charles Duffy

Did you try 0.9.1 beta1 and face the same behaviour?

Quoted 21 lines · Charles Duffy

Howdy. I'm experiencing some difficulties while transitioning from LVM 0.8i to 0.9.

vgscan reports:

vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV": can't get data of volume group "vg01" from physical volume(s)

When I try to recieve more info (by running vgscan with "-D"), I recieve a segfault.

This appears to be happening inside pv_read_uuidlist, at the memset on line 91 (I added some extra debug() calls to determine this). The attached log (from the original, unpatched version) should help by giving some context.

Frankly, I don't know why this is happening -- more than sufficient space appears to be allocated beforehand -- but, as long as one rules out a bug in debug(), I don't see any other way 'round it.

Thanks for your help.

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-