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

--- Comment #11 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Sorry.

again the test case c380004
just with this little addition

begin
    Test ("C380004",
          "Check evaluation of discriminant expressions " &
             "when the constraint depends on a discriminant, " &
             "and the discriminants have defaults - discriminant-dependent" &
             "entry families and protected components");


    Comment ("Discriminant-dependent entry families for task types");

+   delay 60.0;

    F1_Poe := 18;


ed@w-ed:~/gnu/gcc-test$ ./c380004 &
[1] 20972
ed@w-ed:~/gnu/gcc-test$ 
,.,. C380004 ACATS 2.5 15-01-03 10:17:46
---- C380004 Check evaluation of discriminant expressions when the
                constraint depends on a discriminant, and the
                discriminants have defaults -
                discriminant-dependententry families and protected
                components.
   - C380004 Discriminant-dependent entry families for task types.

ed@w-ed:~/gnu/gcc-test$ ps
  PID TTY          TIME CMD
20842 pts/9    00:00:00 bash
20972 pts/9    00:00:00 c380004
20974 pts/9    00:00:00 ps
ed@w-ed:~/gnu/gcc-test$ kill -SIGSEGV 20972
ed@w-ed:~/gnu/gcc-test$ ==================
WARNING: ThreadSanitizer: signal-unsafe call inside of a signal (pid=20972)
    #0 malloc ../../../../gcc-trunk/libsanitizer/tsan/tsan_interceptors.cc:491
(libtsan.so.0+0x000000025c33)
    #1 __gnat_malloc /home/ed/gnu/gcc-build/gcc/ada/rts/s-memory.adb:92
(c380004+0x000000436ab0)
    #2 system__task_primitives__operations__timed_delay
/home/ed/gnu/gcc-build/gcc/ada/rts/s-taprop.adb:597 (c380004+0x00000041de9f)
    #3 main /home/ed/gnu/gcc-test/b~c380004.adb:304 (c380004+0x000000404138)

SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal
/home/ed/gnu/gcc-build/gcc/ada/rts/s-memory.adb:92 __gnat_malloc
==================
==================
WARNING: ThreadSanitizer: signal-unsafe call inside of a signal (pid=20972)
    #0 malloc ../../../../gcc-trunk/libsanitizer/tsan/tsan_interceptors.cc:491
(libtsan.so.0+0x000000025c33)
    #1 <null> <null> (ld-linux-x86-64.so.2+0x00000000deab)
    #2 system__task_primitives__operations__timed_delay
/home/ed/gnu/gcc-build/gcc/ada/rts/s-taprop.adb:597 (c380004+0x00000041de9f)
    #3 main /home/ed/gnu/gcc-test/b~c380004.adb:304 (c380004+0x000000404138)

SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal ??:0 ??
==================

[1]+  Aborted                 (core dumped) ./c380004
ed@w-ed:~/gnu/gcc-test$ 


Is this asynchronous enough for you?

Reply via email to