#3736 closed defect (fixed)

PowerPC Beatnik BSP C++ exceptions broken

Reported by: Chris Johns Owned by: Sebastian Huber <sebastian.huber@…>
Priority: high Milestone: 5.1
Component: admin Version: 5
Severity: blocker Keywords:
Cc: Blocked By:
Blocking:

Description

Running cdtest.exe fails. I am wondering if there is an issue in the linkcmd scripts this BSP uses. The psim works.

The trace is:

config addr is 0xf1000cf8                                                
config data is 0xf1000cfc                                                
Welcome to RTEMS rtems-5.0.0 (PowerPC/Generic (classic FPU)/beatnik)     
CPU: MPC7457                                                             
Board Type: MVME5500-0161 (S/N E1712C9)                                  
Bus Clock Freq:   133333333 Hz                                           
CPU Clock Freq:  1000000000 Hz                                           
Memory:           536870912 bytes                                        
-----------------------------------------                                
Now BSP_mem_size = 0x1fe00000                                            
Configuration.work_space_size = a170                                     
Page table setup finished; will activate it NOW...                       
Going to start PCI buses scanning and initialization                     
Number of PCI buses found is : 3                                         
MSR 0x2003032                                                            
Exit from bspstart                                                       
Universe II PCI-VME bridge detected at 0x82000000, IRQ 76                
Universe Master Ports:                                                   
Port  VME-Addr   Size       PCI-Adrs   Mode:                             
0:    0x20000000 0x0e000000 0x90000000 A32, D64 [MBLT], Dat, Sup         
1:    0x00000000 0x00ff0000 0x9f000000 A24, D64 [MBLT], Dat, Sup         
2:    0x00000000 0x00010000 0x9fff0000 A16, D64, Dat, Sup                
7:    0x00000000 0x01000000 0x9e000000 CSR, D64, Dat, Sup                
Universe Slave Ports:                                                    
Port  VME-Addr   Size       PCI-Adrs   Mode:                             
0:    0x90000000 0x1fe00000 0x00000000 A32, Pgm, Dat, Sup, Usr, PWEN, PRE
N                                                                        
vmeUniverse IRQ manager: looking for registers on VME...                 
Trying to find CRG on VME...                                             
vmeUniverse IRQ manager - registers not found on VME; falling back to PCI
                                                                         
                                                                         
*** BEGIN OF TEST CONSTRUCTOR/DESTRUCTOR ***                             
*** TEST VERSION: 5.0.0.8a8b95aa1d6932ba9d2acd7a785100f7d0919205-modified
*** TEST STATE: EXPECTED-PASS                                            
*** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API                         
*** TEST TOOLS: 7.4.0 20181206 (RTEMS 5, RSB 9a3e12e5820918057633798c3fe2
a1f952fb4e56, Newlib 1d35a003f)                                          
GLOBAL: Hey I'm in base class constructor number 1 for 0x5c404.          
GLOBAL: Hey I'm in base class constructor number 2 for 0x5c410.          
GLOBAL: Hey I'm in derived class constructor number 3 for 0x5c410.       
LOCAL: Hey I'm in base class constructor number 4 for 0x6cbdc.           
LOCAL: Hey I'm in base class constructor number 5 for 0x6cbd0.           
LOCAL: Hey I'm in base class constructor number 6 for 0x6cbc4.           
LOCAL: Hey I'm in base class constructor number 7 for 0x6cbb8.           
LOCAL: Hey I'm in derived class constructor number 8 for 0x6cbb8.        
IO Stream not tested                                                     
LOCAL: Hey I'm in derived class destructor number 8 for 0x6cbb8.         
Derived class - Instantiation order 8                                    
LOCAL: Hey I'm in base class destructor number 7 for 0x6cbb8.            
Derived class - Instantiation order 8                                    
LOCAL: Hey I'm in base class destructor number 6 for 0x6cbc4.            
Derived class - Instantiation order 6                                    
LOCAL: Hey I'm in base class destructor number 5 for 0x6cbd0.            
Derived class - Instantiation order 5                                    
LOCAL: Hey I'm in base class destructor number 4 for 0x6cbdc.            
Derived class - Instantiation order 5                                    
*** TESTING C++ EXCEPTIONS ***                                           
                                                                         
fatal source: RTEMS_FATAL_SOURCE_EXIT                                    
bsp_fatal_extension(): RTEMS terminated

Change History (3)

comment:1 Changed on Apr 11, 2019 at 6:42:09 AM by Sebastian Huber

Maybe related to #3339.

comment:2 in reply to:  1 Changed on Apr 11, 2019 at 7:06:51 AM by Chris Johns

Replying to Sebastian Huber:

Maybe related to #3339.

If you mean a broken linkcmd file, yes. There are a number of BSP specific linkcmd files and this is hurting us, these BSPs and their users. A common linkcmd file for the arch means a simulator is able to do a lot of the needed testing.

We have a lot of important systems running PowerPC BSPs and there are issues. I think it would be good to sort this out but we need someone to do this or use a support service and we need someone with enough gear or access to people with the gear it to make the changes and get a working base line.

comment:3 Changed on May 7, 2019 at 8:32:31 AM by Sebastian Huber <sebastian.huber@…>

Owner: set to Sebastian Huber <sebastian.huber@…>
Resolution: fixed
Status: newclosed

In f6895c6/rtems:

bsps/powerpc: Fix C++ exception handling

Close #3736.

Note: See TracTickets for help on using tickets.