GNU bug report logs -
#35306
crash in do_resizepart function
Previous Next
Reported by: Jozef Mlich <imlich <at> fit.vutbr.cz>
Date: Wed, 17 Apr 2019 14:48:01 UTC
Severity: normal
Done: "Brian C. Lane" <bcl <at> redhat.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35306 in the body.
You can then email your comments to 35306 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#35306
; Package
parted
.
(Wed, 17 Apr 2019 14:48:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jozef Mlich <imlich <at> fit.vutbr.cz>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Wed, 17 Apr 2019 14:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I was trying to resize partition in image file and it ended with crash
/usr/sbin/parted ./rootfs.img resizepart 1
(gdb) bt full
#0 0x00007ffff7d79123 in free () from /lib64/libc.so.6
No symbol table info available.
#1 0x000055555555e00e in do_resizepart (dev=0x7fffffffd128,
diskp=<optimized out>) at parted.c:1569
disk = 0x555555596df0
part = 0x555555597fa0
start = 0
end = 7958736
oldend = 7958736
range_end = 0x555555596c00
constraint = <optimized out>
rc = 0
end_input = 0x55555555f9b1 <str_list_match_any+65>
"\211\350[]A\\\303\017\037\204"
#2 0x0000555555562422 in non_interactive_mode (dev=0x7fffffffd128,
disk=0x7fffffffd130, cmd_list=<optimized out>, argc=<optimized out>,
argv=<optimized out>) at ui.c:1655
word = 0x555555599320 "\340\203YUUU"
i = <optimized out>
cmd = 0x555555570340
#3 0x000055555555acc3 in main (argc=2, argv=0x7fffffffd268) at
parted.c:2348
dev = <optimized out>
diskp = 0x555555596df0
status = <optimized out>
I am using fedora 29 package parted-3.2-36.fc29.x86_64
-- Jozef Mlich <imlich <at> fit.vutbr.cz>
Information forwarded
to
bug-parted <at> gnu.org
:
bug#35306
; Package
parted
.
(Tue, 23 Apr 2019 17:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 35306 <at> debbugs.gnu.org (full text, mbox):
Can you provide a copy of your partition table so that we can try to
reproduce this?
Jozef Mlich writes:
> Hi,
>
> I was trying to resize partition in image file and it ended with crash
>
> /usr/sbin/parted ./rootfs.img resizepart 1
> (gdb) bt full
> #0 0x00007ffff7d79123 in free () from /lib64/libc.so.6
> No symbol table info available.
> #1 0x000055555555e00e in do_resizepart (dev=0x7fffffffd128,
Information forwarded
to
bug-parted <at> gnu.org
:
bug#35306
; Package
parted
.
(Tue, 23 Apr 2019 18:50:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 35306 <at> debbugs.gnu.org (full text, mbox):
On Tue, Apr 23, 2019 at 01:53:41PM -0400, Phillip Susi wrote:
> Can you provide a copy of your partition table so that we can try to
> reproduce this?
>
> Jozef Mlich writes:
>
> > Hi,
> >
> > I was trying to resize partition in image file and it ended with crash
> >
> > /usr/sbin/parted ./rootfs.img resizepart 1
> > (gdb) bt full
> > #0 0x00007ffff7d79123 in free () from /lib64/libc.so.6
> > No symbol table info available.
> > #1 0x000055555555e00e in do_resizepart (dev=0x7fffffffd128,
It's easy to reproduce, just run it like this:
parted -s ./disk.img resizepart 1
Or without -s and hit enter at the default prompt. Something is wrong
with the handling of the *end_input I think (looking into it now).
--
Brian C. Lane (PST8PDT)
Reply sent
to
"Brian C. Lane" <bcl <at> redhat.com>
:
You have taken responsibility.
(Tue, 23 Apr 2019 21:22:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jozef Mlich <imlich <at> fit.vutbr.cz>
:
bug acknowledged by developer.
(Tue, 23 Apr 2019 21:22:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 35306-close <at> debbugs.gnu.org (full text, mbox):
On Wed, Apr 17, 2019 at 01:32:18PM +0200, Jozef Mlich wrote:
> Hi,
>
> I was trying to resize partition in image file and it ended with crash
>
> /usr/sbin/parted ./rootfs.img resizepart 1
> (gdb) bt full
> #0 0x00007ffff7d79123 in free () from /lib64/libc.so.6
> No symbol table info available.
> #1 0x000055555555e00e in do_resizepart (dev=0x7fffffffd128,
> diskp=<optimized out>) at parted.c:1569
> disk = 0x555555596df0
> part = 0x555555597fa0
> start = 0
> end = 7958736
> oldend = 7958736
> range_end = 0x555555596c00
> constraint = <optimized out>
> rc = 0
> end_input = 0x55555555f9b1 <str_list_match_any+65>
> "\211\350[]A\\\303\017\037\204"
> #2 0x0000555555562422 in non_interactive_mode (dev=0x7fffffffd128,
> disk=0x7fffffffd130, cmd_list=<optimized out>, argc=<optimized out>,
> argv=<optimized out>) at ui.c:1655
> word = 0x555555599320 "\340\203YUUU"
> i = <optimized out>
> cmd = 0x555555570340
> #3 0x000055555555acc3 in main (argc=2, argv=0x7fffffffd268) at
> parted.c:2348
> dev = <optimized out>
> diskp = 0x555555596df0
> status = <optimized out>
>
>
> I am using fedora 29 package parted-3.2-36.fc29.x86_64
patches are on the parted-devel mailing list. Ends up it was an
uninitialized pointer.
--
Brian C. Lane (PST8PDT)
Information forwarded
to
bug-parted <at> gnu.org
:
bug#35306
; Package
parted
.
(Wed, 24 Apr 2019 14:45:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 35306-close <at> debbugs.gnu.org (full text, mbox):
On Tue, 2019-04-23 at 14:20 -0700, Brian C. Lane wrote:
> On Wed, Apr 17, 2019 at 01:32:18PM +0200, Jozef Mlich wrote:
> > Hi,
> >
> > I was trying to resize partition in image file and it ended with
> > crash
> >
> > /usr/sbin/parted ./rootfs.img resizepart 1
> > (gdb) bt full
> > #0 0x00007ffff7d79123 in free () from /lib64/libc.so.6
> > No symbol table info available.
> > #1 0x000055555555e00e in do_resizepart (dev=0x7fffffffd128,
> > diskp=<optimized out>) at parted.c:1569
> > disk = 0x555555596df0
> > part = 0x555555597fa0
> > start = 0
> > end = 7958736
> > oldend = 7958736
> > range_end = 0x555555596c00
> > constraint = <optimized out>
> > rc = 0
> > end_input = 0x55555555f9b1 <str_list_match_any+65>
> > "\211\350[]A\\\303\017\037\204"
> > #2 0x0000555555562422 in non_interactive_mode (dev=0x7fffffffd128,
> > disk=0x7fffffffd130, cmd_list=<optimized out>, argc=<optimized
> > out>,
> > argv=<optimized out>) at ui.c:1655
> > word = 0x555555599320 "\340\203YUUU"
> > i = <optimized out>
> > cmd = 0x555555570340
> > #3 0x000055555555acc3 in main (argc=2, argv=0x7fffffffd268) at
> > parted.c:2348
> > dev = <optimized out>
> > diskp = 0x555555596df0
> > status = <optimized out>
> >
> >
> > I am using fedora 29 package parted-3.2-36.fc29.x86_64
>
> patches are on the parted-devel mailing list. Ends up it was an
> uninitialized pointer.
>
thanks
--
Jozef Mlich <imlich <at> fit.vutbr.cz>
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 23 May 2019 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.