public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18406] New: GDB crashes after segmentation fault in program
@ 2015-05-13  7:56 hellmund at fzi dot de
  2015-05-15 22:20 ` [Bug gdb/18406] " sergiodj at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hellmund at fzi dot de @ 2015-05-13  7:56 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18406

            Bug ID: 18406
           Summary: GDB crashes after segmentation fault in program
           Product: gdb
           Version: 7.9
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: hellmund at fzi dot de
  Target Milestone: ---

Created attachment 8309
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8309&action=edit
Reproducer

Running the attached C++14 program causes the program _AND_ GDB to crash. I
tried to debug GDB with GDB to get more details about the crash of GDB, but
this does not seem to work properly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/18406] GDB crashes after segmentation fault in program
  2015-05-13  7:56 [Bug gdb/18406] New: GDB crashes after segmentation fault in program hellmund at fzi dot de
@ 2015-05-15 22:20 ` sergiodj at redhat dot com
  2015-05-21 22:05 ` hellmund at fzi dot de
  2015-05-21 22:12 ` hellmund at fzi dot de
  2 siblings, 0 replies; 4+ messages in thread
From: sergiodj at redhat dot com @ 2015-05-15 22:20 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18406

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |sergiodj at redhat dot com

--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Could you give more details, please?  I did not manage to reproduce the
segmentation fault here.  I tried with a GDB 7.9 tarball, and using our git
HEAD.

I assume you're using GDB 7.9, but it would be nice to know if you have
distro-specific patches on it.  What is your distro?  Also, what is the version
of your g++ compiler?  Are you just doing a './gdb binary' and then 'run', or
something else?  Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/18406] GDB crashes after segmentation fault in program
  2015-05-13  7:56 [Bug gdb/18406] New: GDB crashes after segmentation fault in program hellmund at fzi dot de
  2015-05-15 22:20 ` [Bug gdb/18406] " sergiodj at redhat dot com
@ 2015-05-21 22:05 ` hellmund at fzi dot de
  2015-05-21 22:12 ` hellmund at fzi dot de
  2 siblings, 0 replies; 4+ messages in thread
From: hellmund at fzi dot de @ 2015-05-21 22:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18406

--- Comment #2 from Andi Hellmund <hellmund at fzi dot de> ---
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug gdb/18406] GDB crashes after segmentation fault in program
  2015-05-13  7:56 [Bug gdb/18406] New: GDB crashes after segmentation fault in program hellmund at fzi dot de
  2015-05-15 22:20 ` [Bug gdb/18406] " sergiodj at redhat dot com
  2015-05-21 22:05 ` hellmund at fzi dot de
@ 2015-05-21 22:12 ` hellmund at fzi dot de
  2 siblings, 0 replies; 4+ messages in thread
From: hellmund at fzi dot de @ 2015-05-21 22:12 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18406

--- Comment #3 from Andi Hellmund <hellmund at fzi dot de> ---
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<int>::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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-21 22:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13  7:56 [Bug gdb/18406] New: GDB crashes after segmentation fault in program hellmund at fzi dot de
2015-05-15 22:20 ` [Bug gdb/18406] " sergiodj at redhat dot com
2015-05-21 22:05 ` hellmund at fzi dot de
2015-05-21 22:12 ` hellmund at fzi dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).