linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] segfault running vgscan
@ 2001-08-23 16:25 Brad Langhorst
  2001-08-23 17:30 ` Mark J. Bobak
  0 siblings, 1 reply; 11+ messages in thread
From: Brad Langhorst @ 2001-08-23 16:25 UTC (permalink / raw)
  To: linux-lvm

>Are you linking the tools statically or dynamically?
> I have seen a
>seg-fault with the tools that call at_exit() and
>static linking with glibc -
>apparently the bug is in glibc, not LVM, and is
>fixed in newer versions.  I
>have yet to verify this.
>=20
>--=20
>AJ Lewis
sorry to be an idiot - i'm not sure how to tell if its
linked statically or dynamically.  Looking through the
build messags I see a gcc -shared command in the lib
building section so I'm guessing dynamic linking but I
don't really know.

here is my glibc info

# rpm -qa |grep glibc
compat-glibc-6.2-2.1.3.2
glibc-common-2.2.4-5
glibc-devel-2.2.4-5
glibc-2.2.4-5
glibc-profile-2.2.4-5

I ran the program using strace...
but I don't really know what everything means yet.
It looks to me like it is opening shared libraries and
allocating memory - but for some reason is not allowed
to allocate 0x40187000.
*shrug*

# strace vgscan
execve("/sbin/vgscan", ["vgscan"], [/* 27 vars */]) =
0
uname({sys="Linux", node="[hostname.removed]", ...}) =
0
brk(0)                                  = 0x804b3e0
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT
(No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38258, ...})
= 0
old_mmap(NULL, 38258, PROT_READ, MAP_PRIVATE, 3, 0) =
0x40017000
close(3)                                = 0
open("/lib/liblvm-10.so.1", O_RDONLY)   = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360P\0"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0555, st_size=704519,
...}) = 0
old_mmap(NULL, 189300, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0x40021000
mprotect(0x4004b000, 17268, PROT_NONE)  = 0
old_mmap(0x4004b000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x29000) = 0x4004b000
old_mmap(0x4004d000, 9076, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0x4004d000
close(3)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\310"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5761921,
...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40050000
old_mmap(NULL, 1285704, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0x40051000
mprotect(0x40182000, 36424, PROT_NONE)  = 0
old_mmap(0x40182000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x130000) = 0x40182000
old_mmap(0x40187000, 15944, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0x40187000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [linux-lvm] segfault running vgscan
@ 2001-08-23 15:51 Brad Langhorst
  0 siblings, 0 replies; 11+ messages in thread
From: Brad Langhorst @ 2001-08-23 15:51 UTC (permalink / raw)
  To: linux-lvm

>Brad,
>
>does it still segfault if you create a volume group
>before?
>
>On Wed, Aug 22, 2001 at 06:10:53PM -0700, Brad
>Langhorst wrote:
>> I've carefully followed the instructions in INSTALL
>> and the build seems to go fine.
>>...
vgcreate also segfaults 
it seems clear to me that this is a build problem not
a code bug since almost everything segfaults

pvdisplay and pvscan do not segfault
all other pv commands and all vg commands segfault

brad


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [linux-lvm] segfault running vgscan
@ 2001-08-23  1:10 Brad Langhorst
  2001-08-23  8:08 ` Heinz J . Mauelshagen
  2001-08-23 12:06 ` AJ Lewis
  0 siblings, 2 replies; 11+ messages in thread
From: Brad Langhorst @ 2001-08-23  1:10 UTC (permalink / raw)
  To: linux-lvm

I've carefully followed the instructions in INSTALL
and the build seems to go fine.
This is the first install of lvm so there are no vgs
or pvs or anything yet.

I patched the kernel  (2.4.9)
installed the kernel
make in LVM
make install
reboot
run vgscan -d  

this just generates a segfault and dumps core


any idea what i'm doing wrong?
nothing recent with vgscan and segfault in the
archive...
LVM version 1.0.1-rc1(17/08/2001) 
is reported in  dmesg.

thanks!


brad

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-08-28 11:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-23 16:25 [linux-lvm] segfault running vgscan Brad Langhorst
2001-08-23 17:30 ` Mark J. Bobak
2001-08-23 19:22   ` Brad Langhorst
2001-08-23 19:54     ` AJ Lewis
2001-08-23 22:51       ` Brad Langhorst
2001-08-24  0:54         ` AJ Lewis
2001-08-28 11:00           ` Patrick Caulfield
  -- strict thread matches above, loose matches on Subject: below --
2001-08-23 15:51 Brad Langhorst
2001-08-23  1:10 Brad Langhorst
2001-08-23  8:08 ` Heinz J . Mauelshagen
2001-08-23 12:06 ` AJ Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).