[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parted segfault ...
From: |
Andrew Clausen |
Subject: |
Re: parted segfault ... |
Date: |
Wed, 16 May 2001 09:36:08 +1000 |
Timshel Knoll wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x400abd78 in loop_read (disk=0x805f5c8) at disk_loop.c:240
> 240 part->fs_type = fs_type;
> (gdb) bt
> #0 0x400abd78 in loop_read (disk=0x805f5c8) at disk_loop.c:240
> #1 0x400ab8ac in loop_open (dev=0x805f538) at disk_loop.c:136
> #2 0x400a06b3 in ped_disk_open (dev=0x805f538) at disk.c:140
> #3 0x804b14d in do_print (dev=0xbffff814) at parted.c:695
> #4 0x8049f3e in command_run (cmd=0x805d308, dev=0xbffff814) at
> command.c:117
> #5 0x804e669 in interactive_mode (dev=0x805f538, cmd_list=0x80509c0)
> at ui.c:585
> #6 0x804cab7 in main (argc=0, argv=0xbffff8b4) at parted.c:1298
> #7 0x400f52eb in __libc_start_main () from /lib/libc.so.6
> (gdb) print part
> $1 = (PedPartition *) 0x0
> (gdb)
>
> Hmmm ... that doesn't look right :-)
Oops! loop_read() was checking if ped_partition_new() returns
NULL *AFTER* trying to dereference. Not clever at all!
Thanks!
Andrew Clausen