From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20150 invoked by alias); 3 Jan 2015 03:45:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20067 invoked by uid 48); 3 Jan 2015 03:45:00 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/64478] New: Ada Exception handlers call signal-unsafe malloc/free Date: Sat, 03 Jan 2015 03:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00081.txt.bz2 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 , m=(system.address) 0x426710) at a-except.adb:1058 #4 0x00000000004084c2 in ada.exceptions.raise_from_signal_handler (e=, m=) at a-except.adb:1093 #5 #6 c52104x () at c52104x.adb:113 (gdb)