c++ throw catch handling stucks in catch on pc386

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Mar 17 09:52:42 UTC 2017


Hello Heinz,

I guess this is:

https://devel.rtems.org/ticket/2830

On 16/03/17 22:23, Heinz P. Junkes wrote:
> Running build/pc386/i386-rtems4.12/c/pc386/testsuites/samples/cdtest
>
> stucks in catch exception
>
> *** BEGIN OF TEST CONSTRUCTOR/DESTRUCTOR ***
> GLOBAL: Hey I'm in base class constructor number 1 for 0x14b410.
> GLOBAL: Hey I'm in base class constructor number 2 for 0x14b404.
> GLOBAL: Hey I'm in derived class constructor number 3 for 0x14b404.
> LOCAL: Hey I'm in base class constructor number 4 for 0x1554f0.
> LOCAL: Hey I'm in base class constructor number 5 for 0x1554fc.
> LOCAL: Hey I'm in base class constructor number 6 for 0x155508.
> LOCAL: Hey I'm in base class constructor number 7 for 0x155514.
> LOCAL: Hey I'm in derived class constructor number 8 for 0x155514.
> IO Stream not tested
> LOCAL: Hey I'm in derived class destructor number 8 for 155514.
> Derived class - Instantiation order 8
> LOCAL: Hey I'm in base class destructor number 7 for 155514.
> Derived class - Instantiation order 8
> LOCAL: Hey I'm in base class destructor number 6 for 155508.
> Derived class - Instantiation order 6
> LOCAL: Hey I'm in base class destructor number 5 for 1554FC.
> Derived class - Instantiation order 5
> LOCAL: Hey I'm in base class destructor number 4 for 1554F0.
> Derived class - Instantiation order 5
> *** TESTING C++ EXCEPTIONS ***
>
> foo_function() catch block called:
>    < foo_function() throw this exception  >
> Success catching a char * exception
> foo_function() re-throwing execption...
> throw std::runtime: caught: thrown std::runtime object
>
> --------- no more output ------------------
>
> Works with RTEMS-beatnik.
>
> rtems master 4.12
>
> commit a11e1ff57688a5cee5b0f807b970fe9eec05ac62
> Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
> Date:   Tue Mar 7 07:58:11 2017 +0100
>
> Started in qemu with
>
> qemu-system-i386 -kernel cdtest.exe -vga std -net 
> nic,vlan=0,model=ne2k_pci -net user,vlan=0 -append 
> "--console=/dev/com1" -serial stdio
>
>
> Cheers,
>
> Heinz
>
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list