From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19375 invoked by alias); 1 Jan 2014 04:53:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19343 invoked by uid 48); 1 Jan 2014 04:53:27 -0000 From: "Thomas.L.Clune at nasa dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59654] Broken function table with complex OO use case Date: Wed, 01 Jan 2014 04:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Thomas.L.Clune at nasa dot gov X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00010.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59654 --- Comment #4 from tlcclt --- OK - had a bit of time waiting for the New Year countdown =E2=80=A6 so rea= d up a bit on valgrind.=20 A vanilla run under Linux with 4.9.0 gave the following, which seems encouraging, albeit cryptic: % gfortran -O0 -g allinone.F90 % valgrind ./a.out =3D=3D4724=3D=3D Memcheck, a memory error detector =3D=3D4724=3D=3D Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward e= t al. =3D=3D4724=3D=3D Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyrig= ht info =3D=3D4724=3D=3D Command: ./a.out =3D=3D4724=3D=3D --4724-- WARNING: Serious error when reading debug info --4724-- When reading debug info from /gpfsm/dhome/tclune/a.out: --4724-- Ignoring non-Dwarf2/3 block in .debug_info ./a.out: error while loading shared libraries: libquadmath.so.0: cannot open shared object file: No such file or directory =3D=3D4724=3D=3D Jump to the invalid address stated on the next line =3D=3D4724=3D=3D at 0x4DE: ??? =3D=3D4724=3D=3D by 0x400DEC7: _dl_signal_error (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x400CFD2: _dl_map_object_deps (in /lib64/ld-2.11.1.= so) =3D=3D4724=3D=3D by 0x40032B3: dl_main (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x4014979: _dl_sysdep_start (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x40013D0: _dl_start (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x4000B07: ??? (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D Address 0x4de is not stack'd, malloc'd or (recently) free= 'd =3D=3D4724=3D=3D =3D=3D4724=3D=3D =3D=3D4724=3D=3D Process terminating with default action of signal 11 (SIGS= EGV): dumping core =3D=3D4724=3D=3D Bad permissions for mapped region at address 0x4DE =3D=3D4724=3D=3D at 0x4DE: ??? =3D=3D4724=3D=3D by 0x400DEC7: _dl_signal_error (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x400CFD2: _dl_map_object_deps (in /lib64/ld-2.11.1.= so) =3D=3D4724=3D=3D by 0x40032B3: dl_main (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x4014979: _dl_sysdep_start (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x40013D0: _dl_start (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D by 0x4000B07: ??? (in /lib64/ld-2.11.1.so) =3D=3D4724=3D=3D =3D=3D4724=3D=3D HEAP SUMMARY: =3D=3D4724=3D=3D in use at exit: 0 bytes in 0 blocks =3D=3D4724=3D=3D total heap usage: 0 allocs, 0 frees, 0 bytes allocated =3D=3D4724=3D=3D =3D=3D4724=3D=3D All heap blocks were freed -- no leaks are possible =3D=3D4724=3D=3D =3D=3D4724=3D=3D For counts of detected and suppressed errors, rerun with: = -v =3D=3D4724=3D=3D ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 fro= m 0) Thanks for helping with this! >>From gcc-bugs-return-438869-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 01 05:02:58 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23454 invoked by alias); 1 Jan 2014 05:02:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23425 invoked by uid 48); 1 Jan 2014 05:02:54 -0000 From: "Thomas.L.Clune at nasa dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59654] Broken function table with complex OO use case Date: Wed, 01 Jan 2014 05:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Thomas.L.Clune at nasa dot gov X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00011.txt.bz2 Content-length: 2083 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59654 --- Comment #5 from tlcclt --- Ignore that output from Valgind. I was logged out between building and running, and failed to reload the appropriate environment. With the corre= ct environment, I get a clean run from valgrind: valgrind ./a.out =3D=3D9886=3D=3D Memcheck, a memory error detector =3D=3D9886=3D=3D Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward e= t al. =3D=3D9886=3D=3D Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyrig= ht info =3D=3D9886=3D=3D Command: ./a.out =3D=3D9886=3D=3D --9886-- WARNING: Serious error when reading debug info --9886-- When reading debug info from /gpfsm/dhome/tclune/a.out: --9886-- Ignoring non-Dwarf2/3 block in .debug_info --9886-- WARNING: Serious error when reading debug info --9886-- When reading debug info from /usr/local/other/SLES11.1/gcc/4.9/lib64/libgfortran.so.3.0.0: --9886-- Ignoring non-Dwarf2/3 block in .debug_info =E2=80=A6 --9886-- Ignoring non-Dwarf2/3 block in .debug_info --9886-- WARNING: Serious error when reading debug info --9886-- When reading debug info from /usr/local/other/SLES11.1/gcc/4.9/lib64/libquadmath.so.0.0.0: --9886-- Ignoring non-Dwarf2/3 block in .debug_info Error - incorrect number of tests were run. =3D=3D9886=3D=3D =3D=3D9886=3D=3D HEAP SUMMARY: =3D=3D9886=3D=3D in use at exit: 1 bytes in 1 blocks =3D=3D9886=3D=3D total heap usage: 22 allocs, 21 frees, 11,835 bytes allo= cated =3D=3D9886=3D=3D =3D=3D9886=3D=3D LEAK SUMMARY: =3D=3D9886=3D=3D definitely lost: 0 bytes in 0 blocks =3D=3D9886=3D=3D indirectly lost: 0 bytes in 0 blocks =3D=3D9886=3D=3D possibly lost: 0 bytes in 0 blocks =3D=3D9886=3D=3D still reachable: 1 bytes in 1 blocks =3D=3D9886=3D=3D suppressed: 0 bytes in 0 blocks =3D=3D9886=3D=3D Rerun with --leak-check=3Dfull to see details of leaked me= mory =3D=3D9886=3D=3D =3D=3D9886=3D=3D For counts of detected and suppressed errors, rerun with: = -v =3D=3D9886=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 fro= m 2) >>From gcc-bugs-return-438870-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 01 07:55:59 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3044 invoked by alias); 1 Jan 2014 07:55:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3003 invoked by uid 55); 1 Jan 2014 07:55:54 -0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59654] Broken function table with complex OO use case Date: Wed, 01 Jan 2014 07:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00012.txt.bz2 Content-length: 639 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59654 --- Comment #6 from Steve Kargl --- On Wed, Jan 01, 2014 at 05:02:53AM +0000, Thomas.L.Clune at nasa dot gov wrote: > > Ignore that output from Valgind. I was logged out between building and > running, and failed to reload the appropriate environment. With the correct > environment, I get a clean run from valgrind: > I like the other trace better. It suggested a memory corruption problem. ;) The trace here suggests to me that gfortran is losing a pointer somewhere. Unfortunately, I don't know much about the OO parts of gfortran.