Bug 505163
| Summary: | gdb calculates wrong address on zero-length arrays inside structure | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miao ZhiCheng <hellwolf.misty> | |
| Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> | |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | low | |||
| Version: | 10 | CC: | dvlasenk, jan.kratochvil | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | 6.8.50.20090302-27.fc11 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 505333 (view as bug list) | Environment: | ||
| Last Closed: | 2009-06-16 01:54:40 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 505333 | |||
gdb-6.8.50.20090302-25.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gdb-6.8.50.20090302-25.fc11 gdb-6.8.50.20090302-25.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gdb-6.8.50.20090302-25.fc11 There is also an F10 update: https://admin.fedoraproject.org/updates/gdb-6.8-30.fc10 It was a bug from the VLA (variable-length-arrays) + Fortran-dynamic-arrays support, thanks. I've tried the updates, and it solves the problem. Thanks for your work. gdb-6.8-24.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/gdb-6.8-24.fc9 gdb-6.8.50.20090302-27.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gdb-6.8.50.20090302-27.fc11 gdb-6.8-30.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. gdb-6.8-24.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. gdb-6.8.50.20090302-27.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |
Version-Release number of selected component (if applicable): 6.8-29.fc10 How reproducible: example code, struct { int n; int a[0]; } b; (gdb) p &b->a $1 = (int (*)[]) 0x80495ec (gdb) p &b->a[0] $2 = (int *) 0x9a0458c but b->a and &b->a[0] should be the same address.