Bug 1142425

Summary: [abrt] parted: xrealloc(): parted killed by SIGABRT
Product: [Fedora] Fedora Reporter: lonelywoolf
Component: partedAssignee: Brian Lane <bcl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: bcl, lonelywoolf
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/7997d352a4185f95c17c2a80909fa1dcda42b23c
Whiteboard: abrt_hash:849f7b9a1a83409fc84d9a236eae4ccfa693b522
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-30 19:02:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages
none
dd if=/dev/sda of=disk.img bs=512 count=34 none

Description lonelywoolf 2014-09-16 18:10:17 UTC
Version-Release number of selected component:
parted-3.2-3.fc21

Additional info:
reporter:       libreport-2.2.3
backtrace_rating: 4
cmdline:        parted /dev/sda print
crash_function: xrealloc
executable:     /usr/sbin/parted
kernel:         3.16.2-301.fc21.x86_64+debug
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (6 frames)
 #6 xrealloc at xmalloc.c:61
 #7 table_render_row at table.c:184
 #8 table_render_rows at table.c:231
 #9 table_render at table.c:243
 #10 do_print at parted.c:1225
 #11 non_interactive_mode at ui.c:1636

Comment 1 lonelywoolf 2014-09-16 18:10:21 UTC
Created attachment 938177 [details]
File: backtrace

Comment 2 lonelywoolf 2014-09-16 18:10:22 UTC
Created attachment 938178 [details]
File: cgroup

Comment 3 lonelywoolf 2014-09-16 18:10:24 UTC
Created attachment 938179 [details]
File: core_backtrace

Comment 4 lonelywoolf 2014-09-16 18:10:25 UTC
Created attachment 938180 [details]
File: dso_list

Comment 5 lonelywoolf 2014-09-16 18:10:27 UTC
Created attachment 938181 [details]
File: environ

Comment 6 lonelywoolf 2014-09-16 18:10:29 UTC
Created attachment 938182 [details]
File: limits

Comment 7 lonelywoolf 2014-09-16 18:10:30 UTC
Created attachment 938183 [details]
File: maps

Comment 8 lonelywoolf 2014-09-16 18:10:32 UTC
Created attachment 938184 [details]
File: open_fds

Comment 9 lonelywoolf 2014-09-16 18:10:33 UTC
Created attachment 938185 [details]
File: proc_pid_status

Comment 10 lonelywoolf 2014-09-16 18:10:35 UTC
Created attachment 938186 [details]
File: var_log_messages

Comment 11 Brian Lane 2014-09-16 21:53:08 UTC
Can you reproduce this every time? What does the output of 'parted -m -s /dev/sda p' look like? If that also crashes, how about gdisk or fdisk?

It looks to me like you may have run out of memory. xrealloc should pretty much never fail, and in this case it was only asking for 1624 bytes.

Comment 12 lonelywoolf 2014-09-17 00:46:34 UTC
reproducible every time. [root@localhost woolf]# parted -m -s /dev/sda p
BYT;
/dev/sda:500GB:scsi:512:4096:gpt:ATA Hitachi HTS54505:;
1:1049kB:525MB:524MB:ntfs:Basic data partition:скрытый, diag;
2:525MB:840MB:315MB:fat32:￐ᄀ￐ᄌ￑チ￑ツ￐ᄉ￐ᄐ￐ᄑ￑ヒ￐ᄍ ￑タ￐ᄚ￐ᄋ￐ᄡ￐ᄉ￐ᄏ EFI:загрузочный, esp;
3:840MB:974MB:134MB::Microsoft reserved partition:msftres;
4:974MB:270GB:269GB:ntfs:Basic data partition:msftdata;
5:270GB:271GB:472MB:ntfs:Project-Id-Version: parted 3.1.90
Report-Msgid-Bugs-To: bug-parted
POT-Creation-Date: 2014-07-28 23:04-0400
PO-Revision-Date: 2014-07-05 12:52+0400
Last-Translator: Yuri Kozlov <yuray>
Language-Team: Russian <gnu>
Language: ru
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Generator: Lokalize 1.5
Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);
:скрытый, diag;
8:271GB:271GB:524MB:ext4:Project-Id-Version: parted 3.1.90
Report-Msgid-Bugs-To: bug-parted
POT-Creation-Date: 2014-07-28 23:04-0400
PO-Revision-Date: 2014-07-05 12:52+0400
Last-Translator: Yuri Kozlov <yuray>
Language-Team: Russian <gnu>
Language: ru
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Generator: Lokalize 1.5
Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);
:msftdata;
9:271GB:477GB:206GB::Project-Id-Version: parted 3.1.90
Report-Msgid-Bugs-To: bug-parted
POT-Creation-Date: 2014-07-28 23:04-0400
PO-Revision-Date: 2014-07-05 12:52+0400
Last-Translator: Yuri Kozlov <yuray>
Language-Team: Russian <gnu>
Language: ru
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Generator: Lokalize 1.5
Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);
:lvm;
6:477GB:499GB:22,3GB:ntfs:Basic data partition:скрытый, diag;
7:499GB:500GB:1074MB:fat32:Basic data partition:скрытый, diag;

It isn't crashed with parted -m -s /dev/sda p

Comment 13 lonelywoolf 2014-09-17 00:55:07 UTC
[root@localhost woolf]# free -m
             total       used       free     shared    buffers     cached
Mem:          7657       1520       6137         90         40        615
-/+ buffers/cache:        863       6793
Swap:         7823          0       7823
[root@localhost woolf]#

Comment 14 Brian Lane 2014-09-17 16:23:20 UTC
The 'Project-Id-Version:' stuff is actually in the output from -m? That looks like a translation is messed up so maybe that's part of the problem.

Could you grab the first 34 sectors and attach them here?

dd if=/dev/sda of=disk.img bs=512 count=34

Hopefully I can use that to reproduce it here.

Comment 15 lonelywoolf 2014-09-20 06:21:55 UTC
Yes, stuff is actually in the output. Just tested after reboot.

[root@localhost woolf]# free
             total       used       free     shared    buffers     cached
Mem:       7841624    2092420    5749204      69640      93480     890688
-/+ buffers/cache:    1108252    6733372
Swap:      8011772      17992    7993780
[root@localhost woolf]# free -m
             total       used       free     shared    buffers     cached
Mem:          7657       2042       5614         67         91        869
-/+ buffers/cache:       1082       6575
Swap:         7823         17       7806
[root@localhost woolf]#

Comment 16 lonelywoolf 2014-09-20 06:22:50 UTC
Created attachment 939478 [details]
dd if=/dev/sda of=disk.img bs=512 count=34

Comment 17 Brian Lane 2014-09-30 18:45:03 UTC
Can you create a disk.img that reproduces this using just parted commands? Or does it only happen on sda?

Comment 18 lonelywoolf 2014-10-03 03:01:14 UTC
Yes, a disk.img was reprodused thus bug. Just do full image. And I was created on clean HDD the same partition table an bug was not reproduced. When I was clone HDD - nug reproduced. I think, it's something with my partition table, because there have some software such as Samsung recovery, Windows 10 and etc. Don't know what may be related.

Comment 19 Brian Lane 2015-04-30 19:02:57 UTC
I am unable to reproduce this, and others don't appear to be hitting it so I'm going to close it for now.