[Bug libfortran/54012] printf crush with -lgfortran
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 30 00:34:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54012
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #2 from kargl at gcc dot gnu.org 2012-10-30 00:33:54 UTC ---
(In reply to comment #0)
> 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)
What does gdb tell you?
More information about the Gcc-bugs
mailing list