#2175 closed defect

C++ Exception Catch Handler Crash on Sparc ERC32 Simulator(SIS)

Reported by: JunBeom Kim Owned by: Ralf Corsepius
Priority: normal Milestone: 4.11
Component: tool/gcc Version: 4.11
Severity: critical Keywords:
Cc: joel.sherrill@… Blocked By:
Blocking:

Description (last modified by Gedare Bloom)

  • RTEMS : 4.11 version
  • GCC : 4.8.1 & 4.8.2
  • Target : SIS(Sparc Instruction Simulator for ERC32)
  • Testing code : cxx_throw.exe in example_v2
  • Both RTEMS 4.11 and example_v2 code are built.
  • cxx_throw.exe is run.
  • error message is below;


SIS - SPARC instruction simulator 2.7.5, copyright Jiri Gaisler 1995
Bug-reports to jgais@…

sis> load cxx_throw.exe
sis> go
resuming at 0x02000000
Hey I'm in base class constructor number 1 for 0x2081318.
Hey I'm in base class constructor number 2 for 0x2081320.
Hey I'm in derived class constructor number 3 for 0x2081320.

* CONSTRUCTOR/DESTRUCTOR TEST *
Hey I'm in base class constructor number 4 for 0x208c724.
Hey I'm in base class constructor number 5 for 0x208c71c.
Hey I'm in base class constructor number 6 for 0x208c714.
Hey I'm in base class constructor number 7 for 0x208c70c.
Hey I'm in derived class constructor number 8 for 0x208c70c.
Testing a C++ I/O stream
before try block
Unexpected trap ( 7) at address 0x02034A54
memory address not aligned
IU in error mode (257)

826787 02036f14 91d02000 Address 0x02036f14 is out of bounds.


I am guessing that a internal part of _Unwind_RaiseException() occurr memory address alignment problem.

Please let me know how to fix this.

Best Regards,
JunBeom? Kim

Change History (4)

comment:1 Changed on Mar 24, 2014 at 2:01:46 PM by Joel Sherrill

Cc: Joel Sherrill added

The first thing I would check is the alignment and contents of the section that com runs the exception handler pointers.

comment:2 Changed on Nov 22, 2014 at 1:22:58 PM by Gedare Bloom

Cc: Gedare Bloom added
Description: modified (diff)
Milestone: 4.11

comment:3 Changed on Nov 23, 2014 at 3:13:04 PM by Joel Sherrill

Resolution: fixed
Status: newclosed
Version: unknown4.11

comment:4 Changed on Oct 10, 2017 at 5:58:26 AM by Sebastian Huber

Component: GCCtool/gcc
Note: See TracTickets for help on using tickets.