Breaking engines into executable modules

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

User avatar
sev
ScummVM Lead
Posts: 2279
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Re: Breaking engines into executable modules

Post by sev »

Raziel wrote: Tue Oct 08, 2019 6:22 pm what about the engine plugins?
Should those be stripped as well for release?
Normally, yes. What you're stripping is the debug information.


Eugene
User avatar
Raziel
ScummVM Porter
Posts: 1522
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet

Re: Breaking engines into executable modules

Post by Raziel »

Thank you.
User avatar
Raziel
ScummVM Porter
Posts: 1522
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet

Re: Breaking engines into executable modules

Post by Raziel »

I get a crash (reproducable) on starting a shared build with all engines.

Code: Select all

Crash log for task "ScummVM"
Generated by GrimReaper 53.19
Crash occured in module libstdc++.so at address 0x761DC064
Type of crash: DSI (Data Storage Interrupt) exception
Alert number: 0x80000003

Register dump:
GPR (General Purpose Registers):
   0: 00000010 475EFD40 ABADCAFE 47878DEC 478718D4 478776A4 FFFFFFFF 46B78418 
   8: 00000008 47878DEC 475EFD48 47878DEC 00000000 478AA9BC 00000000 4E741340 
  16: 768CAF50 00000000 4EF93760 476DA570 02B30000 02B30000 00000000 00000007 
  24: 6FF8C180 00000003 57955999 00000000 47564AD8 46C55788 4789A49C 46B78418 


FPR (Floating Point Registers, NaN = Not a Number):
   0:              nan              nan     -2.32331e+42              nan 
   4:              nan              nan             1338              128 
   8:              890             1837               52       4.5036e+15 
  12:                1      2.14748e+09                0                0 
  16:                0                0                0                0 
  20:                0                0                0                0 
  24:                0                0                0                0 
  28:                0                0              0.1       4.5036e+15 

FPSCR (Floating Point Status and Control Register): 0x82004000


SPRs (Special Purpose Registers):
           Machine State (msr) : 0x0200B030
                Condition (cr) : 0x5FFE205C
      Instruction Pointer (ip) : 0x761DC064
       Xtended Exception (xer) : 0x46156018
                   Count (ctr) : 0x6FF494D0
                     Link (lr) : 0x7FB04920
            DSI Status (dsisr) : 0x46155DD0
            Data Address (dar) : 0x021AD048



680x0 emulated registers:
DATA: 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
ADDR: 6FFB8700 96BB7000 00000000 00000000 00000000 00000000 00000000 4F961CE0 
FPU0:                0                0                0                0 
FPU4:                0                0                0                0 



Symbol info:
Instruction pointer 0x761DC064 belongs to module "libstdc++.so" (PowerPC) 
Symbol: __dynamic_cast + 0x5C in section 11 offset 0x00002264

Stack trace:
    Games:ScummVM/sobjs/libstdc++.so:__dynamic_cast()+0x5c (section 11 @ 0x2264)
    module ScummVM at 0x768C5FFC (section 4 @ 0x165FD8)
    module ScummVM at 0x768CD334 (section 4 @ 0x16D310)
    module ScummVM at 0x768CB1B4 (section 4 @ 0x16B190)
    native kernel module newlib.library.kmod+0x000020a4
    native kernel module newlib.library.kmod+0x00002d0c
    native kernel module newlib.library.kmod+0x00002ee8
    ScummVM:_start()+0x170 (section 12 @ 0x1AB8)
    native kernel module dos.library.kmod+0x000255c8
    native kernel module kernel+0x000420ac
    native kernel module kernel+0x000420f4

PPC disassembly:
 761dc05c: 7c7f1b78   mr                r31,r3
 761dc060: 7d635b78   mr                r3,r11
*761dc064: 8168001c   lwz               r11,28(r8)
 761dc068: 7fe9fb78   mr                r9,r31
 761dc06c: 7c882378   mr                r8,r4

System information:

CPU 
 Model: P.A. Semi PWRficient PA6T-1682M VB1 
 CPU speed: 1800 MHz 
 FSB speed: 900 MHz 
 Extensions: altivec 

Machine 
 Machine name: AmigaOne X1000 
 Memory: 2097152 KB 
 Extensions: bus.pci bus.pcie 
It's crashing here: https://github.com/scummvm/scummvm/blob ... l.cpp#L294

Anyone got any pointers?

Thank you
Post Reply