GNU bug report logs - #21856
print bug in probe_filesystem_for_geom

Previous Next

Package: parted;

Reported by: Tim Kissane <tim <at> timbury.com>

Date: Sat, 7 Nov 2015 23:31:01 UTC

Severity: normal

To reply to this bug, email your comments to 21856 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#21856; Package parted. (Sat, 07 Nov 2015 23:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tim Kissane <tim <at> timbury.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Sat, 07 Nov 2015 23:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tim Kissane <tim <at> timbury.com>
To: bug-parted <at> gnu.org
Subject: print bug in probe_filesystem_for_geom
Date: Sat, 07 Nov 2015 15:58:52 -0500
Greetings Parted devs,

While attempting to use parted to examine a USB (/dev/sdb), I tripped a 
bug message.  I hope this information proves helpful.
My uneducated guess is that the function probe_filesystem_for_geom needs 
to validate input. Or perhaps I need to learn the right usage. ;)

---
(parted) print devices
/dev/sda (480GB)
/dev/sdb (2012MB)
(parted) print sdb
Backtrace has 11 calls on stack:
  11: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) 
[0x7fc9e17cf644]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f0de) [0x7fc9e17e10de]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f1e7) [0x7fc9e17e11e7]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0x209b8) [0x7fc9e17e29b8]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0x120aa) [0x7fc9e17d40aa]
  6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_set_flag+0x68) 
[0x7fc9e17d46c8]
  5: parted() [0x406b21]
  4: parted(interactive_mode+0xff) [0x40ca2f]
  3: parted(main+0x119f) [0x405f6f]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) 
[0x7fc9e0fc6b45]
  1: parted() [0x405fc7]


You found a bug in GNU Parted! Here's what you have to do:
---
Assertion (part->disk->dev->sector_size % PED_SECTOR_SIZE_DEFAULT == 0)
at ../../../libparted/labels/dos.c:589 in function
probe_filesystem_for_geom() failed.
---
root <at> host:~# parted --version
parted (GNU parted) 3.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by 
<http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.
root <at> host:~#
---
root <at> host:~# parted /dev/sdb unit co print unit s print
Model: Kingston DataTraveler 2.0 (scsi)
Disk /dev/sdb: 2012MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  2012MB  2011MB  primary  ext4         boot

Model: Kingston DataTraveler 2.0 (scsi)
Disk /dev/sdb: 3930112s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End       Size      Type     File system  Flags
 1      2048s  3930111s  3928064s  primary  ext4         boot

root <at> host:~#
---

Regards,
Tim Kissane
tim <at> timbury.com





Information forwarded to bug-parted <at> gnu.org:
bug#21856; Package parted. (Mon, 09 Nov 2015 23:10:03 GMT) Full text and rfc822 format available.

Message #8 received at 21856 <at> debbugs.gnu.org (full text, mbox):

From: "Brian C. Lane" <bcl <at> redhat.com>
To: Tim Kissane <tim <at> timbury.com>
Cc: 21856 <at> debbugs.gnu.org
Subject: Re: bug#21856: print bug in probe_filesystem_for_geom
Date: Mon, 9 Nov 2015 15:09:09 -0800
On Sat, Nov 07, 2015 at 03:58:52PM -0500, Tim Kissane wrote:
> Greetings Parted devs,
> 
> While attempting to use parted to examine a USB (/dev/sdb), I tripped a bug
> message.  I hope this information proves helpful.
> My uneducated guess is that the function probe_filesystem_for_geom needs to
> validate input. Or perhaps I need to learn the right usage. ;)
> 
> ---
> (parted) print devices
> /dev/sda (480GB)
> /dev/sdb (2012MB)
> (parted) print sdb
> Backtrace has 11 calls on stack:
>   11: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7fc9e17cf644]
>   10: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f0de) [0x7fc9e17e10de]
>   9: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f1e7) [0x7fc9e17e11e7]
>   8: /lib/x86_64-linux-gnu/libparted.so.2(+0x209b8) [0x7fc9e17e29b8]
>   7: /lib/x86_64-linux-gnu/libparted.so.2(+0x120aa) [0x7fc9e17d40aa]
>   6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_set_flag+0x68)
> [0x7fc9e17d46c8]
>   5: parted() [0x406b21]
>   4: parted(interactive_mode+0xff) [0x40ca2f]
>   3: parted(main+0x119f) [0x405f6f]
>   2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
> [0x7fc9e0fc6b45]
>   1: parted() [0x405fc7]
> 
> 
> You found a bug in GNU Parted! Here's what you have to do:
> ---
> Assertion (part->disk->dev->sector_size % PED_SECTOR_SIZE_DEFAULT == 0)
> at ../../../libparted/labels/dos.c:589 in function
> probe_filesystem_for_geom() failed.

Well, you aren't supposed to do 'print sdb' but it also shouldn't crash.
I couldn't reproduce this with parted-3.2-10.fc22.x86_64 on Fedora.
Commit eef3035 might have fixed it, but I'm not sure.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)




This bug report was last modified 9 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.