GNU bug report logs - #18314
[bug] fail to print device info

Previous Next

Package: parted;

Reported by: lumin <cdluminate <at> gmail.com>

Date: Fri, 22 Aug 2014 01:53:01 UTC

Severity: normal

To reply to this bug, email your comments to 18314 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#18314; Package parted. (Fri, 22 Aug 2014 01:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to lumin <cdluminate <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Fri, 22 Aug 2014 01:53:02 GMT) Full text and rfc822 format available.

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

From: lumin <cdluminate <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: [bug] fail to print device info
Date: Fri, 22 Aug 2014 01:31:21 +0000
parted version: 3.2 (debian jessie)
debian package version: 
> parted/testing,testing,now 3.2-4 amd64

hello,
I am new at bug reporting, and I am trying to provide enough information
about the BUG I have encountered.

I have dd'ed a debian 7.6 DVD installation media(iso) directly into my
USB stick(USB3.0). I am sure there is no damage on this device. 
Then I'd like to make a new partition table,then I typed 'print' first:

```
(parted) print
Warning: The driver descriptor says the physical block size is 2048
bytes, but Linux says it is 512 bytes.
Ignore/Cancel? I
```

then the bug occured.
this is device info required by the program:
```
(parted)
print                                                            
Warning: The driver descriptor says the physical block size is 2048
bytes, but
Linux says it is 512 bytes.
Ignore/Cancel?
C                                                          
Model: Kingston DataTraveler 3.0 (scsi)
Disk /dev/sdc: 15356160s
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 
```
when I say Ignore:
```
***
Command History:
unit
s
print
I

Error: A general SIGSEGV signal was encountered.
```
 
this is the original BUG:
(parted /dev/sdc)
```
Command History:
print
I

Error: SEGV_MAPERR (Address not mapped to object)
Backtrace has 16 calls on stack:
  16: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x31)
[0x7ffbda65f5f1]
  15: parted() [0x40a684]
  14: /lib/x86_64-linux-gnu/libc.so.6(+0x35480) [0x7ffbd9e6a480]
  13: /lib/x86_64-linux-gnu/libc.so.6(+0x90875) [0x7ffbd9ec5875]
  12: /lib/x86_64-linux-gnu/libparted.so.2(+0x1817e) [0x7ffbda66a17e]
  11: /lib/x86_64-linux-gnu/libparted.so.2(ped_geometry_read+0x35)
[0x7ffbda665a85]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x1ce16) [0x7ffbda66ee16]
  9: /lib/x86_64-linux-gnu/libparted.so.2(ped_file_system_probe_specific
+0x37) [0x7ffbda660a07]
  8: /lib/x86_64-linux-gnu/libparted.so.2(ped_file_system_probe+0x4e)
[0x7ffbda660ace]
  7: /lib/x86_64-linux-gnu/libparted.so.2(+0x2954c) [0x7ffbda67b54c]
  6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48)
[0x7ffbda6644b8]
  5: parted() [0x407659]
  4: parted(interactive_mode+0xff) [0x40c6ef]
  3: parted(main+0x1175) [0x405f45]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
[0x7ffbd9e56b45]
  1: parted() [0x405f98]
```

then I erased the first sector of the disk:
sudo dd if=/dev/zero of=/dev/sdc bs=512 count=1
then ALL things went back to normal.
seems like matter of Device driver.

-- 
Regards,
  C.D.Luminate





Information forwarded to bug-parted <at> gnu.org:
bug#18314; Package parted. (Fri, 22 Aug 2014 15:32:01 GMT) Full text and rfc822 format available.

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

From: "Brian C. Lane" <bcl <at> redhat.com>
To: bug-parted <at> gnu.org
Subject: Re: bug#18314: [bug] fail to print device info
Date: Fri, 22 Aug 2014 08:31:13 -0700
On Fri, Aug 22, 2014 at 01:31:21AM +0000, lumin wrote:
 
> Error: SEGV_MAPERR (Address not mapped to object)
> Backtrace has 16 calls on stack:
>   16: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x31)
> [0x7ffbda65f5f1]
>   15: parted() [0x40a684]
>   14: /lib/x86_64-linux-gnu/libc.so.6(+0x35480) [0x7ffbd9e6a480]
>   13: /lib/x86_64-linux-gnu/libc.so.6(+0x90875) [0x7ffbd9ec5875]
>   12: /lib/x86_64-linux-gnu/libparted.so.2(+0x1817e) [0x7ffbda66a17e]
>   11: /lib/x86_64-linux-gnu/libparted.so.2(ped_geometry_read+0x35)
> [0x7ffbda665a85]
>   10: /lib/x86_64-linux-gnu/libparted.so.2(+0x1ce16) [0x7ffbda66ee16]
>   9: /lib/x86_64-linux-gnu/libparted.so.2(ped_file_system_probe_specific
> +0x37) [0x7ffbda660a07]
>   8: /lib/x86_64-linux-gnu/libparted.so.2(ped_file_system_probe+0x4e)
> [0x7ffbda660ace]
>   7: /lib/x86_64-linux-gnu/libparted.so.2(+0x2954c) [0x7ffbda67b54c]
>   6: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48)
> [0x7ffbda6644b8]
>   5: parted() [0x407659]
>   4: parted(interactive_mode+0xff) [0x40c6ef]
>   3: parted(main+0x1175) [0x405f45]
>   2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
> [0x7ffbd9e56b45]
>   1: parted() [0x405f98]
> ```
> 
> then I erased the first sector of the disk:
> sudo dd if=/dev/zero of=/dev/sdc bs=512 count=1
> then ALL things went back to normal.
> seems like matter of Device driver.

Did you happen to make a copy of the sector? If not there isn't much we
can do to reproduce this.

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




Information forwarded to bug-parted <at> gnu.org:
bug#18314; Package parted. (Wed, 08 Oct 2014 14:26:01 GMT) Full text and rfc822 format available.

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

From: lumin <cdluminate <at> gmail.com>
To: 18314 <at> debbugs.gnu.org, bug-parted <bug-parted <at> gnu.org>
Cc: bcl <at> redhat.com
Subject: Re: bug#18314: [bug] fail to print device info
Date: Wed, 08 Oct 2014 14:24:48 +0000
Sorry to reply after so long time.
I tried to replay it, then I dd'ed a iso file into the flash disk,
But it doesn't happen again, even if partprobe said :

Warning: The driver descriptor says the physical block size is 2048
bytes, but Linux says it is 512 bytes.

NO ANY PROBLEM even if I choose "Ignore" always.
Jessie updated its kernel to 3.16 recently,
Maybe it is kernel-related... I don't know.
-- 
Regards,
  C.D.Luminate





Information forwarded to bug-parted <at> gnu.org:
bug#18314; Package parted. (Wed, 08 Oct 2014 14:26:02 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 254 days ago.

Previous Next


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