public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/64478] Ada Exception handlers call signal-unsafe malloc/free
Date: Sat, 03 Jan 2015 03:46:00 -0000	[thread overview]
Message-ID: <bug-64478-4-rcfatSfoo9@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64478-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
I found this initially with TSAN:

RUN c52104x
^M
,.,. C52104X ACATS 2.5 15-01-03 04:12:21^M
---- C52104X CHECK THAT IN ARRAY ASSIGNMENTS AND IN SLICE ASSIGNMENTS,^M
                THE LENGTHS MUST MATCH; ALSO CHECK WHETHER^M
                CONSTRAINT_ERROR OR STORAGE_ERROR ARE RAISED FOR LARGE^M
                ARRAYS.^M
   - C52104X NO CONSTRAINT_ERROR FOR TYPE WITH 'LENGTH = INTEGER'LAST + ^M
                3.^M
==================^M
^[[1m^[[31mWARNING: ThreadSanitizer: signal-unsafe call inside of a signal
(pid=9681)^M
^[[1m^[[0m    #0 malloc
../../../../gcc-trunk/libsanitizer/tsan/tsan_interceptors.cc:491
(libtsan.so.0+0x000000025c33)^M
    #1 __gnat_malloc /home/ed/gnu/gcc-build/gcc/ada/rts/s-memory.adb:92
(c52104x+0x000000407070)^M
    #2 main <null> (c52104x+0x000000402f93)^M
^M
SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal
/home/ed/gnu/gcc-build/gcc/ada/rts/s-memory.adb:92 __gnat_malloc^M
==================^M
   - C52104X STORAGE_ERROR RAISED WHEN DECLARING TWO PACKED BOOLEAN^M
                ARRAYS WITH INTEGER'LAST + 3 COMPONENTS.^M
==================^M
^[[1m^[[31mWARNING: ThreadSanitizer: signal-unsafe call inside of a signal
(pid=9681)^M
^[[1m^[[0m    #0 free
../../../../gcc-trunk/libsanitizer/tsan/tsan_interceptors.cc:538
(libtsan.so.0+0x000000025f29)^M
    #1 __gnat_free /home/ed/gnu/gcc-build/gcc/ada/rts/s-memory.adb:113
(c52104x+0x0000004070c1)^M
    #2 main <null> (c52104x+0x000000402f93)^M
^M
SUMMARY: ThreadSanitizer: signal-unsafe call inside of a signal
/home/ed/gnu/gcc-build/gcc/ada/rts/s-memory.adb:113 __gnat_free^M
==================^M
==== C52104X PASSED ============================.^M
ThreadSanitizer: reported 2 warnings^M
PASS:   c52104x


  reply	other threads:[~2015-01-03  3:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-03  3:45 [Bug ada/64478] New: " bernd.edlinger at hotmail dot de
2015-01-03  3:46 ` bernd.edlinger at hotmail dot de [this message]
2015-01-03  3:57 ` [Bug ada/64478] " pinskia at gcc dot gnu.org
2015-01-03  7:34 ` bernd.edlinger at hotmail dot de
2015-01-03  7:36 ` pinskia at gcc dot gnu.org
2015-01-03  7:42 ` bernd.edlinger at hotmail dot de
2015-01-03  7:51 ` pinskia at gcc dot gnu.org
2015-01-03  8:20 ` bernd.edlinger at hotmail dot de
2015-01-03  8:37 ` pinskia at gcc dot gnu.org
2015-01-03  8:47 ` bernd.edlinger at hotmail dot de
2015-01-03  8:53 ` pinskia at gcc dot gnu.org
2015-01-03  9:20 ` bernd.edlinger at hotmail dot de
2015-01-03 11:11 ` bernd.edlinger at hotmail dot de
2015-01-04 10:03 ` ebotcazou at gcc dot gnu.org
2015-01-04 11:59 ` bernd.edlinger at hotmail dot de
2015-01-04 12:44 ` bernd.edlinger at hotmail dot de
2015-01-04 15:00 ` ebotcazou at gcc dot gnu.org
2015-01-04 15:26 ` bernd.edlinger at hotmail dot de
2015-01-13  8:58 ` bernd.edlinger at hotmail dot de
2015-01-13  9:31 ` ebotcazou at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-64478-4-rcfatSfoo9@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).