public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/64478] New: Ada Exception handlers call signal-unsafe malloc/free
@ 2015-01-03  3:45 bernd.edlinger at hotmail dot de
  2015-01-03  3:46 ` [Bug ada/64478] " bernd.edlinger at hotmail dot de
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2015-01-03  3:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64478
           Summary: Ada Exception handlers call signal-unsafe malloc/free
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de

for instance c52104x:
gdb ./c52104x
b s-memory.adb:92
r
Starting program: /home/ed/gnu/gcc-test/c52104x 

,.,. C52104X ACATS 2.5 15-01-03 04:40:03
---- C52104X CHECK THAT IN ARRAY ASSIGNMENTS AND IN SLICE ASSIGNMENTS,
                THE LENGTHS MUST MATCH; ALSO CHECK WHETHER
                CONSTRAINT_ERROR OR STORAGE_ERROR ARE RAISED FOR LARGE
                ARRAYS.
   - C52104X NO CONSTRAINT_ERROR FOR TYPE WITH 'LENGTH = INTEGER'LAST + 
                3.

Program received signal SIGSEGV, Segmentation fault.
c52104x () at c52104x.adb:113
113                                 (IDENT_INT(-2)..IDENT_INT( INTEGER'LAST));
(gdb) c
Continuing.

Breakpoint 1, <__gnat_malloc> (size=size@entry=704) at s-memory.adb:92
92             Result := c_malloc (System.CRTL.size_t (Actual_Size));
(gdb) bt
#0  <__gnat_malloc> (size=size@entry=704) at s-memory.adb:92
#1  0x000000000041ab30 in system.exceptions.machine.new_occurrence () at
s-excmac.ads:183
#2  0x0000000000407603 in
ada.exceptions.exception_propagation.allocate_occurrence () at a-exexpr.adb:188
#3  0x0000000000408475 in ada.exceptions.create_occurrence_from_signal_handler
(e=0x633b60 <storage_error>, m=(system.address) 0x426710) at a-except.adb:1058
#4  0x00000000004084c2 in ada.exceptions.raise_from_signal_handler
(e=<optimized out>, m=<optimized out>) at a-except.adb:1093
#5  <signal handler called>
#6  c52104x () at c52104x.adb:113
(gdb)


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-01-13  9:31 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-03  3:45 [Bug ada/64478] New: Ada Exception handlers call signal-unsafe malloc/free bernd.edlinger at hotmail dot de
2015-01-03  3:46 ` [Bug ada/64478] " bernd.edlinger at hotmail dot de
2015-01-03  3:57 ` 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

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).