[Bug ada/83027] program hangs when Ada.Text_IO is with'ed both in executable and shared library

2017-11-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83027

--- Comment #22 from Eric Botcazou  ---
> Adding binder flag -F solves the problem in the attached examples
> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42630 and
> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42666 but not in my real code:
> 
> https://github.com/vporton/spawn-manager

My gut feeling is that it's a different issue.

[Bug ada/83027] program hangs when Ada.Text_IO is with'ed both in executable and shared library

2017-11-21 Thread porton at narod dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83027

--- Comment #21 from Victor Porton  ---
@Eric Botcazou:

Adding binder flag -F solves the problem in the attached examples
https://gcc.gnu.org/bugzilla/attachment.cgi?id=42630 and
https://gcc.gnu.org/bugzilla/attachment.cgi?id=42666 but not in my real code:

https://github.com/vporton/spawn-manager

[Bug ada/83027] program hangs when Ada.Text_IO is with'ed both in executable and shared library

2017-11-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83027

--- Comment #20 from Eric Botcazou  ---
> Thanks for the small reproducer.  This has apparently never worked 
> correctly...

And the workaround is to pass -F to gnatbind for the main program.

[Bug ada/83027] program hangs when Ada.Text_IO is with'ed both in executable and shared library

2017-11-21 Thread simon at pushface dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83027

simon at pushface dot org changed:

   What|Removed |Added

 CC||simon at pushface dot org

--- Comment #19 from simon at pushface dot org ---
The small reproducer (minimal.tar.gz) doesn’t show the error with

macOS : GCC 6.1.0, GCC 7.1.0, GCC 8.0.0, GNAT GPL 2017
debian jessie: GNAT GPL 2017

NB, for GNAT GPL 2017 I had to add Astrings to the interface set in
ahven_simple_lib.gpr.

[Bug ada/83027] program hangs when Ada.Text_IO is with'ed both in executable and shared library

2017-11-20 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83027

Eric Botcazou  changed:

   What|Removed |Added

   Keywords|wrong-code  |
 Status|WAITING |NEW
Summary|An innocent do-nothing  |program hangs when
   |program hangs if linked |Ada.Text_IO is with'ed both
   |using shared library|in executable and shared
   ||library

--- Comment #18 from Eric Botcazou  ---
> Created attachment 42666 [details]
> Minimal example reprising the bug
> 
> I've created the minimal example reprising the bug.
> 
> The bug is actually awful: Just four innocent (doing nothing) source files
> cause the program to hang infinitely despite it was asked to do none.
> 
> Note that the bug is triggered only for dynamic libraries.

Thanks for the small reproducer.  This has apparently never worked correctly...