Hello guys,

I was practicing my partitioning skills inside of virtualbox. And I just got a segmentation fault. I hope this info could help you to fix a bug, if there is some.

My environment is Virtual Box with Knoppix 7.4.2 Live DVD.

I attached a file with my console output.

If you need any other information, let me know.

Greetings,
Vitalii

root@Microknoppix:~# 
root@Microknoppix:~# parted 
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Error: /dev/sda: unrecognised disk label
Model: ATA VBOX HARDDISK (scsi)                                           
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 
(parted) help
  align-check TYPE N                        check partition N for TYPE(min|opt)
        alignment
  help [COMMAND]                           print general help, or help on
        COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition
        table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table,
        available devices, free space, all found partitions, or a particular
        partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START
        and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected
        device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition
        NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and
        copyright information of GNU Parted
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted) help mktable                                                     
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition
        table)

        LABEL-TYPE is one of: aix, amiga, bsd, dvh, gpt, mac, msdos, pc98, sun,
        loop
(parted) mktable gpt
(parted) print                                                            
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

(parted) help mkpart                                                      
  mkpart PART-TYPE [FS-TYPE] START END     make a partition

        PART-TYPE is one of: primary, logical, extended
        FS-TYPE is one of: zfs, btrfs, nilfs2, ext4, ext3, ext2, fat32, fat16,
        hfsx, hfs+, hfs, jfs, swsusp, linux-swap(v1), linux-swap(v0), ntfs,
        reiserfs, freebsd-ufs, hp-ufs, sun-ufs, xfs, apfs2, apfs1, asfs, amufs5,
        amufs4, amufs3, amufs2, amufs1, amufs0, amufs, affs7, affs6, affs5,
        affs4, affs3, affs2, affs1, affs0, linux-swap, linux-swap(new),
        linux-swap(old)
        START and END are disk locations, such as 4GB or 10%.  Negative values
        count from the end of the disk.  For example, -1s specifies exactly the
        last sector.
        
        'mkpart' makes a partition without creating a new file system on the
        partition.  FS-TYPE may be specified to set an appropriate partition
        ID.
(parted) mkpart primary 40%
End? 40%                                                                  
(parted) print                                                            
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End    Size    File system  Name     Flags
 1      402MB  403MB  1049kB               primary

(parted) rm 1
(parted) print                                                            
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

(parted) print free space                                                 
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
        17.4kB  1003MB  1003MB  Free Space

  align-check TYPE N                        check partition N for TYPE(min|opt)
        alignment
  help [COMMAND]                           print general help, or help on
        COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition
        table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table,
        available devices, free space, all found partitions, or a particular
        partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START
        and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected
        device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition
        NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and
        copyright information of GNU Parted
(parted) print free
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
        17.4kB  1003MB  1003MB  Free Space

(parted) print devices
/dev/sda (1003MB)
/dev/sr0 (4258MB)
/dev/zram0 (1576MB)
/dev/cloop0 (10.8GB)
(parted) print list                                                       
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.


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

Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:

Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:

        http://ftp.gnu.org/gnu/parted/

Please check this version prior to bug reporting.

If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:

        http://www.gnu.org/software/parted

for further information.

Your report should contain the version of this release (3.2)
along with the error message below, the output of

        parted DEVICE unit co print unit s print

and the following history of commands you entered.
Also include any additional information about your setup you
consider important.
                                                                          
Command History:
print
help
help mktable
mktable gpt
print
help mkpart
mkpart primary 40%
40%
print
rm 1
print
print free space
print free
print devices
print list

Error: SEGV_MAPERR (Address not mapped to object)
Segmentation fault
root@Microknoppix:~# parted version
Error: Could not stat device version - No such file or directory.
Retry/Cancel? c                                                           
root@Microknoppix:~# parted
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) verison                                                          
  align-check TYPE N                        check partition N for TYPE(min|opt) 
alignment
  help [COMMAND]                           print general help, or help on 
COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition 
table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, 
available devices, free
        space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START 
and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected 
device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on 
partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and 
copyright information of
        GNU Parted
(parted) version                                                        

GNU Parted 3.2

Copyright (C) 1998 - 2006 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

(parted) 
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted) parted DEVICE unit co print unit s print
  align-check TYPE N                        check partition N for TYPE(min|opt) 
alignment
  help [COMMAND]                           print general help, or help on 
COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition 
table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, 
available devices, free
        space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START 
and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected 
device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on 
partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and 
copyright information of
        GNU Parted
  align-check TYPE N                        check partition N for TYPE(min|opt) 
alignment
  help [COMMAND]                           print general help, or help on 
COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition 
table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, 
available devices, free
        space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START 
and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected 
device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on 
partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and 
copyright information of
        GNU Parted
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1959460s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted)                                                                  
(parted) parted /dev/sda unit co print unit s print                         
  align-check TYPE N                        check partition N for TYPE(min|opt) 
alignment
  help [COMMAND]                           print general help, or help on 
COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition 
table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, 
available devices, free
        space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START 
and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected 
device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on 
partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and 
copyright information of
        GNU Parted
  align-check TYPE N                        check partition N for TYPE(min|opt) 
alignment
  help [COMMAND]                           print general help, or help on 
COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition 
table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, 
available devices, free
        space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START 
and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected 
device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on 
partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and 
copyright information of
        GNU Parted
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1003MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 1959460s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

(parted)                                           

Reply via email to