From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 29 12:43:26 2015 Received: (at submit) by debbugs.gnu.org; 29 Mar 2015 16:43:26 +0000 Received: from localhost ([127.0.0.1]:39759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcGJ3-0001Xx-Vx for submit@debbugs.gnu.org; Sun, 29 Mar 2015 12:43:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38676) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcCyW-00050d-2c for submit@debbugs.gnu.org; Sun, 29 Mar 2015 09:10:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcCyQ-00019n-1P for submit@debbugs.gnu.org; Sun, 29 Mar 2015 09:09:55 -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,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcCyP-00019c-V6 for submit@debbugs.gnu.org; Sun, 29 Mar 2015 09:09:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcCyO-00080W-TE for bug-parted@gnu.org; Sun, 29 Mar 2015 09:09:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcCyL-00018i-LA for bug-parted@gnu.org; Sun, 29 Mar 2015 09:09:52 -0400 Received: from prod-mail-xrelay02.akamai.com ([72.246.2.14]:39452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcCyL-00018Y-HB for bug-parted@gnu.org; Sun, 29 Mar 2015 09:09:49 -0400 Received: from prod-mail-xrelay02.akamai.com (localhost [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id D83E8285F3 for ; Sun, 29 Mar 2015 13:09:48 +0000 (GMT) Received: from prod-mail-relay07.akamai.com (prod-mail-relay07.akamai.com [172.17.121.112]) by prod-mail-xrelay02.akamai.com (Postfix) with ESMTP id C5DFD285F2 for ; Sun, 29 Mar 2015 13:09:48 +0000 (GMT) Received: from email.msg.corp.akamai.com (usma1ex-cas3.msg.corp.akamai.com [172.27.123.32]) by prod-mail-relay07.akamai.com (Postfix) with ESMTP id B327F80040 for ; Sun, 29 Mar 2015 13:09:48 +0000 (GMT) Received: from USMA1EX-DAG1MB1.msg.corp.akamai.com (172.27.123.101) by usma1ex-dag1mb5.msg.corp.akamai.com (172.27.123.105) with Microsoft SMTP Server (TLS) id 15.0.913.22; Sun, 29 Mar 2015 09:09:17 -0400 Received: from USMA1EX-DAG1MB1.msg.corp.akamai.com ([172.27.123.101]) by usma1ex-dag1mb1.msg.corp.akamai.com ([172.27.123.101]) with mapi id 15.00.0913.011; Sun, 29 Mar 2015 09:09:05 -0400 From: "Nugent, Bill" To: "bug-parted@gnu.org" Subject: Email bug report because web-based bug tracking tool is down Thread-Topic: Email bug report because web-based bug tracking tool is down Thread-Index: AQHQaiGIiJB46qLV5UC1ylPIHfqO3A== Date: Sun, 29 Mar 2015 13:09:04 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.8.150116 x-originating-ip: [172.19.4.172] Content-Type: multipart/alternative; boundary="_000_D13D71AD876F2Cwnugentakamaicom_" MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 29 Mar 2015 12:43:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --_000_D13D71AD876F2Cwnugentakamaicom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In case I forget I wanted to report a bug with parted where Control-C is tr= eated as an OK response. I was testing how parted handled a corrupt primar= y GPT and was rewarded with parted asking if I wanted to use the backup GPT= instead with the prompt: "OK/Cancel? " I typed Control-C and it took it as= an OK response. $ parted fu print unit s print unit chs print WARNING: You are not superuser. Watch out for permissions. Error: The primary GPT table is corrupt, but the backup appears OK, so that= will be used. parted: invalid token: unit OK/Cancel? ^C Model: (file) Disk /path/to/changed/fu: 4001GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 20.5kB 32.9MB 32.9MB FORBDLCS msftdata 2 32.9MB 500GB 500GB P2 msftdata 3 500GB 1000GB 500GB P3 msftdata 4 1000GB 1500GB 500GB P4 msftdata 5 1500GB 2000GB 500GB P5 msftdata 6 2000GB 2500GB 500GB P6 msftdata 7 2500GB 3000GB 500GB P7 msftdata 8 3000GB 3500GB 500GB P8 msftdata 9 3500GB 4000GB 500GB P9 msftdata Also was going to open an enhancement request for parted to force it to use= the backup GPT no matter what the state of the MBR and primary GPT. This = would be useful if case the MBR and/or primary GPT were corrupt (think: "dd= if=3D/dev/zero of=3D/dev/sdX bs=3D512 count 130" or something similar). Bill --_000_D13D71AD876F2Cwnugentakamaicom_ Content-Type: text/html; charset="us-ascii" Content-ID: <443354BF7FF50A4CB9D65336FD45C840@akamai.com> Content-Transfer-Encoding: quoted-printable
In case I forget I wanted to report a bug with parted where Control-C = is treated as an OK response.  I was testing how parted handled a corr= upt primary GPT and was rewarded with parted asking if I wanted to use the = backup GPT instead with the prompt: "OK/Cancel? " I typed Control-C and it took it as an OK response.

$ parted f= u print unit s print unit chs print

WARNING: Y= ou are not superuser.  Watch out for permissions.

Error: The= primary GPT table is corrupt, but the backup appears OK, so that will be u= sed.

parted: in= valid token: unit

OK/Cancel? ^C  &= nbsp;                    =                     &nbs= p;                

Model:&nbs= p; (file)

Disk /path= /to/changed/fu: 4001GB

Sector siz= e (logical/physical): 512B/512B

Partition = Table: gpt


Number&nbs= p; Start   End     Size    File system  Name&= nbsp;     Flags

 1&nb= sp;     20.5kB  32.9MB  32.9MB       &nb= sp;       FORBDLCS  msftdata

 2&nb= sp;     32.9MB  500GB   500GB       = ;         P2        msftdata

 3&nb= sp;     500GB   1000GB  500GB       = ;         P3        msftdata

 4&nb= sp;     1000GB  1500GB  500GB       = ;         P4        msftdata

 5&nb= sp;     1500GB  2000GB  500GB       = ;         P5        msftdata

 6&nb= sp;     2000GB  2500GB  500GB       = ;         P6        msftdata

 7&nb= sp;     2500GB  3000GB  500GB       = ;         P7        msftdata

 8&nb= sp;     3000GB  3500GB  500GB       = ;         P8        msftdata

 9&nb= sp;     3500GB  4000GB  500GB       = ;         P9        msftdata


Also was going to open an enhancement request for parted to force it t= o use the backup GPT no matter what the state of the MBR and primary GPT. &= nbsp;This would be useful if case the MBR and/or primary GPT were corrupt (= think: "dd if=3D/dev/zero of=3D/dev/sdX bs=3D512 count 130" or something similar).

Bill=
--_000_D13D71AD876F2Cwnugentakamaicom_-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 12:42:57 2015 Received: (at submit) by debbugs.gnu.org; 30 Mar 2015 16:42:57 +0000 Received: from localhost ([127.0.0.1]:40637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yccm8-0004q7-Rq for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:42:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39425) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yccm6-0004pu-Ak for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:42:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ycclx-0004GA-Bz for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:42:49 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycclx-0004G4-8m for submit@debbugs.gnu.org; Mon, 30 Mar 2015 12:42:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycclw-0002xO-8j for bug-parted@gnu.org; Mon, 30 Mar 2015 12:42:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ycclq-0004Dk-4N for bug-parted@gnu.org; Mon, 30 Mar 2015 12:42:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycclp-0004DJ-Rz for bug-parted@gnu.org; Mon, 30 Mar 2015 12:42:38 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2UGgacB008920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 30 Mar 2015 12:42:36 -0400 Received: from lister.brianlane.com (ovpn-113-119.phx2.redhat.com [10.3.113.119]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2UGgY2f007826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 30 Mar 2015 12:42:36 -0400 Date: Mon, 30 Mar 2015 09:42:34 -0700 From: "Brian C. Lane" To: bug-parted@gnu.org Subject: Re: bug#20225: Email bug report because web-based bug tracking tool is down Message-ID: <20150330164234.GG13638@lister.brianlane.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) On Sun, Mar 29, 2015 at 01:09:04PM +0000, Nugent, Bill wrote: > In case I forget I wanted to report a bug with parted where Control-C is treated as an OK response. I was testing how parted handled a corrupt primary GPT and was rewarded with parted asking if I wanted to use the backup GPT instead with the prompt: "OK/Cancel? " I typed Control-C and it took it as an OK response. > > > $ parted fu print unit s print unit chs print > > WARNING: You are not superuser. Watch out for permissions. > > Error: The primary GPT table is corrupt, but the backup appears OK, so that will be used. > > parted: invalid token: unit > > OK/Cancel? ^C > > Model: (file) > > Disk /path/to/changed/fu: 4001GB > > Sector size (logical/physical): 512B/512B > > Partition Table: gpt Thanks for the report, it looks like we've got some places where ped_exception_throw return values aren't being checked properly -- ^C should generate a PED_EXCEPTION_UNHANDLED and I see a number of places that don't take that into account. -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT) From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 16:13:32 2015 Received: (at 20225) by debbugs.gnu.org; 30 Mar 2015 20:13:32 +0000 Received: from localhost ([127.0.0.1]:40706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ycg3w-0001bh-7V for submit@debbugs.gnu.org; Mon, 30 Mar 2015 16:13:32 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:35220) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ycg3u-0001bT-5F for 20225@debbugs.gnu.org; Mon, 30 Mar 2015 16:13:30 -0400 Received: by qcfy6 with SMTP id y6so62363206qcf.2 for <20225@debbugs.gnu.org>; Mon, 30 Mar 2015 13:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jvejLIxlr+4IpPy1iq7aeV5VSBXftPGeIclUQT8xACI=; b=iL9k7pH+W87vB4SOWDoyZ9Hla7ybW4GVQkoFbQ0GESnBTErfPSHEop50K7wFRbF8v9 PbYscgtrsGErSTK2mIZNdkPci2hZhLHC7e0KXbgKlfCliesxIN6ZcO3XYSN3RR85S2ik l8D2GXV/7Cl1GL8fRCv4TgPXJ/6k1CxfPs5MBgMPrxYHIBBOHWvpfBYAOO3Y1ny5+oQU g5JFfMBSS+Ap0gszzIwVsADC7URcY0lwYdJ2HypYcIsuUREhc+ygpQHopdDXo3FdilUf R94qGIs/eBak6tUA+2sG1fmFSbJ549h1CFsh9r+fW6T6LQsXoSLm5phpx0mfSB2cBdoe /37Q== X-Received: by 10.55.22.213 with SMTP id 82mr69282626qkw.103.1427746404568; Mon, 30 Mar 2015 13:13:24 -0700 (PDT) Received: from [10.1.1.228] (fl-67-77-88-12.sta.embarqhsd.net. [67.77.88.12]) by mx.google.com with ESMTPSA id z93sm8428854qgd.45.2015.03.30.13.13.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 13:13:24 -0700 (PDT) Message-ID: <5519AE3C.7060401@ubuntu.com> Date: Mon, 30 Mar 2015 16:12:44 -0400 From: Phillip Susi User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "Brian C. Lane" , 20225@debbugs.gnu.org Subject: Re: bug#20225: Email bug report because web-based bug tracking tool is down References: <20150330164234.GG13638@lister.brianlane.com> In-Reply-To: <20150330164234.GG13638@lister.brianlane.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20225 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm not sure this isn't actually intentional. What should parted do when run in scripting mode? There all exceptions are unhandled, so a sane default action must be taken. I think this particular error really should be a warning, and the default is to proceed, using the backup copy. On 3/30/2015 12:42 PM, Brian C. Lane wrote: > On Sun, Mar 29, 2015 at 01:09:04PM +0000, Nugent, Bill wrote: >> In case I forget I wanted to report a bug with parted where >> Control-C is treated as an OK response. I was testing how parted >> handled a corrupt primary GPT and was rewarded with parted asking >> if I wanted to use the backup GPT instead with the prompt: >> "OK/Cancel? " I typed Control-C and it took it as an OK >> response. >> >> >> $ parted fu print unit s print unit chs print >> >> WARNING: You are not superuser. Watch out for permissions. >> >> Error: The primary GPT table is corrupt, but the backup appears >> OK, so that will be used. >> >> parted: invalid token: unit >> >> OK/Cancel? ^C >> >> Model: (file) >> >> Disk /path/to/changed/fu: 4001GB >> >> Sector size (logical/physical): 512B/512B >> >> Partition Table: gpt > > Thanks for the report, it looks like we've got some places where > ped_exception_throw return values aren't being checked properly -- > ^C should generate a PED_EXCEPTION_UNHANDLED and I see a number of > places that don't take that into account. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) iQEcBAEBAgAGBQJVGa48AAoJENRVrw2cjl5RjnMIALMtOsiRdqnKIMucQkZQMPcN 4TYCYY/Dc89jlkyVprpYjM0NjvKAvrrQYkl92CRZTevI1ghm4YkqIyy3o1bhLj53 ZD+nXo4ID1/IO0G51GjnRCcZWAiyKrNPxUUDlZVh7j4Ofw5m1Fsl3fjlaeJB7OLG DDKERQOlYYAtnSyti/qaVX3CYZkjJwBtCb0HZAainpBRFggE7L47fHw/OL3Lpdie HO/FgPBJbW6FKOHNPzInNwrVqblObIubXNaPyd0M4A0uqNjVuhMjtmjpMePwDR6b z0FnCTh6Xy+wL4Qj5PFY8k33Sksv3JQpMXBUlSzuzu8UfqOg6GH+csA4OLeLF7M= =J2Mr -----END PGP SIGNATURE-----