public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/54012] New: printf crush with -lgfortran
@ 2012-07-18 10:59 astroseger at gmail dot com
  2012-10-29 23:32 ` [Bug libfortran/54012] " mpolacek at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: astroseger at gmail dot com @ 2012-07-18 10:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54012

             Bug #: 54012
           Summary: printf crush with -lgfortran
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: astroseger@gmail.com


It could be a bug of Magia distributive, not the gcc, but just in case.

The following code results in a segmentation fault if compile with -lgfortran! 

%%%%%%%%%%%%%%%%%

#include <stdio.h>
int main ()
{
   printf(
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
          "%% %% %% %% %% %% %% %% %% %%\n"
         );
}

%%%%%%%%%%%%%%%%%%
gcc test.c -lgfortran

(without -lgfortran would work fine)

Distributive: Mageia release 2 (Official) for x86_64

gcc -v 

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-mageia-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-mageia-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
--with-slibdir=/lib64 --with-bugurl=http://bugs.mageia.org/
--mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release
--enable-languages=c,c++,ada,fortran,objc,obj-c++,java --enable-linker-build-id
--build=x86_64-mageia-linux-gnu --host=x86_64-mageia-linux-gnu
--with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared
--enable-objc-gc --enable-long-long --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo
--disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror
--with-ppl --with-cloog --with-python-dir=/lib/python2.7/site-packages
--enable-lto
Thread model: posix
gcc version 4.6.3 (GCC)


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

end of thread, other threads:[~2014-10-08 15:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 10:59 [Bug libfortran/54012] New: printf crush with -lgfortran astroseger at gmail dot com
2012-10-29 23:32 ` [Bug libfortran/54012] " mpolacek at gcc dot gnu.org
2012-10-30  0:34 ` kargl at gcc dot gnu.org
2012-10-30  9:52 ` [Bug libfortran/54012] printf crash " astroseger at gmail dot com
2012-10-30  9:57 ` astroseger at gmail dot com
2012-10-30 10:47 ` mpolacek at gcc dot gnu.org
2012-10-30 13:21 ` sgk at troutmask dot apl.washington.edu
2012-10-30 14:04 ` astroseger at gmail dot com
2012-10-30 17:58 ` sgk at troutmask dot apl.washington.edu
2012-10-30 19:35 ` astroseger at gmail dot com
2012-10-30 22:04 ` burnus at gcc dot gnu.org
2012-10-30 22:37 ` astroseger at gmail dot com
2013-06-23 13:35 ` [Bug libquadmath/54012] " dominiq at lps dot ens.fr
2014-10-08 15:28 ` fxcoudert at gcc dot gnu.org

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).