(no subject)
Hi.
I Have a problem to use LVM on Sun Sparc 20... when I try to perform a pvcreate a segmentation fault error occur.
Hope that help.
Escape character is '^]'.
Debian GNU/%s 2.2 %h
User not authenticated. Using plaintext username and password
login: root
password:
lnxsun00:~# id uid=0(root) gid=0(root) groups=0(root)
lnxsun00:~# uname -a Linux lnxsun00 2.4.17 #3 SMP Thu Jan 17 06:52:06 KST 2002 sparc unknown
lnxsun00:~# cat /proc/version Linux version 2.4.17 (root@lnxsun00) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #3 SMP Thu Jan 17 06:52:06 KST 2002
lnxsun00:~# cat /proc/lvm/global LVM module LVM version 1.0.1-rc4(ish)(03/10/2001)
Total: 0 VGs 0 PVs 0 LVs (0 LVs open) Global: 152 bytes malloced IOP version: 10 1:58:11 active
lnxsun00:/usr/local/src#tar zxvf lvm_1.0.1-rc4.tar.gz
lnxsun00:/usr/local/src#cd LVM/1.0.1-rc4/
lnxsun00:/usr/local/src/LVM/1.0.1-rc4#./configure;make;make install
lnxsun00:/usr/local/src/LVM/1.0.1-rc4# fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb (Sun disk label): 64 heads, 32 sectors, 8635 cylinders Units = cylinders of 2048 * 512 bytes
Device Flag Start End Blocks Id System /dev/sdb1 1 1500 1534976 8e Linux LVM /dev/sdb2 1501 3000 1534976 8e Linux LVM /dev/sdb3 0 8635 8842240 5 Whole disk /dev/sdb4 3001 4500 1534976 8e Linux LVM /dev/sdb5 4501 6000 1534976 8e Linux LVM /dev/sdb6 6001 7500 1534976 8e Linux LVM /dev/sdb7 7501 8635 1161216 8e Linux LVM
lnxsun00:/usr/local/src/LVM/1.0.1-rc4# pvcreate /dev/sdb1 Segmentation fault
lnxsun00:/usr/local/src/LVM/1.0.1-rc4# strace pvcreate /dev/sdb1
execve("/sbin/pvcreate", ["pvcreate", "/dev/sdb1"], [/* 17 vars */]) = 0
brk(0) = 0x22f20
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=12982, ...}) = 0
mmap(NULL, 12982, PROT_READ, MAP_PRIVATE, 3, 0) = 0x5001a000
close(3) = 0
open("/lib/liblvm-10.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0555, st_size=732249, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\0\214"..., 4096) = 40
96
mmap(NULL, 355880, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x5002b000
mprotect(0x5006d000, 85544, PROT_NONE) = 0
mmap(0x5007b000, 20480, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3
, 0x40000) = 0x5007b000
mmap(0x50080000, 7720, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP
_ANONYMOUS, -1, 0) = 0x50080000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=975672, ...}) = 0
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\1\345"..., 4096) = 40
96
mmap(NULL, 1050872, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x50082000
mprotect(0x5016a000, 100600, PROT_NONE) = 0
mmap(0x50172000, 53248, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3
, 0xe0000) = 0x50172000
mmap(0x5017f000, 14584, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MA
P_ANONYMOUS, -1, 0) = 0x5017f000
close(3) = 0
mprotect(0x5002b000, 270336, PROT_READ|PROT_WRITE) = 0
mprotect(0x5002b000, 270336, PROT_READ|PROT_EXEC) = 0
munmap(0x5001a000, 12982) = 0
getpid() = 7162
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
lnxsun00:/usr/local/src/LVM/1.0.1-rc4#====================================================
Name : Sil Lee
Address : System Management Dept.
LG Investment & Securities Building 184-1, Bangei-dong, Songpa-gu, Seoul, Korea
Phone : +82-2-2240-6808
C.P : +82-16-720-9591
E-m@il : [email protected] / [email protected]
<center>Free webmail hosting service MNARA.NET<br>-- This e-mail was sent by FREE KEBI Mail at http://kebi.com/ --</center>
The strace output doesn't help to analyze this, because it directly segfaults after getting the PID.
Please send me the output of "pvcreate -d /dev/sdb1" directly ([email protected])
Regards,
Heinz -- The LVM Guy --
Quoted 102 lines · Sil Lee
Hi.
I Have a problem to use LVM on Sun Sparc 20... when I try to perform a pvcreate a segmentation fault error occur.
Hope that help.
Escape character is '^]'.
Debian GNU/%s 2.2 %h
User not authenticated. Using plaintext username and password
login: root
password:lnxsun00:~# id uid=0(root) gid=0(root) groups=0(root)lnxsun00:~# uname -a Linux lnxsun00 2.4.17 #3 SMP Thu Jan 17 06:52:06 KST 2002 sparc unknownlnxsun00:~# cat /proc/version Linux version 2.4.17 (root@lnxsun00) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #3 SMP Thu Jan 17 06:52:06 KST 2002lnxsun00:~# cat /proc/lvm/global LVM module LVM version 1.0.1-rc4(ish)(03/10/2001)Total: 0 VGs 0 PVs 0 LVs (0 LVs open) Global: 152 bytes malloced IOP version: 10 1:58:11 activelnxsun00:/usr/local/src#tar zxvf lvm_1.0.1-rc4.tar.gz
lnxsun00:/usr/local/src#cd LVM/1.0.1-rc4/
lnxsun00:/usr/local/src/LVM/1.0.1-rc4#./configure;make;make install
lnxsun00:/usr/local/src/LVM/1.0.1-rc4# fdisk /dev/sdbCommand (m for help): p
Disk
/dev/sdb(Sun disk label): 64 heads, 32 sectors, 8635 cylinders Units = cylinders of 2048 * 512 bytesDevice Flag Start End Blocks Id System /dev/sdb1 1 1500 1534976 8e Linux LVM /dev/sdb2 1501 3000 1534976 8e Linux LVM /dev/sdb3 0 8635 8842240 5 Whole disk /dev/sdb4 3001 4500 1534976 8e Linux LVM /dev/sdb5 4501 6000 1534976 8e Linux LVM /dev/sdb6 6001 7500 1534976 8e Linux LVM /dev/sdb7 7501 8635 1161216 8e Linux LVMlnxsun00:/usr/local/src/LVM/1.0.1-rc4# pvcreate /dev/sdb1 Segmentation faultlnxsun00:/usr/local/src/LVM/1.0.1-rc4# strace pvcreate /dev/sdb1 execve("/sbin/pvcreate", ["pvcreate", "/dev/sdb1"], [/* 17 vars */]) = 0 brk(0) = 0x22f20 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=12982, ...}) = 0 mmap(NULL, 12982, PROT_READ, MAP_PRIVATE, 3, 0) = 0x5001a000 close(3) = 0 open("/lib/liblvm-10.so.1", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0555, st_size=732249, ...}) = 0 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\0\214"..., 4096) = 40 96 mmap(NULL, 355880, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x5002b000 mprotect(0x5006d000, 85544, PROT_NONE) = 0 mmap(0x5007b000, 20480, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3 , 0x40000) = 0x5007b000 mmap(0x50080000, 7720, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP _ANONYMOUS, -1, 0) = 0x50080000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=975672, ...}) = 0 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\1\345"..., 4096) = 40 96 mmap(NULL, 1050872, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x50082000 mprotect(0x5016a000, 100600, PROT_NONE) = 0 mmap(0x50172000, 53248, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3 , 0xe0000) = 0x50172000 mmap(0x5017f000, 14584, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MA P_ANONYMOUS, -1, 0) = 0x5017f000 close(3) = 0 mprotect(0x5002b000, 270336, PROT_READ|PROT_WRITE) = 0 mprotect(0x5002b000, 270336, PROT_READ|PROT_EXEC) = 0 munmap(0x5001a000, 12982) = 0 getpid() = 7162killed by SIGSEGV +++ renamed from SIGSEGV (Segmentation fault) --- +0
-0lnxsun00:/usr/local/src/LVM/1.0.1-rc4#
====================================================
Name : Sil Lee
Address : System Management Dept.
LG Investment & Securities Building 184-1, Bangei-dong, Songpa-gu, Seoul, Korea
Phone : +82-2-2240-6808
C.P : +82-16-720-9591
E-m@il : [email protected] / [email protected]
Quoted 1 line
<center>Free webmail hosting service MNARA.NET<br>-- This e-mail was sent by FREE KEBI Mail at http://kebi.com/ --</center>
*** 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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 6 lines · Sil Lee
Hi.
I Have a problem to use LVM on Sun Sparc 20... when I try to perform a pvcreate a segmentation fault error occur.
Hmmm, it's not getting very far. In fact it's not even getting into pvcreate at all - that strace output is just getting the shared libraries mapped in and starting libc.
I'm actually impressed you got that far - I've never managed to get Linux 2.4 to run successfully on a 32bit SPARC machine.
patrick
Patrick,
could you proove what Chris pointed out in this thread:
<begin chris input>
All of the lvm10 utilities segfault on sparc. The root cause of the problem is that the shared library is compiled with both -fPIC and -pg. On sparc, this results in gcc outputting:
cc1: warning: -fPIC and profiling conflict: disabling -fPIC
This can be seen in the buildd logs:
http://buildd.debian.org/fetch.php?&pkg=lvm10&ver=1.0.1release-1&arch=sparc&stamp=1007871077&file=log&as=raw
Removing the -pg from the CFLAGS definition on line 73 of make.tmpl fixed the problem -- all LVM utilities worked fine.
<end chris input>
Thanks,
Heinz
Quoted 15 lines · Patrick Caulfield
Quoted 6 lines · Sil Lee
Hi.
I Have a problem to use LVM on Sun Sparc 20... when I try to perform a pvcreate a segmentation fault error occur.
Hmmm, it's not getting very far. In fact it's not even getting into pvcreate at all - that strace output is just getting the shared libraries mapped in and starting libc.
I'm actually impressed you got that far - I've never managed to get Linux 2.4 to run successfully on a 32bit SPARC machine.
Quoted 8 lines
patrick
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 10 lines · Heinz J . Mauelshagen
Patrick,
could you proove what Chris pointed out in this thread:
<begin chris input>
All of the lvm10 utilities segfault on sparc. The root cause of the problem is that the shared library is compiled with both -fPIC and -pg. On sparc, this results in gcc outputting:
Quoted 8 lines
cc1: warning: -fPIC and profiling conflict: disabling -fPIC
This can be seen in the buildd logs:
http://buildd.debian.org/fetch.php?&pkg=lvm10&ver=1.0.1release-1&arch=sparc&stamp=1007871077&file=log&as=rawRemoving the -pg from the CFLAGS definition on line 73 of make.tmpl fixed the problem -- all LVM utilities worked fine.
<end chris input>
I can confirm that this is true on my box.
I removed -pg from make.tmpl.in some time ago (probably in response to a similar bug report!) but not early enough to reach 1.0.1.
patrick
Quoted 16 lines · Patrick Caulfield
Quoted 15 lines · Heinz J . Mauelshagen
Patrick,
could you proove what Chris pointed out in this thread:
<begin chris input>
All of the lvm10 utilities segfault on sparc. The root cause of the problem is that the shared library is compiled with both -fPIC and -pg. On sparc, this results in gcc outputting:cc1: warning: -fPIC and profiling conflict: disabling -fPIC
This can be seen in the buildd logs:
http://buildd.debian.org/fetch.php?&pkg=lvm10&ver=1.0.1release-1&arch=sparc&stamp=1007871077&file=log&as=raw
Quoted 8 lines
Quoted 3 lines
Removing the -pg from the CFLAGS definition on line 73 of make.tmpl fixed the problem -- all LVM utilities worked fine.
<end chris input>I can confirm that this is true on my box.
I removed -pg from make.tmpl.in some time ago (probably in response to a similar bug report!) but not early enough to reach 1.0.1.
Could you tweak configure for 1.0.2 then, please?
Thanks,
Heinz
Quoted 9 lines
patrick
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 21 lines · Heinz J . Mauelshagen
Quoted 20 lines · Patrick Caulfield
Quoted 18 lines · Heinz J . Mauelshagen
Patrick,
could you proove what Chris pointed out in this thread:
<begin chris input>
All of the lvm10 utilities segfault on sparc. The root cause of the problem is that the shared library is compiled with both -fPIC and -pg. On sparc, this results in gcc outputting:cc1: warning: -fPIC and profiling conflict: disabling -fPIC
This can be seen in the buildd logs:
http://buildd.debian.org/fetch.php?&pkg=lvm10&ver=1.0.1release-1&arch=sparc&stamp=1007871077&file=log&as=rawRemoving the -pg from the CFLAGS definition on line 73 of make.tmpl fixed the problem -- all LVM utilities worked fine.
<end chris input>
Quoted 6 lines
Quoted 4 lines
I can confirm that this is true on my box.
I removed -pg from make.tmpl.in some time ago (probably in response to a similar bug report!) but not early enough to reach 1.0.1.
Could you tweak configure for 1.0.2 then, please?
It's already gone. I see no reason to generate profiling code on users machines.
patrick
Quoted 22 lines · Patrick Caulfield
Quoted 21 lines · Heinz J . Mauelshagen
Quoted 20 lines · Patrick Caulfield
Quoted 18 lines · Heinz J . Mauelshagen
Patrick,
could you proove what Chris pointed out in this thread:
<begin chris input>
All of the lvm10 utilities segfault on sparc. The root cause of the problem is that the shared library is compiled with both -fPIC and -pg. On sparc, this results in gcc outputting:cc1: warning: -fPIC and profiling conflict: disabling -fPIC
This can be seen in the buildd logs:
http://buildd.debian.org/fetch.php?&pkg=lvm10&ver=1.0.1release-1&arch=sparc&stamp=1007871077&file=log&as=rawRemoving the -pg from the CFLAGS definition on line 73 of make.tmpl fixed the problem -- all LVM utilities worked fine.
<end chris input>
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I can confirm that this is true on my box.
I removed -pg from make.tmpl.in some time ago (probably in response to a similar bug report!) but not early enough to reach 1.0.1.
Could you tweak configure for 1.0.2 then, please?
It's already gone. I see no reason to generate profiling code on users machines.
True.
Thanks,
Heinz
Quoted 9 lines
patrick
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Sil" == Sil Lee
Sil> Hi.
Sil> I Have a problem to use LVM on Sun Sparc 20... when I try to perform Sil> a pvcreate a segmentation fault error occur.
I also experienced this problem
See http://bugs.debian.org/123322 for a fix.
thanks,
-chris
Signature · 5 lines
(I subscribe to all lists that I post to; please do not Cc me on list reply) Chris Danis [email protected] / [email protected] Debian GNU/Linux - www.debian.org