bug-parted
[Top][All Lists]
Advanced

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

parted segfault ...


From: Timshel Knoll
Subject: parted segfault ...
Date: Wed, 16 May 2001 00:25:34 +1000
User-agent: Mutt/1.3.17i

Hi,

I was mucking around with parted and found a couple of problems, before
I found a segfault ...

---cut---
Script started on Wed May 16 00:02:08 2001
address@hidden pts/5 work]# parted /dev/hdb
GNU Parted 1.4.11
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

GNU Parted's development is supported by Conectiva, www.conectiva.com

Using /dev/hdb
Warning: The operating system thinks the geometry on /dev/hdb is 782/128/63.
You should check that this matches the BIOS geometry before using this program.
(parted) print
Disk geometry for /dev/hdb: 0.000-3079.125 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031    393.750  primary   FAT         
3        393.750    992.250  primary   sun-ufs     boot
2        992.250   3079.125  extended              
5        992.312   3075.187  logical   ext2        
(parted) select /dev/hdb3
Warning: Device /dev/hdb3 is neither a SCSI nor IDE drive.
Ignore Cancel ? I

Using /dev/hdb3
(parted) print
No Implementation: The sun-ufs file system code doesn't support loop disk
labels.
Ignore Cancel ? I
Disk geometry for /dev/hdb3: 0.000-598.500 megabytes
Disk label type: loop
Minor    Start       End     Filesystem  Flags
1          0.000    598.500  sun-ufs     
(parted) print
No Implementation: The sun-ufs file system code doesn't support loop disk
labels.
Ignore Cancel ? c
Segmentation fault
address@hidden pts/5 work]# exit

Script done on Wed May 16 00:02:35 2001
---end cut---

Firstly: /dev/hdb3 is _not_ a sun-ufs disklabel, it is an OpenBSD
disklabel (and recognised by the kernel as such) - from dmesg:

Partition check:
 hda: hda2 hda3 < hda5 hda6 hda7 hda8 >
 hdb: hdb1 hdb2 < hdb5 > hdb3
 hdb3: <bsd: hdb6 hdb7 hdb8 hdb9 hdb10 >
        ^^^

Second:
I compiled a debug version and did a backtrace:

...
(parted) print
No Implementation: The sun-ufs file system code doesn't support loop
disk
labels.
Ignore Cancel ? c

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 :-)

If you need any details about the disklabel, let me know .....

Thanks,

Timshel

-- 
   Timshel Knoll <address@hidden>  for Debian email: <address@hidden>
                Geomatics/Computer Science double degree, RMIT
      Debian GNU/Linux developer, see http://people.debian.org/~timshel/
                For GnuPG public key: finger address@hidden



reply via email to

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