grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in read_handler_list (autoloading) ???


From: BVK
Subject: Bug in read_handler_list (autoloading) ???
Date: Wed, 11 Nov 2009 09:30:09 +0530

Hi,


I was trying grub-emu from experimental branch, and grub-emu aborts
with below error.  It seems read_handler_list function is trying to
grub_free non-heap global objects.


Suspecious code (read_handler_list in normal/handler.c):

              /* Override previous handler.lst.  */
              while (grub_handler_class_list)
                {
                  grub_handler_class_t tmp;
                  tmp = grub_handler_class_list->next;
                  grub_free (grub_handler_class_list);
                  grub_handler_class_list = tmp;
                }


Error message:

address@hidden:~/sid-home/foss/grub2/bzr/b$ sudo ./grub-emu >foo.txt 2>&1
*** glibc detected *** ./grub-emu: free(): invalid pointer: 0x08095860 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x448ff1]
/lib/tls/i686/cmov/libc.so.6[0x44a6f2]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x44d79d]
./grub-emu[0x80875c4]
./grub-emu[0x805e4e4]
./grub-emu[0x806080f]
./grub-emu[0x8060852]
./grub-emu[0x806090b]
./grub-emu[0x806098b]
./grub-emu[0x8059d49]
./grub-emu[0x8059d11]
./grub-emu[0x8059de0]
./grub-emu[0x8086fa0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x3f4b56]
./grub-emu[0x80496f1]
======= Memory map: ========
0011f000-0013b000 r-xp 00000000 08:03 750        /lib/libgcc_s.so.1
0013b000-0013c000 r-xp 0001b000 08:03 750        /lib/libgcc_s.so.1
0013c000-0013d000 rwxp 0001c000 08:03 750        /lib/libgcc_s.so.1
0021d000-00238000 r-xp 00000000 08:03 700        /lib/ld-2.10.1.so
00238000-00239000 r-xp 0001a000 08:03 700        /lib/ld-2.10.1.so
00239000-0023a000 rwxp 0001b000 08:03 700        /lib/ld-2.10.1.so
003c1000-003c2000 rwxp 00000000 00:00 0
003de000-0051c000 r-xp 00000000 08:03 1565
/lib/tls/i686/cmov/libc-2.10.1.so
0051c000-0051e000 r-xp 0013e000 08:03 1565
/lib/tls/i686/cmov/libc-2.10.1.so
0051e000-0051f000 rwxp 00140000 08:03 1565
/lib/tls/i686/cmov/libc-2.10.1.so
0051f000-00522000 rwxp 00000000 00:00 0
0074f000-00751000 rwxp 00000000 00:00 0
008f4000-008f6000 r-xp 00000000 08:03 1571
/lib/tls/i686/cmov/libdl-2.10.1.so
008f6000-008f7000 r-xp 00001000 08:03 1571
/lib/tls/i686/cmov/libdl-2.10.1.so
008f7000-008f8000 rwxp 00002000 08:03 1571
/lib/tls/i686/cmov/libdl-2.10.1.so
00b89000-00b8a000 rwxp 00000000 00:00 0
00c98000-00ccc000 r-xp 00000000 08:03 770        /lib/libncurses.so.5.7
00ccc000-00ccd000 ---p 00034000 08:03 770        /lib/libncurses.so.5.7
00ccd000-00ccf000 r-xp 00034000 08:03 770        /lib/libncurses.so.5.7
00ccf000-00cd0000 rwxp 00036000 08:03 770        /lib/libncurses.so.5.7
00dfa000-00dfb000 r-xp 00000000 00:00 0          [vdso]
08048000-08095000 r-xp 00000000 08:03 58479
/home/bvk/sid-home/foss/grub2/bzr/b/grub-emu
08095000-08097000 rwxp 0004c000 08:03 58479
/home/bvk/sid-home/foss/grub2/bzr/b/grub-emu
08097000-080bf000 rwxp 00000000 00:00 0
08f82000-08fbb000 rwxp 00000000 00:00 0          [heap]
b7700000-b7721000 rwxp 00000000 00:00 0
b7721000-b7800000 ---p 00000000 00:00 0
bf85a000-bf86f000 rwxp 00000000 00:00 0          [stack]
Aborted




-- 
bvk.chaitanya




reply via email to

[Prev in Thread] Current Thread [Next in Thread]