[Bug ada/83027] Hang when attaching a SIGINT handler

tero.koskinen at iki dot fi gcc-bugzilla@gcc.gnu.org
Fri Nov 17 23:10:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83027

--- Comment #14 from Tero Koskinen <tero.koskinen at iki dot fi> ---
Created attachment 42640
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42640&action=edit
ahven sources + modified simple_test

I added a way to reproduce the problem.

Extract all files, check Makefile, run "make all && make run".

Expected results:
"make run" (simple_test) finishes successfully.

Actual results (with gcc 7.2 on Fedora 26):
"make run" (simple_test) gets stuck to infinite loop.

I simplified simple_test.adb into following:
  with Text_IO;

  procedure Simple_Test is
  begin
     null;
  end Simple_Test;

Note that if you remove "for Library_Interface use .." statement from
ahven_simple_lib.gpr, the problem does not appear.

Also, if you use static library, the problem does not appear.

It is required that you use shared library and specify the library interface
files.


More information about the Gcc-bugs mailing list