Bug 654331 - dynamic-other-frame Fortran crash
Summary: dynamic-other-frame Fortran crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 14
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1fb7aa00573cc3d7484c65e69b2...
Depends On: 645773 669434
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-17 15:56 UTC by Clément DAVID
Modified: 2011-01-30 19:43 UTC (History)
3 users (show)

Fixed In Version: gdb-7.2-36.fc14.x86_64
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-30 19:43:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (16.46 KB, text/plain)
2010-11-17 15:56 UTC, Clément DAVID
no flags Details

Description Clément DAVID 2010-11-17 15:56:28 UTC
abrt version: 1.1.13
architecture: x86_64
Attached file: backtrace
cmdline: gdb --pid=8085
component: gdb
crash_function: block_linkage_function
executable: /usr/bin/gdb
kernel: 2.6.35.6-48.fc14.x86_64
package: gdb-7.2-23.fc14
rating: 4
reason: Process /usr/bin/gdb was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1290009128
uid: 500

How to reproduce
-----
1. debug scilab [http://www.scilab.org] and put a breakpoint on pthread_create .
2. on the first break, use bt

This crash gdb on the basin function

Comment 1 Clément DAVID 2010-11-17 15:56:31 UTC
Created attachment 461095 [details]
File: backtrace

Comment 2 Jan Kratochvil 2010-11-18 07:35:15 UTC
Do you use the binary build
http://www.scilab.org/download/5.2.2/scilab-5.2.2.bin.linux-x86_64.tar.gz

or is it reproducible on some custom build?  Which flags were used?  Could be that custom build provided?

I am curious how the backtrace can happen, to create a reproducer testcase.

With the binary scilab I cannot reproduce it:


bin/scilab -debug
Running debug of Scilab [gdb]  :  gdb --args /home/jkratoch/redhat/scilab-5.2.2/bin/scilab-bin -debug
GNU gdb (GDB) Fedora (7.2-25.fc14)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jkratoch/redhat/scilab-5.2.2/bin/scilab-bin...(no debugging symbols found)...done.
(gdb) b pthread_create
Function "pthread_create" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (pthread_create) pending.
(gdb) r
Starting program: /home/jkratoch/redhat/scilab-5.2.2/bin/scilab-bin -debug
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libxml2.so.2
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/3a/1f8f5e38890b16718a7c2f0f5f0e62257f192c.debug
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libpcreposix.so.3
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libpcre.so.3
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/liblapack.so.3gf
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libgfortran.so.3
[Thread debugging using libthread_db enabled]
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libz.so.1
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libgcc_s.so.1
[New Thread 0x7fffe7254700 (LWP 5167)]
[New Thread 0x7fffe6a53700 (LWP 5168)]
[New Thread 0x7fffe5eb9700 (LWP 5169)]
[New Thread 0x7fffe44b7700 (LWP 5170)]
[New Thread 0x7fffe43b6700 (LWP 5171)]
[New Thread 0x7fffe42b5700 (LWP 5172)]
[New Thread 0x7fffe41b4700 (LWP 5173)]
[New Thread 0x7fffc7bff700 (LWP 5174)]
[New Thread 0x7fffc7afe700 (LWP 5175)]
[New Thread 0x7fffc79fd700 (LWP 5176)]
[New Thread 0x7fffc78fc700 (LWP 5177)]
[New Thread 0x7fffc7134700 (LWP 5178)]
[New Thread 0x7fffc6e14700 (LWP 5179)]
[New Thread 0x7fffc618a700 (LWP 5180)]
[New Thread 0x7fffc6089700 (LWP 5181)]
Detaching after fork from child process 5182.
[Thread 0x7fffc6089700 (LWP 5181) exited]
[New Thread 0x7fffc6089700 (LWP 5183)]
Detaching after fork from child process 5184.
[Thread 0x7fffc6089700 (LWP 5183) exited]
[New Thread 0x7fffc6089700 (LWP 5185)]
[New Thread 0x7fffc5f88700 (LWP 5186)]
[New Thread 0x7fffc5e87700 (LWP 5187)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffdd0be380 in ?? ()
Missing separate debuginfos, use: debuginfo-install PackageKit-gtk-module-0.6.10-2.fc14.x86_64 atk-1.32.0-1.fc14.x86_64 cairo-1.10.0-2.fc14.x86_64 dbus-glib-0.86-4.fc14.x86_64 dbus-libs-1.4.0-1.fc14.x86_64 expat-2.0.1-10.fc13.x86_64 fontconfig-2.8.0-2.fc14.x86_64 freetype-2.4.2-4.fc14.x86_64 gdk-pixbuf2-2.22.0-1.fc14.x86_64 glib2-2.26.0-2.fc14.x86_64 gtk2-2.22.0-1.fc14.1.x86_64 gtk2-engines-2.20.1-2.fc14.x86_64 libX11-1.3.4-3.fc14.x86_64 libXScrnSaver-1.2.0-1.fc12.x86_64 libXau-1.0.6-1.fc14.x86_64 libXcomposite-0.4.2-1.fc14.x86_64 libXcursor-1.1.10-5.fc14.x86_64 libXdamage-1.1.3-1.fc14.x86_64 libXext-1.1.2-2.fc14.x86_64 libXfixes-4.0.5-1.fc14.x86_64 libXft-2.1.14-1.fc13.x86_64 libXi-1.3.2-1.fc14.x86_64 libXinerama-1.1-2.fc13.x86_64 libXrandr-1.3.0-5.fc13.x86_64 libXrender-0.9.6-1.fc14.x86_64 libXtst-1.0.99.2-3.fc12.x86_64 libcanberra-0.25-4.fc14.x86_64 libcanberra-gtk2-0.25-4.fc14.x86_64 libogg-1.2.0-1.fc14.x86_64 libpng-1.2.44-1.fc14.x86_64 libtdb-1.2.1-3.fc14.x86_64 libtool-ltdl-2.2.10-3.fc14.x86_64 libvorbis-1.3.1-2.fc14.x86_64 libxcb-1.7-1.fc14.x86_64 pango-1.28.1-4.fc14.x86_64 pixman-0.18.4-1.fc14.x86_64
(gdb) 



bin/scilab -debug
Running debug of Scilab [gdb]  :  gdb --args /home/jkratoch/redhat/scilab-5.2.2/bin/scilab-bin -debug
GNU gdb (GDB) Fedora (7.2-25.fc14)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jkratoch/redhat/scilab-5.2.2/bin/scilab-bin...(no debugging symbols found)...done.
(gdb) b realmain
Breakpoint 1 at 0x400fe8
(gdb) r
Starting program: /home/jkratoch/redhat/scilab-5.2.2/bin/scilab-bin -debug
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libxml2.so.2
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/3a/1f8f5e38890b16718a7c2f0f5f0e62257f192c.debug
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libpcreposix.so.3
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libpcre.so.3
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/liblapack.so.3gf
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libgfortran.so.3
[Thread debugging using libthread_db enabled]
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libz.so.1
Missing separate debuginfo for /home/jkratoch/redhat/scilab-5.2.2/lib/thirdparty/libgcc_s.so.1

Breakpoint 1, 0x00007ffff7a8f5e0 in realmain ()
   from /home/jkratoch/redhat/scilab-5.2.2/lib/scilab/libscicore.so.5
Missing separate debuginfos, use: debuginfo-install expat-2.0.1-10.fc13.x86_64 fontconfig-2.8.0-2.fc14.x86_64 freetype-2.4.2-4.fc14.x86_64 libX11-1.3.4-3.fc14.x86_64 libXScrnSaver-1.2.0-1.fc12.x86_64 libXau-1.0.6-1.fc14.x86_64 libXext-1.1.2-2.fc14.x86_64 libXft-2.1.14-1.fc13.x86_64 libXrender-0.9.6-1.fc14.x86_64 libxcb-1.7-1.fc14.x86_64
(gdb) b __pthread_create_2_1
Breakpoint 2 at 0x3250a07000
(gdb) b __pthread_create
Function "__pthread_create" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb) c
Continuing.

Breakpoint 2, 0x0000003250a07000 in pthread_create@@GLIBC_2.2.5 () from /lib64/libpthread.so.0
(gdb) bt
#0  0x0000003250a07000 in pthread_create@@GLIBC_2.2.5 () from /lib64/libpthread.so.0
#1  0x00007ffff2d4190f in OpenTCLsci ()
   from /home/jkratoch/redhat/scilab-5.2.2/lib/scilab/libscitclsci.so.5
#2  0x00007ffff2d422fd in InitializeTclTk ()
   from /home/jkratoch/redhat/scilab-5.2.2/lib/scilab/libscitclsci.so.5
#3  0x00007ffff7a85e75 in initscilab_ ()
   from /home/jkratoch/redhat/scilab-5.2.2/lib/scilab/libscicore.so.5
#4  0x00007ffff7ac73a0 in inisci_ () from /home/jkratoch/redhat/scilab-5.2.2/lib/scilab/libscicore.so.5
#5  0x00007ffff7a8f69f in realmain () from /home/jkratoch/redhat/scilab-5.2.2/lib/scilab/libscicore.so.5
#6  0x00000000004014e1 in ?? ()
#7  0x000000325061ee7d in __libc_start_main (main=0x401170, argc=2, ubp_av=0x7fffffffe158, 
    init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fffffffe148) at libc-start.c:226
#8  0x00000000004010a9 in ?? ()
#9  0x00007fffffffe148 in ?? ()
#10 0x000000000000001c in ?? ()
#11 0x0000000000000002 in ?? ()
#12 0x00007fffffffe3c4 in ?? ()
#13 0x00007fffffffe3f6 in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb) b basin
Function "basin" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 3 (basin) pending.
(gdb) c
Continuing.
[New Thread 0x7fffe7254700 (LWP 5090)]
[Switching to Thread 0x7fffe7254700 (LWP 5090)]

Breakpoint 2, 0x0000003250a07000 in pthread_create@@GLIBC_2.2.5 () from /lib64/libpthread.so.0
(gdb) delete 2
(gdb) c
Continuing.
[New Thread 0x7fffe6a53700 (LWP 5091)]
[New Thread 0x7fffe5eb9700 (LWP 5092)]
[New Thread 0x7fffe44b7700 (LWP 5095)]
[New Thread 0x7fffe43b6700 (LWP 5096)]
[New Thread 0x7fffe42b5700 (LWP 5097)]
[New Thread 0x7fffe41b4700 (LWP 5098)]
[New Thread 0x7fffc7bff700 (LWP 5099)]
[New Thread 0x7fffc7afe700 (LWP 5100)]
[New Thread 0x7fffc79fd700 (LWP 5101)]
[New Thread 0x7fffc78fc700 (LWP 5102)]
[New Thread 0x7fffc7134700 (LWP 5103)]
[New Thread 0x7fffc6e14700 (LWP 5104)]
[New Thread 0x7fffc618a700 (LWP 5105)]
[New Thread 0x7fffc6089700 (LWP 5106)]
Detaching after fork from child process 5107.
[Thread 0x7fffc6089700 (LWP 5106) exited]
[New Thread 0x7fffc6089700 (LWP 5108)]
Detaching after fork from child process 5109.
[Thread 0x7fffc6089700 (LWP 5108) exited]
[New Thread 0x7fffc6089700 (LWP 5110)]
[New Thread 0x7fffc5f88700 (LWP 5111)]
[New Thread 0x7fffc5e87700 (LWP 5112)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffed11f740 (LWP 5087)]
0x00007fffdd0c05c0 in ?? ()
Missing separate debuginfos, use: debuginfo-install PackageKit-gtk-module-0.6.10-2.fc14.x86_64 atk-1.32.0-1.fc14.x86_64 cairo-1.10.0-2.fc14.x86_64 dbus-glib-0.86-4.fc14.x86_64 dbus-libs-1.4.0-1.fc14.x86_64 gdk-pixbuf2-2.22.0-1.fc14.x86_64 glib2-2.26.0-2.fc14.x86_64 gtk2-2.22.0-1.fc14.1.x86_64 gtk2-engines-2.20.1-2.fc14.x86_64 libXcomposite-0.4.2-1.fc14.x86_64 libXcursor-1.1.10-5.fc14.x86_64 libXdamage-1.1.3-1.fc14.x86_64 libXfixes-4.0.5-1.fc14.x86_64 libXi-1.3.2-1.fc14.x86_64 libXinerama-1.1-2.fc13.x86_64 libXrandr-1.3.0-5.fc13.x86_64 libXtst-1.0.99.2-3.fc12.x86_64 libcanberra-0.25-4.fc14.x86_64 libcanberra-gtk2-0.25-4.fc14.x86_64 libogg-1.2.0-1.fc14.x86_64 libpng-1.2.44-1.fc14.x86_64 libtdb-1.2.1-3.fc14.x86_64 libtool-ltdl-2.2.10-3.fc14.x86_64 libvorbis-1.3.1-2.fc14.x86_64 pango-1.28.1-4.fc14.x86_64 pixman-0.18.4-1.fc14.x86_64
(gdb) quit

Comment 3 Clément DAVID 2010-11-18 08:56:55 UTC
This a custom build of the 5.3 branch [http://gitweb.scilab.org/?p=scilab.git;a=shortlog;h=refs/heads/5.3].

It is always reproductible on my custom build usint thirdparties. For a reduced compilation guide, see [http://wiki.scilab.org/My_Way_to_play_with_master_and_5.1_branches].

And use: 
$ ./configure --without-gui --without-xcos --without-scicos --without-pvm --without-javasci --without-tk

Comment 4 Jan Kratochvil 2010-11-20 04:31:07 UTC
archer-jankratochvil-vla
a2144eb95b6717b9bed0050941b4349bf38ce00e
new testcase:
gdb.fortran/dynamic-other-frame.exp

Comment 5 Fedora Admin XMLRPC Client 2011-01-06 03:23:44 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Jan Kratochvil 2011-01-30 19:43:47 UTC
BTW this got backported for f14 as a part of:

* Sat Jan 15 2011 Jan Kratochvil <jan.kratochvil> - 7.2-34.fc14
- [vla] Support Fortran vector slices and subsets (BZ 609782).


Note You need to log in before you can comment on or make changes to this bug.