Package: gparted
Version: 0.25.0-1
Severity: grave

mattia@chase ~ % gksudo gparted
======================
libparted : 3.2
======================
Backtrace has 16 calls on stack:
  16: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7fc5feb2eae4]
  15: /lib/x86_64-linux-gnu/libparted.so.2(+0x2009f) [0x7fc5feb4209f]
  14: /lib/x86_64-linux-gnu/libparted.so.2(+0x114fa) [0x7fc5feb334fa]
  13: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_add_partition+0x25f) 
[0x7fc5feb33def]
  12: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f98f) [0x7fc5feb4198f]
  11: /lib/x86_64-linux-gnu/libparted.so.2(+0x1fa20) [0x7fc5feb41a20]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x1fa20) [0x7fc5feb41a20]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f9c9) [0x7fc5feb419c9]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0x209b5) [0x7fc5feb429b5]
  7: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48) [0x7fc5feb33a18]
  6: /usr/sbin/gpartedbin() [0x466bfe]
  5: /usr/sbin/gpartedbin() [0x47554e]
  4: /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1(+0x51c3d) [0x7fc600043c3d]
  3: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x70b75) [0x7fc5feff7b75]
  2: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7454) [0x7fc5fde78454]
  1: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7fc5fdbb5edd]


And quit here, funnily exiting with 0 (e.g. successfully).

Now, unhelpfully the maintainer did a binary upload, either built with
an outdated chroot or by manually disabling the automatic debug
packages, but given that probably the issue is in libparted2, and luckiy
the parted's maintainer does source uploads, and built the debug
package, I installed libparted2-dbgsym, and run the this in gdb to have
a backtrace, here follows the whole thing.

I don't know if the issue actually lies, so maybe this bug should be
reassigned to libparted2 instead.

Please tell me if you would be helped by more information.

mattia@chase ~ % sudo gdb /usr/sbin/gpartedbin
GNU gdb (Debian 7.10-1+b1) 7.10
Copyright (C) 2015 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.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/gpartedbin...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/sbin/gpartedbin 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
======================
libparted : 3.2
======================
[New Thread 0x7fffee642700 (LWP 19548)]
[New Thread 0x7fffeda6b700 (LWP 19554)]
Backtrace has 16 calls on stack:
  16: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7ffff5993ae4]
  15: /lib/x86_64-linux-gnu/libparted.so.2(+0x2009f) [0x7ffff59a709f]
  14: /lib/x86_64-linux-gnu/libparted.so.2(+0x114fa) [0x7ffff59984fa]
  13: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_add_partition+0x25f) 
[0x7ffff5998def]
  12: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f98f) [0x7ffff59a698f]
  11: /lib/x86_64-linux-gnu/libparted.so.2(+0x1fa20) [0x7ffff59a6a20]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x1fa20) [0x7ffff59a6a20]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x1f9c9) [0x7ffff59a69c9]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0x209b5) [0x7ffff59a79b5]
  7: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_new+0x48) [0x7ffff5998a18]
  6: /usr/sbin/gpartedbin() [0x466bfe]
  5: /usr/sbin/gpartedbin() [0x47554e]
  4: /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1(+0x51c3d) [0x7ffff6ea8c3d]
  3: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x70b75) [0x7ffff5e5cb75]
  2: /lib/x86_64-linux-gnu/libpthread.so.0(+0x7454) [0x7ffff4cdd454]
  1: /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7ffff4a1aedd]
Assertion (metadata_length > 0) at ../../../libparted/labels/dos.c:2313 in 
function add_logical_part_metadata() failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffeda6b700 (LWP 19554)]
0x00007ffff4965478 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:55
55      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff4965478 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007ffff49668fa in __GI_abort () at abort.c:89
#2  0x00007ffff5993b9c in ped_assert (cond_text=cond_text@entry=0x7ffff59becce 
"metadata_length > 0", 
    file=file@entry=0x7ffff59beac0 "../../../libparted/labels/dos.c", 
line=line@entry=2313, 
    function=function@entry=0x7ffff59bf040 <__PRETTY_FUNCTION__.5892> 
"add_logical_part_metadata") at ../../libparted/debug.c:111
#3  0x00007ffff59a709f in add_logical_part_metadata (log_part=0x7fffe0005b30, 
disk=0x7fffe00008c0) at ../../../libparted/labels/dos.c:2313
#4  msdos_alloc_metadata (disk=0x7fffe00008c0) at 
../../../libparted/labels/dos.c:2444
#5  0x00007ffff59984fa in _disk_alloc_metadata (disk=0x7fffe00008c0) at 
../../libparted/disk.c:1011
#6  _disk_pop_update_mode (disk=0x7fffe00008c0) at ../../libparted/disk.c:1164
#7  0x00007ffff5998def in ped_disk_add_partition 
(disk=disk@entry=0x7fffe00008c0, part=part@entry=0x7fffe0005b30, 
constraint=0x7fffe0005740, 
    constraint@entry=0x7fffe0005c70) at ../../libparted/disk.c:1993
#8  0x00007ffff59a698f in read_table (disk=disk@entry=0x7fffe00008c0, 
sector=1873516365, is_extended_table=is_extended_table@entry=1)
    at ../../../libparted/labels/dos.c:1055
#9  0x00007ffff59a6a20 in read_table (disk=disk@entry=0x7fffe00008c0, 
sector=2047, is_extended_table=is_extended_table@entry=1) at 
../../../libparted/labels/dos.c:1085
#10 0x00007ffff59a6a20 in read_table (disk=disk@entry=0x7fffe00008c0, 
sector=2046, is_extended_table=is_extended_table@entry=1) at 
../../../libparted/labels/dos.c:1085
#11 0x00007ffff59a69c9 in read_table (disk=disk@entry=0x7fffe00008c0, 
sector=sector@entry=0, is_extended_table=is_extended_table@entry=0)
    at ../../../libparted/labels/dos.c:1062
#12 0x00007ffff59a79b5 in msdos_read (disk=0x7fffe00008c0) at 
../../../libparted/labels/dos.c:1107
#13 0x00007ffff5998a18 in ped_disk_new (dev=0x7fffe0003e70) at 
../../libparted/disk.c:201
#14 0x0000000000466bfe in ?? ()
#15 0x000000000047554e in ?? ()
#16 0x00007ffff6ea8c3d in ?? () from 
/usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#17 0x00007ffff5e5cb75 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff4cdd454 in start_thread (arg=0x7fffeda6b700) at 
pthread_create.c:334
#19 0x00007ffff4a1aedd in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) k
Kill the program being debugged? (y or n) y
(gdb) q
mattia@chase ~ % 



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

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gparted depends on:
ii  libatkmm-1.6-1v5      2.24.2-1
ii  libc6                 2.22-4
ii  libgcc1               1:5.3.1-13
ii  libglib2.0-0          2.48.0-1
ii  libglibmm-2.4-1v5     2.46.3-1
ii  libgtk2.0-0           2.24.30-1.1
ii  libgtkmm-2.4-1v5      1:2.24.4-2+b1
ii  libpangomm-1.4-1v5    2.38.1-1
ii  libparted-fs-resize0  3.2-15
ii  libparted2            3.2-15
ii  libsigc++-2.0-0v5     2.8.0-1
ii  libstdc++6            5.3.1-13
ii  libuuid1              2.27.1-6

gparted recommends no packages.

Versions of packages gparted suggests:
pn  dmraid         <none>
ii  dmsetup        2:1.02.120-1
ii  dosfstools     3.0.28-2
pn  gpart          <none>
pn  jfsutils       <none>
pn  kpartx         <none>
ii  mtools         4.0.18-2
ii  ntfs-3g        1:2015.3.14AR.1-1+b1
pn  reiser4progs   <none>
ii  reiserfsprogs  1:3.6.24-3.1
ii  xfsprogs       4.3.0+nmu1
ii  yelp           3.16.1-1

-- no debconf information

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature

Reply via email to