[RTEMS Project] #2175: C++ Exception Catch Handler Crash on Sparc ERC32 Simulator(SIS)

RTEMS trac trac at rtems.org
Sat Nov 22 13:22:58 UTC 2014


#2175: C++ Exception Catch Handler Crash on Sparc ERC32 Simulator(SIS)
----------------------+-----------------------------
 Reporter:  jbkim     |       Owner:  ralf.corsepius
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:  4.11
Component:  GCC       |     Version:  unspecified
 Severity:  critical  |  Resolution:
 Keywords:            |
----------------------+-----------------------------
Changes (by gedare):

 * cc: gedare (added)
 * milestone:   => 4.11


Old description:

> * 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 at wd.estec.esa.nl
>
> 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

New description:

 * 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 at wd.estec.esa.nl
 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

--

--
Ticket URL: <http://devel.rtems.org/ticket/2175#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list