[Top][All Lists]

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

Re: inserting CD-ROM crashes parted 1.6.6

From: Ken
Subject: Re: inserting CD-ROM crashes parted 1.6.6
Date: Sun, 18 Jan 2004 01:20:53 -0800
User-agent: KMail/1.5.4


I re-compiled parted, adding -g to CFLAGS, made sure --enable-mtrace and 
--enable-debug were passed to configure, and then ran inside gdb.

Here is the output from gdb:

This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run
Starting program: /sbin/parted

Program received signal SIGFPE, Arithmetic exception.
0x55059a50 in __udivdi3 (n=0, d=1) at /usr/src/gcc-3.3.1/gcc/libgcc2.c:551
551     /usr/src/gcc-3.3.1/gcc/libgcc2.c: No such file or directory.
        in /usr/src/gcc-3.3.1/gcc/libgcc2.c
(gdb) bt
#0  0x55059a50 in __udivdi3 (n=0, d=1) at /usr/src/gcc-3.3.1/gcc/libgcc2.c:551
#1  0x5503d128 in _device_get_length (dev=0x8061920) at linux.c:411
#2  0x5503d261 in _device_probe_geometry (dev=0x8061920) at linux.c:439
#3  0x5503d690 in init_ide (dev=0x8061920) at linux.c:532
#4  0x5503de71 in linux_new (path=0x8060918 "/dev/hdc") at linux.c:794
#5  0x5501e054 in ped_device_get (path=0x5505f31a "/dev/hdc") at device.c:157
#6  0x5501def5 in _ped_device_probe (path=0x5505f31a "/dev/hdc") at 
#7  0x5503f3f9 in _probe_standard_devices () at linux.c:1418
#8  0x5503f45a in linux_probe_all () at linux.c:1437
#9  0x5501df30 in ped_device_probe_all () at device.c:122
#10 0x0804e529 in _choose_device (argc_ptr=0xfefffb00, argv_ptr=0xfefffb04) at 
#11 0x0804e5ef in _init (argc_ptr=0xfefffb00, argv_ptr=0xfefffb04) at 
#12 0x0804e718 in main (argc=0, argv=0xfefffb48) at parted.c:1634
#13 0x550ea86e in __libc_start_main () from /lib/libc.so.6
(gdb) up
#1  0x5503d128 in _device_get_length (dev=0x8061920) at linux.c:411
411                             return bytes / _device_get_sector_size(dev);

It seems that libparted/linux.c has a divide by zero at line 411; but I have 
no idea why that should be.

K Borel

reply via email to

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