Skip to contentSkip to conversation

lvcreate segfalts 2.4.16 1.0.1-rc4

linux-lvm Jesse Nelson 2 participants 3 messages Dec 7, 2001

lore
Share & tools
lore
#0 lore raw

Stock 2.4.16 and 1.0.1-rc4 LVM runing on RedHat 7.2 ( egcs 2.96

I read this post:
http://lists.sistina.com/pipermail/linux-lvm/2001-September/008980.html

About rc2 having same issue.
I compiled and patched with the patch mentioned in that post and it seems to be working.

heres the stack info for rc4:

[root@vader 1.0.1-rc2]# gdb lvcreate

	<snip>

(gdb) r -L 15G -n data vgData
Starting program: /sbin/lvcreate -L 15G -n data vgData

Program received signal SIGSEGV, Segmentation fault. lv_create (vg=0x6, lv=0xbffffa44,

    lv_name=0xbffffa60 

"\206ûÿ¿\236ûÿ¿­ûÿ¿Âûÿ¿Úûÿ¿üûÿ¿\eüÿ¿'üÿ¿1üÿ¿ôýÿ¿\023þÿ¿-þÿ¿Bþÿ¿Yþÿ¿dþÿ¿wþÿ¿\204þÿ¿\214þÿ¿\234þÿ¿ªþÿ¿¸þÿ¿Éþÿ¿×þÿ¿ùþÿ¿\022ÿÿ¿\035ÿÿ¿'ÿÿ¿Zÿÿ¿Úÿÿ¿") at lv_create_remove.c:42
42 int lv_create ( vg_t *vg, lv_t *lv, char *lv_name) {
(gdb) info stack
#0 lv_create (vg=0x6, lv=0xbffffa44,

    lv_name=0xbffffa60 
"\206ûÿ¿\236ûÿ¿­ûÿ¿Âûÿ¿Úûÿ¿üûÿ¿\eüÿ¿'üÿ¿1üÿ¿ôýÿ¿\023þÿ¿-þÿ¿Bþÿ¿Yþÿ¿dþÿ¿wþÿ¿\204þÿ¿\214þÿ¿\234þÿ¿ªþÿ¿¸þÿ¿Éþÿ¿×þÿ¿ùþÿ¿\022ÿÿ¿\035ÿÿ¿'ÿÿ¿Zÿÿ¿Úÿÿ¿") at lv_create_remove.c:42
#1  0x0804b03d in strcpy ()
#2  0x4007e507 in __libc_start_main (main=0x8049390 <strcpy+384>, argc=6,
    ubp_av=0xbffffa44, init=0x8048e88 <_init>, fini=0x804b4d0 <_fini>,
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffffa3c)
    at ../sysdeps/generic/libc-start.c:129

(gdb)

I will compile with debuging if it will help.

Thanks!

Signature · 1 line
Jesse Nelson
#1 lore raw

To clarify.. I compiled rc2 with the patch mentioned.

Quoted 51 lines · Jesse Nelson

Stock 2.4.16 and 1.0.1-rc4 LVM runing on RedHat 7.2 ( egcs 2.96

I read this post:
http://lists.sistina.com/pipermail/linux-lvm/2001-September/008980.html

About rc2 having same issue.
I compiled and patched with the patch mentioned in that post and it seems to be working.

heres the stack info for rc4:

[root@vader 1.0.1-rc2]# gdb lvcreate

        <snip>

(gdb) r -L 15G -n data vgData
Starting program: /sbin/lvcreate -L 15G -n data vgData

Program received signal SIGSEGV, Segmentation fault. lv_create (vg=0x6, lv=0xbffffa44,

     lv_name=0xbffffa60

"\206ûÿ¿\236ûÿ¿­ûÿ¿Âûÿ¿Úûÿ¿üûÿ¿\eüÿ¿'üÿ¿1üÿ¿ôýÿ¿\023þÿ¿-þÿ¿Bþÿ¿Yþÿ¿dþÿ¿wþÿ¿\204þÿ¿\214þÿ¿\234þÿ¿ªþÿ¿¸þÿ¿Éþÿ¿×þÿ¿ùþÿ¿\022ÿÿ¿\035ÿÿ¿'ÿÿ¿Zÿÿ¿Úÿÿ¿")

at lv_create_remove.c:42
42 int lv_create ( vg_t *vg, lv_t *lv, char *lv_name) {
(gdb) info stack
#0 lv_create (vg=0x6, lv=0xbffffa44,

     lv_name=0xbffffa60

"\206ûÿ¿\236ûÿ¿­ûÿ¿Âûÿ¿Úûÿ¿üûÿ¿\eüÿ¿'üÿ¿1üÿ¿ôýÿ¿\023þÿ¿-þÿ¿Bþÿ¿Yþÿ¿dþÿ¿wþÿ¿\204þÿ¿\214þÿ¿\234þÿ¿ªþÿ¿¸þÿ¿Éþÿ¿×þÿ¿ùþÿ¿\022ÿÿ¿\035ÿÿ¿'ÿÿ¿Zÿÿ¿Úÿÿ¿")

at lv_create_remove.c:42
#1 0x0804b03d in strcpy ()
#2 0x4007e507 in __libc_start_main (main=0x8049390 <strcpy+384>, argc=6,

     ubp_av=0xbffffa44, init=0x8048e88 <_init>, fini=0x804b4d0 <_fini>,
     rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffffa3c)
     at ../sysdeps/generic/libc-start.c:129

(gdb)

I will compile with debuging if it will help.

Thanks!

Signature · 4 lines
Jesse Nelson


-)îÆ[æ(tm)¨¥?x%?Ëe?{±-ù¬?Ëb?§(?m§ÿå?Ël²+-?voe¢oæj)fj?å?Ëb?ú?-)îÆ[æ­æ?¶?TÁÎY3?¶m§ÿðÃ"²Ø§iÊ&þ[æüö zÏá£h?Ù¥
Signature · 1 line
Jesse Nelson
#2 lore raw
In reply to Jesse Nelson
Quoted 1 line · Jesse Nelson

Stock 2.4.16 and 1.0.1-rc4 LVM runing on RedHat 7.2 ( egcs 2.96

It's a Redhat compiler problem. You need to compile with -O0 or download 1.0.1

patrick