GNU logs - #23296, boring messages


Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#23296: parted 3.2 (libparted) , mklabel sun, bug, sparc64
Resent-From: Anatoly Pugachev <matorola@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Fri, 15 Apr 2016 15:40:01 +0000
Resent-Message-ID: <handler.23296.B.146073477316463 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 23296
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: 23296 <at> debbugs.gnu.org
Cc: debian-sparc <debian-sparc@HIDDEN>
X-Debbugs-Original-To: bug-parted@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.146073477316463
          (code B ref -1); Fri, 15 Apr 2016 15:40:01 +0000
Received: (at submit) by debbugs.gnu.org; 15 Apr 2016 15:39:33 +0000
Received: from localhost ([127.0.0.1]:36879 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ar5qH-0004HS-7Z
	for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 11:39:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46676)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <matorola@HIDDEN>) id 1ar3tu-0001H6-9J
 for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 09:35:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <matorola@HIDDEN>) id 1ar3to-0002wB-81
 for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 09:35:05 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50338)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <matorola@HIDDEN>) id 1ar3to-0002w7-4T
 for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 09:35:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37646)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <matorola@HIDDEN>) id 1ar3tn-00030R-5c
 for bug-parted@HIDDEN; Fri, 15 Apr 2016 09:35:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <matorola@HIDDEN>) id 1ar3tm-0002us-Af
 for bug-parted@HIDDEN; Fri, 15 Apr 2016 09:35:03 -0400
Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]:33617)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <matorola@HIDDEN>) id 1ar3tm-0002uU-5f
 for bug-parted@HIDDEN; Fri, 15 Apr 2016 09:35:02 -0400
Received: by mail-vk0-x236.google.com with SMTP id n62so31005511vkb.0
 for <bug-parted@HIDDEN>; Fri, 15 Apr 2016 06:35:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:cc;
 bh=cziumbK/pVK5xJfMyztPcuO1sRZBvnero1Dho58YfEQ=;
 b=x4GnsmfhIrx5kZn3BXasP6vObXtT0NSAROY9c+AlK7SxiW+uPzR0feQGFeCbaNa7Kk
 MhnotoRkw2gxWxFl2CstifwQv+DadF91P0YUnckvY8SM3W/uZURjOAXU21TFXqKSVZIp
 3myhgWfyUPOZh8XYDRNdbHRPYL4gljuIMtQ4cAfYRtnBeJsNTF1R1jeVQDnoCIhrS3yM
 lIk3aGLLC7xnpYhYB9y2KXXxLyk+JROp+WRCEMjVX58VGjprloZHE6cl3DdxmJhIa4y9
 +gsmIMja0Myjtwoi/oofc04mImUQyGwAUyocFX3VKGDj+/dcvUXii/hzZ0UIcdSWi4k2
 M5kg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc;
 bh=cziumbK/pVK5xJfMyztPcuO1sRZBvnero1Dho58YfEQ=;
 b=HN0prMlBRQh4tr2OPU+q4mGkOWCOOXvoxPkdK93RvseNmi7JWmnjKnDjb/NWaaEF6s
 2Yg+NwJ85hNft5gI7b3VhlkwZ4OqmBFM5hQtN+6U7FE9XW7b294jUq/nZcqhwNSSJQTc
 cRnsCljwZ/HTVgWRvVIqeW0qz1is6hjVjoZuhJKlm8FbvYwvW3cYxIbVID7FiCaXMdYa
 MJIONlRP2XYzoghrUA28Tcd79KDLj2cpr0x9KGjXfTPGYMJ4ybFuQNd7wphMyMzpuJpV
 eOLyYHmJITQLe9DwvTO+PVbFBJinvhX6XTJLjyNfr8CKozIieaOkD8jKztIDrFFSmxZe
 5ltw==
X-Gm-Message-State: AOPr4FUPDPbTf76aWP9sKtWJ3yS0S4CmEG7co4BYgHTYlbqpsWe+52ol1WPK8htWPA5RwEF4rkQVriT0Sh3Uug==
MIME-Version: 1.0
X-Received: by 10.31.41.195 with SMTP id p186mr9368656vkp.20.1460727300242;
 Fri, 15 Apr 2016 06:35:00 -0700 (PDT)
Received: by 10.31.141.23 with HTTP; Fri, 15 Apr 2016 06:35:00 -0700 (PDT)
Date: Fri, 15 Apr 2016 16:35:00 +0300
Message-ID: <CADxRZqxk1WBMDd0HRMj_tk1x2k5e7bWFa6-9RhQXPRWqdnu0cA@HIDDEN>
From: Anatoly Pugachev <matorola@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Mailman-Approved-At: Fri, 15 Apr 2016 11:39:32 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Hello!

I can't make sun partition table with parted over existing one on
debian sparc64 physical machine Sun SPARC T5120:


root@nvg5120:~# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit co
(parted) print
Warning: The disk CHS geometry (17848,255,63) reported by the
operating system does not match the geometry stored on the disk label
(65535,16,273).
Ignore/Cancel? I
Model: SEAGATE ST914602SSUN146G (scsi)
Disk /dev/sda: 147GB
Sector size (logical/physical): 512B/512B
Partition Table: sun
Disk Flags:

Number  Start   End     Size    File system  Flags
 1      0.00B   16.1GB  16.1GB  sun-ufs      root
 2      16.1GB  33.3GB  17.2GB
 4      33.3GB  49.4GB  16.1GB  sun-ufs
 5      49.4GB  146GB   97.0GB  sun-ufs

(parted) unit s
(parted) print
Model: SEAGATE ST914602SSUN146G (scsi)
Disk /dev/sda: 286739329s
Sector size (logical/physical): 512B/512B
Partition Table: sun
Disk Flags:

Number  Start      End         Size        File system  Flags
 1      0s         31458335s   31458336s   sun-ufs      root
 2      31458336s  65013311s   33554976s
 4      65013312s  96471647s   31458336s   sun-ufs
 5      96471648s  285837551s  189365904s  sun-ufs

(parted)
(parted) mklabel sun
Warning: The existing disk label on /dev/sda will be destroyed and all
data on this disk will be lost. Do you want to continue?
Yes/No? Yes
Backtrace has 1 calls on stack:
  1: /lib/sparc64-linux-gnu/libparted.so.2(ped_assert+0x2c) [0xffff8001001344c4]

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

Assertion (bios_geom->cylinders == (PedSector) (dev->length /
cyl_size)) at ../../../libparted/labels/sun.c:190 in function
sun_alloc() failed.

Aborted



PS: OS is Linux debian sid/unstable (kernel 4.5 , glibc 2.22) sparc64.




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Anatoly Pugachev <matorola@HIDDEN>
Subject: bug#23296: Acknowledgement (parted 3.2 (libparted) , mklabel sun,
 bug, sparc64)
Message-ID: <handler.23296.B.146073477316463.ack <at> debbugs.gnu.org>
References: <CADxRZqxk1WBMDd0HRMj_tk1x2k5e7bWFa6-9RhQXPRWqdnu0cA@HIDDEN>
X-Gnu-PR-Message: ack 23296
X-Gnu-PR-Package: parted
Reply-To: 23296 <at> debbugs.gnu.org
Date: Fri, 15 Apr 2016 15:40:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-parted@HIDDEN

If you wish to submit further information on this problem, please
send it to 23296 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
23296: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D23296
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#23296: parted 3.2 (libparted) , mklabel sun, bug, sparc64
Resent-From: Phillip Susi <psusi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Mon, 18 Apr 2016 22:43:01 +0000
Resent-Message-ID: <handler.23296.B23296.146101936613194 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 23296
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: Anatoly Pugachev <matorola@HIDDEN>, 23296 <at> debbugs.gnu.org
Cc: debian-sparc <debian-sparc@HIDDEN>
Received: via spool by 23296-submit <at> debbugs.gnu.org id=B23296.146101936613194
          (code B ref 23296); Mon, 18 Apr 2016 22:43:01 +0000
Received: (at 23296) by debbugs.gnu.org; 18 Apr 2016 22:42:46 +0000
Received: from localhost ([127.0.0.1]:39732 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1asHsU-0003Qk-8F
	for submit <at> debbugs.gnu.org; Mon, 18 Apr 2016 18:42:46 -0400
Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.232]:11489
 helo=cdptpa-oedge-vip.email.rr.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psusi@HIDDEN>) id 1asHsS-0003QY-Vj
 for 23296 <at> debbugs.gnu.org; Mon, 18 Apr 2016 18:42:45 -0400
Received: from [72.239.162.168] ([72.239.162.168:45378] helo=[192.168.1.142])
 by cdptpa-oedge02 (envelope-from <psusi@HIDDEN>)
 (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP
 id 84/0E-14056-ED265175; Mon, 18 Apr 2016 22:42:39 +0000
References: <CADxRZqxk1WBMDd0HRMj_tk1x2k5e7bWFa6-9RhQXPRWqdnu0cA@HIDDEN>
From: Phillip Susi <psusi@HIDDEN>
Message-ID: <571562DE.7030309@HIDDEN>
Date: Mon, 18 Apr 2016 18:42:38 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <CADxRZqxk1WBMDd0HRMj_tk1x2k5e7bWFa6-9RhQXPRWqdnu0cA@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-RR-Connecting-IP: 107.14.168.130:25
X-Cloudmark-Score: 0
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 04/15/2016 09:35 AM, Anatoly Pugachev wrote:
> You found a bug in GNU Parted! Here's what you have to do: ....
> 
> Assertion (bios_geom->cylinders == (PedSector) (dev->length / 
> cyl_size)) at ../../../libparted/labels/sun.c:190 in function 
> sun_alloc() failed.

I don't know how the sun disklabel works, so it might blow up in a
shower of sparks, but you might try commenting out that assert and see
if it works.  See if you can manipulate the existing partition table
too, before creating a new one.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCgAGBQJXFWLeAAoJEBB5UWFcu6UWFm4H/39y6Ey5Kyztl3bTa9n8Rk33
P5f2ordS7lvi8hwW2rhWI6Ba5BxMdVjlOIHQ4F5LtNyox+iyMz/Z5ifNaS8jM2La
G7fz0qf8tuf803XzyaJgqBboHYyGeTvYmcS+IBgKIJExhmosS6VVQ5iTWfYsktoG
0p2D99VXA0w+fFyynM27MACT+Bo3/ktIyJ5V0y6KJU2YrKSCirUPrIPmxnZaK30Y
AqVca3d/K2lvmETnK5GGviaBzWty6eE1DF1tor/YrAzXgxTfKNMELEuvZmDlyZOM
yWJMNBiyFQKmuoK98FIRTdqQn+S4sKd4BlLD0qQmeCY7nSNag/u1/E+V+TsgGM0=
=dNCf
-----END PGP SIGNATURE-----




Message sent to bug-parted@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#23296: parted 3.2 (libparted) , mklabel sun, bug, sparc64
Resent-From: Anatoly Pugachev <matorola@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-parted@HIDDEN
Resent-Date: Tue, 26 Apr 2016 15:24:02 +0000
Resent-Message-ID: <handler.23296.B23296.1461684196882 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 23296
X-GNU-PR-Package: parted
X-GNU-PR-Keywords: 
To: Phillip Susi <psusi@HIDDEN>
Cc: 23296 <at> debbugs.gnu.org, debian-sparc <debian-sparc@HIDDEN>
Received: via spool by 23296-submit <at> debbugs.gnu.org id=B23296.1461684196882
          (code B ref 23296); Tue, 26 Apr 2016 15:24:02 +0000
Received: (at 23296) by debbugs.gnu.org; 26 Apr 2016 15:23:16 +0000
Received: from localhost ([127.0.0.1]:48923 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1av4pY-0000EA-Bw
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2016 11:23:16 -0400
Received: from mail-vk0-f42.google.com ([209.85.213.42]:36696)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <matorola@HIDDEN>) id 1av4pV-0000Dw-Ok
 for 23296 <at> debbugs.gnu.org; Tue, 26 Apr 2016 11:23:14 -0400
Received: by mail-vk0-f42.google.com with SMTP id n67so20599327vkf.3
 for <23296 <at> debbugs.gnu.org>; Tue, 26 Apr 2016 08:23:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc; bh=sX5c4UoWDOQH6tMkg0aZyiA+DbazVq1bM7XBtu6dhGg=;
 b=Te3nUN+CFmbgSDrNhMNhu/MWUQ9+Bt+2cUbn8zJuV3DHmS8nBhxW1ungw6dP2vrSWr
 YnEuJv1Uo6ViBkL2btouGyGhGS3jMVUOzfDTVkRVtBN/FmG+g5FwuUVRpxIlrQWUBShC
 Em93Dm6eq2zF50X3bVbGBSe87szOdbcHYSnF1csJBRWiIuTimthN/aandKsPMUGkUnYb
 RzMvMoDn+cnZOY2fEyKjO80oe3ePV3zlAPs3+0sOyoOZvrnlOkOjVTSidqw+7b6OUom2
 FNPtGJKKN7fkYqtACSCEZx04xcMzKchosfylGFQEcbiJoxzK+tjbLpWKFQsN14RQvFxl
 NnPg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc;
 bh=sX5c4UoWDOQH6tMkg0aZyiA+DbazVq1bM7XBtu6dhGg=;
 b=OSSnPB7QKxvQaCq+brzXjDZTKmw0An0d6q6I8D2HX29povNRPB/2/EQF8EQaSLg2YR
 McP1KcG9OtXhOjbZY23EYWI5b+FRFjpxirpRNiWCcYDzmx77Yc+sEGvfm9djNYn6Z7SU
 e1uqV3ZFSZx4DNw9yLr4rMLTaqBsMeYoCz0NTour/MoCf6aZIY6uA43ZwUuOB1EbAoQa
 8nkCUuCeRwkjUUPvVfpyTS5HVdntaZF7wN5rxksUWP+quaZprT2WQxcIJ8Me4vbzV8IN
 55txksQyGYEBuAbu7bVmzxGVJMVXuA5lcBg2id0kdr4V9bRxGxFwOY4I097YCd9Art/Q
 Y8Ow==
X-Gm-Message-State: AOPr4FVaQBhvcvibdL+6jo7t8VFmyn22rQuXLcfg/ywawmEwvOmrFpD8gn9Ercj8MHrkyikSO3K5QVmskN/FPQ==
MIME-Version: 1.0
X-Received: by 10.159.39.106 with SMTP id a97mr1580303uaa.133.1461684188150;
 Tue, 26 Apr 2016 08:23:08 -0700 (PDT)
Received: by 10.31.141.23 with HTTP; Tue, 26 Apr 2016 08:23:08 -0700 (PDT)
In-Reply-To: <571562DE.7030309@HIDDEN>
References: <CADxRZqxk1WBMDd0HRMj_tk1x2k5e7bWFa6-9RhQXPRWqdnu0cA@HIDDEN>
 <571562DE.7030309@HIDDEN>
Date: Tue, 26 Apr 2016 18:23:08 +0300
Message-ID: <CADxRZqzyG4V6x-HAqh-M94CT=gDhu04zc+s5mFByEBsDtc6gtg@HIDDEN>
From: Anatoly Pugachev <matorola@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On Tue, Apr 19, 2016 at 1:42 AM, Phillip Susi <psusi@HIDDEN> wrote:
> On 04/15/2016 09:35 AM, Anatoly Pugachev wrote:
>> You found a bug in GNU Parted! Here's what you have to do: ....
>>
>> Assertion (bios_geom->cylinders == (PedSector) (dev->length /
>> cyl_size)) at ../../../libparted/labels/sun.c:190 in function
>> sun_alloc() failed.
>
> I don't know how the sun disklabel works, so it might blow up in a
> shower of sparks, but you might try commenting out that assert and see
> if it works.  See if you can manipulate the existing partition table
> too, before creating a new one.

just tried to create a new partition and remove it after - works.

tried to compile parted.git , but it failed:

$ git clone git://git.savannah.gnu.org/parted.git
$ ./bootstrap
$ ./configure && make
...
make[4]: Entering directory '/home/mator/parted.git/libparted/labels'
  CC       aix.lo
aix.c: In function 'aix_label_magic_get':
aix.c:45:10: error: cast increases required alignment of target type
[-Werror=cast-align]
  return *(unsigned int *)label;
          ^
aix.c: In function 'aix_label_magic_set':
aix.c:51:3: error: cast increases required alignment of target type
[-Werror=cast-align]
  *(unsigned int *)label = magic_val;
   ^
cc1: all warnings being treated as errors
Makefile:1238: recipe for target 'aix.lo' failed
make[4]: *** [aix.lo] Error 1
make[4]: Leaving directory '/home/mator/parted.git/libparted/labels'
Makefile:1151: recipe for target 'all' failed
make[3]: *** [all] Error 2
...

mator@deb4g:~/parted.git$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/sparc64-linux-gnu/5/lto-wrapper
Target: sparc64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
5.3.1-13' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++
--prefix=/usr --program-suffix=-5 --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libquadmath --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-sparc64/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-sparc64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-sparc64
--with-arch-directory=sparc64
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch --enable-targets=all --with-long-double-128
--enable-multilib --enable-checking=release --build=sparc64-linux-gnu
--host=sparc64-linux-gnu --target=sparc64-linux-gnu
Thread model: posix
gcc version 5.3.1 20160323 (Debian 5.3.1-13)



the only way to compile parted for me , is to pass
--disable-gcc-warnings to configure.
Creating a new partition and removing it with git compiled parted works.

Commenting out PED_ASSERT at libparted/labels/sun.c , line 189 , and
compiling again, allow to create sun/gpt/msdos labels.

(after msdos label has been created)

(parted) p
Model: SEAGATE ST914602SSUN146G (scsi)
Disk /dev/sda: 147GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End  Size  Type  File system  Flags

(parted) mklabel
New disk label type? Sun
Warning: The existing disk label on /dev/sda will be destroyed and all
data on this disk will be lost. Do you want to continue?
Yes/No? Yes
Warning: The disk has 562233 cylinders, which is greater than the
maximum of 65536.
(parted) p
Model: SEAGATE ST914602SSUN146G (scsi)
Disk /dev/sda: 147GB
Sector size (logical/physical): 512B/512B
Partition Table: sun
Disk Flags:

Number  Start  End  Size  File system  Flags

(parted)



Thanks for help.





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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