Bug 515434

Summary: internal error at qsort_cmp
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jan.kratochvil, jlaska, stickster, sysoutfran
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-6.8.50.20090818-5.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-25 13:14:42 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:
Attachments:
Description Flags
gdb internal error log when examining a core file
none
core file when gtk-query-immodules-2.0-32 crashes none

Description Mamoru TASAKA 2009-08-04 09:10:50 UTC
Created attachment 356126 [details]
gdb internal error log when examining a core file

Description of problem:
Well, I tried to debug segfault with gtk-query-immodules-2.0-32
using gdb-6.8.50.20090803-2.fc12.i686 but gdb causes internal error.

Version-Release number of selected component (if applicable):
glibc-2.10.90-12.i686
gtk2-2.17.6-4.fc12.i686
gdb-6.8.50.20090803-2.fc12.i686

How reproducible:
100%

Steps to Reproduce:
1. ulimit -c unlimited
2. /usr/bin/update-gtk-immodules i386-redhat-linux-gnu
   (currently on rawhide this segfaults, note that update-gtk-immodules
    is a shell script, actual binary causing segv is
    gtk-query-immodules-2.0-32)
3. gdb gtk-query-immodules-2.0-32 core.*
  
Actual results:
gdb stops with internal error (see attached)

Comment 1 Jan Kratochvil 2009-08-04 12:23:25 UTC
`/usr/bin/update-gtk-immodules i386-redhat-linux-gnu'
does not crash for me (gtk2-2.17.6-4.fc12.i686).

Could you please attach the core file?  Best directly the core file of gdb.
Thanks.

Comment 2 Mamoru TASAKA 2009-08-04 13:21:49 UTC
Created attachment 356168 [details]
core file when gtk-query-immodules-2.0-32 crashes

(In reply to comment #1)
> `/usr/bin/update-gtk-immodules i386-redhat-linux-gnu'
> does not crash for me (gtk2-2.17.6-4.fc12.i686).
> 
> Could you please attach the core file?  Best directly the core file of gdb.

Attached.

Comment 3 Jan Kratochvil 2009-08-04 15:01:17 UTC
Reproduced, thanks, just FYI it is an upstream bug.

Comment 4 Jan Kratochvil 2009-08-11 22:54:36 UTC
I could reproduce it before and it has been fixed upstream in the meantime:
http://sourceware.org/ml/gdb-cvs/2009-08/msg00054.html
http://sourceware.org/ml/gdb-patches/2009-08/msg00130.html

Expecting it to be fixed in today's Rawhide but I can no longer produce it on fresh Rawhide with the core file from your Comment 2.

Comment 5 Jan Kratochvil 2009-08-25 08:48:41 UTC
Sorry for the incorrect close, the bug is still present.

Testcase posted upstream:
http://sourceware.org/ml/gdb/2009-08/msg00238.html
http://sourceware.org/ml/gdb-patches/2009-08/msg00409.html

Comment 6 Jan Kratochvil 2009-08-25 12:09:49 UTC
*** Bug 518981 has been marked as a duplicate of this bug. ***

Comment 7 Jan Kratochvil 2009-08-25 12:10:28 UTC
*** Bug 518883 has been marked as a duplicate of this bug. ***

Comment 8 Jan Kratochvil 2009-08-25 12:11:26 UTC
*** Bug 518516 has been marked as a duplicate of this bug. ***

Comment 9 Jan Kratochvil 2009-08-25 13:14:42 UTC
Assertions currently removed in gdb-6.8.50.20090818-5.fc12.
Proper fix to follow.