Subject: bug#19484: closed (Re: bug#19484: segfault: 'disk-set' on empty disk)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 13 Jan 2015 16:17:03 +0000

Your bug report

#19484: segfault: 'disk-set' on empty disk

which was filed against the parted package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19484: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19484
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#19484: segfault: 'disk-set' on empty disk
From: Phillip Susi <[email-masked]>
To: [email-masked], [email-masked]
Date: Tue, 13 Jan 2015 11:15:54 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

On 1/1/2015 3:22 PM, Hans Spath wrote:
> $ dd if=/dev/zero of=zero bs=1K count=1 1+0 records in 1+0 records
> out 1024 bytes (1.0 kB) copied, 0.000146148 s, 7.0 MB/s
> 
> $ parted zero disk_set WARNING: You are not superuser.  Watch out
> for permissions. Error: /home/user1/zero: unrecognised disk label
> 
> 
> You found a bug in GNU Parted! Here's what you have to do: [...] 
> Also include any additional information about your setup you 
> consider important.
> 
> Command History: Segmentation fault (core dumped)

Thanks.  It seems I made a silly typeo a while back.  I just pushed
the trivial fix for this.

Subject: segfault: 'disk-set' on empty disk
From: Hans Spath <[email-masked]>
To: [email-masked]
Date: Thu, 01 Jan 2015 21:22:52 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

$ dd if=/dev/zero of=zero bs=1K count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.000146148 s, 7.0 MB/s

$ parted zero disk_set
WARNING: You are not superuser.  Watch out for permissions.
Error: /home/user1/zero: unrecognised disk label

You found a bug in GNU Parted! Here's what you have to do:
[...]
Also include any additional information about your setup you
consider important.
                                                                         
Command History:
Segmentation fault (core dumped)

$ parted --version | head -1
parted (GNU parted) 3.2

$ uname -a
Linux host1 3.17.6-1-ARCH #1 SMP PREEMPT Sun Dec 7 23:43:32 UTC 2014
x86_64 GNU/Linux

$ valgrind parted zero disk_set |& head -20
==14358== Memcheck, a memory error detector
[...]
Error: /home/user1/zero: unrecognised disk label
==14358== Invalid read of size 8
==14358==    at 0x4E458D0: ped_disk_is_flag_available (in
/usr/lib/libparted.so.2.0.1)
==14358==    by 0x40B676: command_line_get_disk_flag (in /usr/bin/parted)
==14358==    by 0x40674B: ??? (in /usr/bin/parted)
==14358==    by 0x40C8B1: non_interactive_mode (in /usr/bin/parted)
==14358==    by 0x405F47: main (in /usr/bin/parted)
==14358==  Address 0x8 is not stack'd, malloc'd or (recently) free'd
==14358==