From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93495 invoked by alias); 21 May 2015 22:12:43 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 93438 invoked by uid 55); 21 May 2015 22:12:43 -0000 From: "hellmund at fzi dot de" To: gdb-prs@sourceware.org Subject: [Bug gdb/18406] GDB crashes after segmentation fault in program Date: Thu, 21 May 2015 22:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hellmund at fzi dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00310.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18406 --- Comment #3 from Andi Hellmund --- Hi, ok, here we go: # g++ --version g++ (GCC) 4.9.2 # g++ -std=c++14 random.cpp -o r # gdb r (gdb) run [...] Reading symbols from r...(no debugging symbols found)...done. (gdb) run [...] Program received signal SIGSEGV, Segmentation fault. 0x00000000004010ec in std::uniform_int_distribution::param_type::b() const () (gdb) ... Using the compiler options as above, everything works as expected. I get a _very_ long backtrace resulting from an endless recursion. However, if I use the following options: # g++ -std=c++14 random.cpp -o r -g [...] Reading symbols from r...done. (gdb) run [...] Program received signal SIGSEGV, Segmentation fault. Segmentation fault # ... Here, I don't get a GDB prompt and I am back in the terminal so that I assume that GDB crashed. Could you please try this again on your machine and let me know if you were able to reproduce this and if you need further information? Thanks and best regards, Andi On 22.05.2015 00:04, Andre-Marcel Hellmund wrote: > Hi, > > sorry for the delay in my response. > >> I assume you're using GDB 7.9, > > Yes, I was using GDB 7.9, built from the vanilla sources from the GNU > web page. > GNU gdb (GDB) 7.9 > This GDB was configured as "x86_64-unknown-linux-gnu". > >> but it would be nice to know if you have >> distro-specific patches on it. > > No, no distro packages included in the sources. > >> What is your distro? > > My distribution is Ubuntu 14.04, 64-bit. > >> Also, what is the version >> of your g++ compiler? > > The compiler is a self-built gcc 4.9.2, again from the vanilla GNU > sources. We used -std=c++14 as language standard option. > >> Are you just doing a './gdb binary' and then 'run', or >> something else? Thanks. > > Mhhh, I was trying again to reproduce the bug, but no I fail as well > which is strange. I have no real explanation for this, other than that > Ubuntu is bogus or - which is obviously less likely - that I did > something fundamentally wrong :-) > > I will try a bit further to reproduce this (we had a second system at > work that was crashing) and will let you know if find out how to > reproduce this. > > Sorry for this and thanks, > Andi -- You are receiving this mail because: You are on the CC list for the bug.