From unknown Wed Jun 18 23:10:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35432 <35432@debbugs.gnu.org> To: bug#35432 <35432@debbugs.gnu.org> Subject: Status: [3.2] Crash on select Reply-To: bug#35432 <35432@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:10:29 +0000 retitle 35432 [3.2] Crash on select reassign 35432 parted submitter 35432 Nick Elsmore severity 35432 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 25 18:54:08 2019 Received: (at submit) by debbugs.gnu.org; 25 Apr 2019 22:54:08 +0000 Received: from localhost ([127.0.0.1]:59568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJnFn-00027b-PK for submit@debbugs.gnu.org; Thu, 25 Apr 2019 18:54:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJn79-0001ur-Fa for submit@debbugs.gnu.org; Thu, 25 Apr 2019 18:45:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:38826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJn74-0006L7-5u for submit@debbugs.gnu.org; Thu, 25 Apr 2019 18:45:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJn72-0005m5-G1 for bug-parted@gnu.org; Thu, 25 Apr 2019 18:45:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RECEIVED_FROM_WINDOWS_HOST,T_REMOTE_IMAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJn71-0006IK-4D for bug-parted@gnu.org; Thu, 25 Apr 2019 18:45:04 -0400 Received: from mail-eopbgr30078.outbound.protection.outlook.com ([40.107.3.78]:53054 helo=EUR03-AM5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJn70-0006Eh-J9 for bug-parted@gnu.org; Thu, 25 Apr 2019 18:45:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=WITEKIO.onmicrosoft.com; s=selector1-witekio-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c1wE02Pxyb6dCfQNEY/Ii28JHW4jaBdAYm14PsUUbXM=; b=DHlF84c6wWpVdFzXEcmEnPEGJH1MRrGotBZKG6FCIy5oeUlwYnefbiGRapm1Bsex2VxlYReiIIJMaRffoi2XDwvtQw52CRwN+JglCkmri8RV8oSWV0xrAsVlxShe6uwJzUyo+Qr7F8PNAQgM739v+wlMoQSwzTkxREf/BtsKN2k= Received: from VI1P192MB0351.EURP192.PROD.OUTLOOK.COM (52.134.21.149) by VI1P192MB0112.EURP192.PROD.OUTLOOK.COM (10.175.180.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 25 Apr 2019 22:44:58 +0000 Received: from VI1P192MB0351.EURP192.PROD.OUTLOOK.COM ([fe80::293c:97a2:3a63:6252]) by VI1P192MB0351.EURP192.PROD.OUTLOOK.COM ([fe80::293c:97a2:3a63:6252%2]) with mapi id 15.20.1835.010; Thu, 25 Apr 2019 22:44:58 +0000 From: Nick Elsmore To: "bug-parted@gnu.org" Subject: [3.2] Crash on select Thread-Topic: [3.2] Crash on select Thread-Index: AQHU+7eUEXVOMgpgEEaYt4L44gbR5A== Date: Thu, 25 Apr 2019 22:44:58 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nelsmore@witekio.com; x-originating-ip: [207.109.71.203] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9787c661-3a61-4081-bfea-08d6c9cfa508 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:VI1P192MB0112; x-ms-traffictypediagnostic: VI1P192MB0112: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-forefront-prvs: 0018A2705B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(39840400004)(376002)(396003)(366004)(189003)(199004)(2906002)(476003)(91956017)(2351001)(3846002)(68736007)(5640700003)(97736004)(6116002)(7736002)(2501003)(74316002)(7116003)(861006)(52536014)(8936002)(8676002)(6436002)(5660300002)(486006)(81156014)(66946007)(733005)(33656002)(64756008)(81166006)(73956011)(66446008)(66556008)(76116006)(66476007)(606006)(86362001)(6306002)(105004)(6916009)(14454004)(7696005)(256004)(14444005)(316002)(508600001)(9686003)(25786009)(19627405001)(26005)(6506007)(71200400001)(99286004)(71190400001)(66066001)(102836004)(55016002)(53936002)(236005)(54896002)(186003)(12620500001)(15398625002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1P192MB0112; H:VI1P192MB0351.EURP192.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: witekio.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: CC+o0EkvSq2pKU3nVZeEgslSJUu47YVthq0XuincJiLAKxSHsRdQn4NgpTGx/aHx8q6jp2461pnq9dee6FniKRg3F+WMasiPhzoA72qLBbWV1JhnLtcbqfHgabnaGj1YCqG4EyuGHhHYhoGHptRI2zw3WWD+igAB7ApTqRkO7XNRR86uHEVk25yjZkwGgQWVR6KLU/VJj167oUq3z96Ncwb6FG9yWRuWRz3v9MyM+uFLAr20DQS6AEmK3vo6msVM6mkVNBafIQNtd4xfjb9T8BCpYiVmuImbIMgwVhmVT2/GGPZaa5uwNfAlzL8jSpJY7ar4lvq/QGL6Qo7aLF1gR1VAhCd/x2GjGbNYnJnYFG8Qnqp16WTyn0h7M+7ObX3zNxwsMLQoqx54EEnnIDlM8PFosASuM3FklsHJ+KFhllc= Content-Type: multipart/alternative; boundary="_000_VI1P192MB0351313C899C506679D3A6AAD63D0VI1P192MB0351EURP_" MIME-Version: 1.0 X-OriginatorOrg: witekio.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9787c661-3a61-4081-bfea-08d6c9cfa508 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2019 22:44:58.2600 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 317e086a-301a-49af-9ea4-48a1c458b903 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1P192MB0112 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.3.78 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 25 Apr 2019 18:54:06 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) --_000_VI1P192MB0351313C899C506679D3A6AAD63D0VI1P192MB0351EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable parted crashes when I follow the below command history. I am able to repro= duce this issue. parted launches fine and selects fine in other configurat= ions. uname -a: Linux LINUX-Z370ITX 4.15.0-47-generic #50~16.04.1-Ubuntu SMP Fri Mar 15 16:= 06:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Command history: sudo parted help print print devices select /dev/sdc (parted) select /dev/sdc Backtrace has 14 calls on stack: 14: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7fc85b4c4e94= ] 13: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_init+0xd0) [0x7fc= 85b4cb9b0] 12: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_new+0x56) [0x7fc8= 5b4cba66] 11: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_exact+0xa8) [0x7f= c85b4cc338] 10: /lib/x86_64-linux-gnu/libparted.so.2(+0x22ba7) [0x7fc85b4dcba7] 9: /lib/x86_64-linux-gnu/libparted.so.2(+0x22c76) [0x7fc85b4dcc76] 8: /lib/x86_64-linux-gnu/libparted.so.2(+0xf8ba) [0x7fc85b4c98ba] 7: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_delete_all+0x62) [0x7fc8= 5b4ca442] 6: /lib/x86_64-linux-gnu/libparted.so.2(+0x21f59) [0x7fc85b4dbf59] 5: parted(+0x6a8b) [0x563c4c5fea8b] 4: parted(interactive_mode+0x120) [0x563c4c605000] 3: parted(main+0x1386) [0x563c4c5fe186] 2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fc85aca183= 0] 1: parted(_start+0x29) [0x563c4c5fe1e9] Assertion (max_size > 0) at ../../libparted/cs/constraint.c:71 in function = ped_constraint_init() failed. sudo parted /dev/sdc unit co print unit s print Model: SanDisk Cruzer (scsi) Disk /dev/sdc: 8004MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 16.4kB 8004MB 8004MB primary fat32 boot Model: SanDisk Cruzer (scsi) Disk /dev/sdc: 15633408s Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 32s 15633407s 15633376s primary fat32 boot [Logo Witekio Sept 17] Nick Elsmore Embedded Software Engineer [email] nelsmore@witekio.com [office] 415-328-3671 Witekio 3150 Richards Rd, Suite 210 Bellevue, WA 98005 www.witekio.com [Witekio carte de voeux 2019] Make your ideas grow in 2019! --_000_VI1P192MB0351313C899C506679D3A6AAD63D0VI1P192MB0351EURP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
parted crashes when I follow the below command history.  I am able to = reproduce this issue.  parted launches fine and selects fine in other = configurations. 

uname -a:
Linux LINUX-Z370ITX 4.15.0-47-generic #50~16.04.1-Ubuntu SMP Fri Mar 15 16:= 06:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Command history:
sudo parted
help
print
print devices
select /dev/sdc

(parted) select /dev/sdc             &n= bsp;                     =                
Backtrace has 14 calls on stack:
  14: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [= 0x7fc85b4c4e94]
  13: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_init= 3;0xd0) [0x7fc85b4cb9b0]
  12: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_new+= ;0x56) [0x7fc85b4cba66]
  11: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_exact&#= 43;0xa8) [0x7fc85b4cc338]
  10: /lib/x86_64-linux-gnu/libparted.so.2(+0x22ba7) [0x7fc85= b4dcba7]
  9: /lib/x86_64-linux-gnu/libparted.so.2(+0x22c76) [0x7fc85b= 4dcc76]
  8: /lib/x86_64-linux-gnu/libparted.so.2(+0xf8ba) [0x7fc85b4= c98ba]
  7: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_delete_all+= ;0x62) [0x7fc85b4ca442]
  6: /lib/x86_64-linux-gnu/libparted.so.2(+0x21f59) [0x7fc85b= 4dbf59]
  5: parted(+0x6a8b) [0x563c4c5fea8b]
  4: parted(interactive_mode+0x120) [0x563c4c605000]
  3: parted(main+0x1386) [0x563c4c5fe186]
  2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) = [0x7fc85aca1830]
  1: parted(_start+0x29) [0x563c4c5fe1e9]

Assertion (max_size > 0) at ../../libparted/cs/constraint.c:71 in functi= on ped_constraint_init() failed.

sudo parted /dev/sdc unit co print unit s print
Model: SanDisk Cruzer (scsi)
Disk /dev/sdc: 8004MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type &nb= sp;   File system  Flags
 1      16.4kB  8004MB  8004MB  pri= mary  fat32        boot

Model: SanDisk Cruzer (scsi)
Disk /dev/sdc: 15633408s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End        Size   &n= bsp;   Type     File system  Flags
 1      32s    15633407s  15633376s=  primary  fat32        boot


3D"Logo
Nick Elsmore
E= mbedded Software Engineer

3D"email" nelsmore@witekio.com
3D"office" 415-328-3671
Witekio
3150 Richards Rd,
Suite 210
Bellevue, WA 98005
www.witekio.com

              &= nbsp;     Make your ideas grow in 2019!<= br>

--_000_VI1P192MB0351313C899C506679D3A6AAD63D0VI1P192MB0351EURP_-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 10:09:34 2019 Received: (at 35432) by debbugs.gnu.org; 29 Apr 2019 14:09:34 +0000 Received: from localhost ([127.0.0.1]:39414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL6yM-0003ih-EQ for submit@debbugs.gnu.org; Mon, 29 Apr 2019 10:09:34 -0400 Received: from ec2-34-202-238-73.compute-1.amazonaws.com ([34.202.238.73]:48416 helo=vps.thesusis.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hL6yK-0003iT-L7 for 35432@debbugs.gnu.org; Mon, 29 Apr 2019 10:09:33 -0400 Received: from localhost (localhost [127.0.0.1]) by vps.thesusis.net (Postfix) with ESMTP id 55B272131C; Mon, 29 Apr 2019 10:09:27 -0400 (EDT) Received: from vps.thesusis.net ([IPv6:::1]) by localhost (ip-172-26-1-203.ec2.internal [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id ZW-ERvX5pDBY; Mon, 29 Apr 2019 10:09:26 -0400 (EDT) Received: by vps.thesusis.net (Postfix, from userid 1000) id B48612131B; Mon, 29 Apr 2019 10:09:26 -0400 (EDT) References: User-agent: mu4e 0.9.18; emacs 25.2.2 From: Phillip Susi To: Nick Elsmore Subject: Re: bug#35432: [3.2] Crash on select In-reply-to: Date: Mon, 29 Apr 2019 10:09:26 -0400 Message-ID: <87ef5kaoo9.fsf@vps.thesusis.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 35432 Cc: 35432@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.6 (/) This is probably specific to the old version of parted in 16.04. Please try upgrading to 18.04 or building parted yourself from git. Nick Elsmore writes: > parted crashes when I follow the below command history. I am able to reproduce this issue. parted launches fine and selects fine in other configurations. > > uname -a: > Linux LINUX-Z370ITX 4.15.0-47-generic #50~16.04.1-Ubuntu SMP Fri Mar 15 16:06:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux > > Command history: > sudo parted > help > print > print devices > select /dev/sdc > > (parted) select /dev/sdc > Backtrace has 14 calls on stack: > 14: /lib/x86_64-linux-gnu/libparted.so.2(ped_assert+0x44) [0x7fc85b4c4e94] > 13: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_init+0xd0) [0x7fc85b4cb9b0] > 12: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_new+0x56) [0x7fc85b4cba66] > 11: /lib/x86_64-linux-gnu/libparted.so.2(ped_constraint_exact+0xa8) [0x7fc85b4cc338] > 10: /lib/x86_64-linux-gnu/libparted.so.2(+0x22ba7) [0x7fc85b4dcba7] > 9: /lib/x86_64-linux-gnu/libparted.so.2(+0x22c76) [0x7fc85b4dcc76] > 8: /lib/x86_64-linux-gnu/libparted.so.2(+0xf8ba) [0x7fc85b4c98ba] > 7: /lib/x86_64-linux-gnu/libparted.so.2(ped_disk_delete_all+0x62) [0x7fc85b4ca442] > 6: /lib/x86_64-linux-gnu/libparted.so.2(+0x21f59) [0x7fc85b4dbf59] > 5: parted(+0x6a8b) [0x563c4c5fea8b] > 4: parted(interactive_mode+0x120) [0x563c4c605000] > 3: parted(main+0x1386) [0x563c4c5fe186] > 2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fc85aca1830] > 1: parted(_start+0x29) [0x563c4c5fe1e9] > > Assertion (max_size > 0) at ../../libparted/cs/constraint.c:71 in function ped_constraint_init() failed. > > sudo parted /dev/sdc unit co print unit s print > Model: SanDisk Cruzer (scsi) > Disk /dev/sdc: 8004MB > Sector size (logical/physical): 512B/512B > Partition Table: msdos > Disk Flags: > > Number Start End Size Type File system Flags > 1 16.4kB 8004MB 8004MB primary fat32 boot > > Model: SanDisk Cruzer (scsi) > Disk /dev/sdc: 15633408s > Sector size (logical/physical): 512B/512B > Partition Table: msdos > Disk Flags: > > Number Start End Size Type File system Flags > 1 32s 15633407s 15633376s primary fat32 boot > > > [Logo Witekio Sept 17] > Nick Elsmore > Embedded Software Engineer > > [email] nelsmore@witekio.com > [office] 415-328-3671 > Witekio > 3150 Richards Rd, > Suite 210 > Bellevue, WA 98005 > www.witekio.com > > [Witekio carte de voeux 2019] > > Make your ideas grow in 2019!