[Parted-maintainers] Bug#757997: parted -l crashes if zram swap is enabled

Antti Kultanen debbugs at pyksy.fi
Wed Aug 13 07:50:12 UTC 2014


Package: parted
Version: 3.2-4
Severity: normal

Listing partitions with zram swap enabled by calling 'parted -l'
will crash parted version 3.2.

The older 3.1 version works fine.

Disabling zram swap stops the crashing.

Attached core file.

Let me know if you need more info. Zram swap enabled as per
https://wiki.debian.org/ZRam


-8<-
root at zenbook ~ # dpkg -l parted libparted2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend 
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libparted2:amd 3.1-4        amd64        disk partition manipulator - shar
ii  parted         3.1-4        amd64        disk partition manipulator

[4541] [10:15] root at zenbook ~ # parted -l
Model: ATA SanDisk SSD U100 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type      File system  Flags
 1      1049kB  256MB  255MB  primary   ext2         boot
 2      257MB   128GB  128GB  extended
 5      257MB   128GB  128GB  logical


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/zenbook-swap_1: 5222MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system     Flags
 1      0.00B  5222MB  5222MB  linux-swap(v1)


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/zenbook-root: 123GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End    Size   File system  Flags
 1      0.00B  123GB  123GB  ext4


Error: /dev/mapper/sda5_crypt: unrecognised disk label
Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/sda5_crypt: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

Error: /dev/zram0: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/zram0: 1014MB
Sector size (logical/physical): 4096B/4096B
Partition Table: unknown
Disk Flags:

Error: /dev/zram1: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/zram1: 1014MB
Sector size (logical/physical): 4096B/4096B
Partition Table: unknown
Disk Flags:

Error: /dev/zram2: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/zram2: 1014MB
Sector size (logical/physical): 4096B/4096B
Partition Table: unknown
Disk Flags:

Error: /dev/zram3: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/zram3: 1014MB
Sector size (logical/physical): 4096B/4096B
Partition Table: unknown
Disk Flags:

root at zenbook ~ # apt-get install parted libparted2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libparted-dev libparted-i18n parted-doc
The following packages will be upgraded:
  libparted2 parted
2 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/461 kB of archives.
After this operation, 115 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
(Reading database ... 332983 files and directories currently installed.)
Preparing to unpack .../parted_3.2-4_amd64.deb ...
Unpacking parted (3.2-4) over (3.1-4) ...
Preparing to unpack .../libparted2_3.2-4_amd64.deb ...
Unpacking libparted2:amd64 (3.2-4) over (3.1-4) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libparted2:amd64 (3.2-4) ...
Setting up parted (3.2-4) ...
Processing triggers for libc-bin (2.19-7) ...

root at zenbook ~ # parted -l
Model: ATA SanDisk SSD U100 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type      File system  Flags
 1      1049kB  256MB  255MB  primary   ext2         boot
 2      257MB   128GB  128GB  extended
 5      257MB   128GB  128GB  logical


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/zenbook-swap_1: 5222MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system     Flags
 1      0.00B  5222MB  5222MB  linux-swap(v1)


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/zenbook-root: 123GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End    Size   File system  Flags
 1      0.00B  123GB  123GB  ext4


Error: /dev/mapper/sda5_crypt: unrecognised disk label
Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/sda5_crypt: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:



You found a bug in GNU Parted! Here's what you have to do:

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

        http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

        http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (3.2)
along with the error message below, the output of

        parted DEVICE unit co print unit s print

and the following history of commands you entered.
Also include any additional information about your setup you
consider important.

Command History:
zsh: segmentation fault (core dumped)  parted -l

root at zenbook ~ # service zram stop
disabled disk 4 of 4
disabled disk 3 of 4
disabled disk 2 of 4
disabled disk 1 of 4

root at zenbook ~ # parted -l
Model: ATA SanDisk SSD U100 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size   Type      File system  Flags
 1      1049kB  256MB  255MB  primary   ext2         boot
 2      257MB   128GB  128GB  extended
 5      257MB   128GB  128GB  logical


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/zenbook-swap_1: 5222MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End     Size    File system     Flags
 1      0.00B  5222MB  5222MB  linux-swap(v1)


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/zenbook-root: 123GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system  Flags
 1      0.00B  123GB  123GB  ext4


Error: /dev/mapper/sda5_crypt: unrecognised disk label
Model: Linux device-mapper (crypt) (dm)                                   
Disk /dev/mapper/sda5_crypt: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 
-8<-


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=fi_FI at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages parted depends on:
ii  libc6         2.19-7
ii  libparted2    3.2-4
ii  libreadline6  6.3-8
ii  libtinfo5     5.9+20140712-2

parted recommends no packages.

Versions of packages parted suggests:
pn  parted-doc  <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: core
Type: application/x-coredump
Size: 1318912 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-maintainers/attachments/20140813/52d600ae/attachment-0001.bin>


More information about the Parted-maintainers mailing list