| Summary: | Segmentation fault when argument 'partnum' of part-get-gpt-type is too large | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | bfan | |
| Component: | gdisk | Assignee: | Tomáš Bžatek <tbzatek> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Desktop QE <desktop-qa-list> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 7.0 | CC: | leiwang, rjones, tsmetana, vhumpa, wshi | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | gdisk-0.8.6-2.el7 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1007847 (view as bug list) | Environment: | ||
| Last Closed: | 2014-06-13 10:02:38 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | 1007847 | |||
| Bug Blocks: | ||||
|
Description
bfan
2013-09-13 09:32:00 UTC
You were right that this is a bug in gdisk. Easily
reproducible on the command line:
$ sgdisk /dev/sda -i 1185
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Segmentation fault (core dumped)
The stack trace is:
Program received signal SIGSEGV, Segmentation fault.
GPTPart::ShowDetails (this=0x851018, blockSize=512) at gptpart.cc:210
210 if (firstLBA != 0) {
(gdb) bt
#0 GPTPart::ShowDetails (this=0x851018, blockSize=512) at gptpart.cc:210
#1 0x000000000041015e in GPTData::ShowPartDetails (
this=this@entry=0x7fffffffc470, partNum=<optimized out>) at gpt.cc:1406
#2 0x00000000004193d1 in GPTDataCL::DoOptions (
this=this@entry=0x7fffffffc470, argc=argc@entry=4,
argv=argv@entry=0x7fffffffde48) at gptcl.cc:255
#3 0x0000000000402dd6 in main (argc=4, argv=0x7fffffffde48) at sgdisk.cc:20
Backported changes from bug 1007847 and built gdisk-0.8.6-2.el7 This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |