Bug 738482
Summary: | vla: frame not set during bt full | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | hnrch <heinrichmen> | ||||||
Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 15 | CC: | jan.kratochvil, mr.erdk, pahan, pmuldoon, sergiodj, tromey | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | abrt_hash:e326b63b83c439acc34ec542e93c62d900a82ccb | ||||||||
Fixed In Version: | gdb-7.3.1-45.fc15 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 802479 (view as bug list) | Environment: | |||||||
Last Closed: | 2012-03-12 16:36:56 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: | 802479 | ||||||||
Attachments: |
|
Description
hnrch
2011-09-14 22:45:55 UTC
Created attachment 523272 [details]
File: maps
Package: gdb-7.3-43.fc15 Architecture: x86_64 OS Release: Fedora release 15 (Lovelock) Comment ----- 1. Created a simple C++ project in Eclipse 3.7.0 with CDT 8.0.0201106081058 #include <cstdio> #include <cstdlib> #include <vector> class CPointer { private: unsigned int m_z1; std::vector<int> m_z3; public: CPointer(unsigned int z1, int z2) : m_z1(z1) { for(int i = 0; i < m_z1; i++) m_z3.push_back(++z2); } ~CPointer() { m_z3.clear(); } }; int main(void) { CPointer p1(5, 10); CPointer* p2 = new CPointer(6, 11); std::printf("Hello World!!!"); delete p2; return EXIT_SUCCESS; } 2. I've started debugging it, just toggle breakpoint on first line of main function (init of p1). 3. 'Steo over' to p2, after init of p2 I've tried to navigate in 'Variables' window to elements of m_z3, after I clicked arrow to expand list gdb terminated. Thanks, a reproducer is: int main (int argc, char **argv) { char s[argc]; void (*f) (void) = 0; f (); return 0; } gcc -o 1 1.c -Wall -g ./gdb -nx ./1 -ex r -ex 'bt full' It is a Fedora specific regression - due to my VLA patchset. gdb-7.3-44.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/gdb-7.3-44.fc15 Package gdb-7.3-44.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gdb-7.3-44.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/gdb-7.3-44.fc15 then log in and leave karma (feedback). gdb-7.3.50.20110722-7.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. gdb-7.3.1-45.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/gdb-7.3.1-45.fc15 gdb-7.3.1-45.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. It's happened for me (abrt point there) on # rpm -q gdb gdb-7.3.50.20110722-12.fc16.x86_64 Sorry but without a reproducer or some more info I cannot fix it. Sorry, please give me few minutes. It always reproducible, but abrt does not add info in closed bug. Just start debug runkit php extension from Netbeans. backtrace_rating: 4 Package: gdb-7.3.50.20110722-12.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Created attachment 569066 [details]
File: backtrace
I hope it is helpful. Please say if I may provide some more info. While thanks for bugreporting the situation about VLA is complicated. It is a Fedora only patch as it is not upstreamable in its current form. It is needed to make Fortran programs debuggable. I am aware of many issues of the VLA patch but it does not make sense to develop it in its current form. I have not yet found time to rewrite it from scratch friendly with upstream, hopefull this year. Therefore I fix up only issues which really block/affect people. If it is somehow blocking you from debugging something please ping it here. Otherwise I am aware there are bugs, I know about many of them. (In reply to comment #15) > Therefore I fix up only issues which really block/affect people. If it is > somehow blocking you from debugging something please ping it here. Otherwise I > am aware there are bugs, I know about many of them. Off course it affect me! Gdb segfaulted when I try start debug session of my project! This new Bug starting at Comment 9 is completely unrelated to VLA / Comment 0. Filed ABRT deduplication false positive as new: Bug 802477 Re-filed this new GDB Bug as new: Bug 802479 |