Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
64 user(s) are online (51 user(s) are browsing Forums)

Members: 1
Guests: 63

billyfish, more...

Support us!

Headlines

Report message:*
 

Re: SDL2

Subject: Re: SDL2
by kas1e on 2020/1/25 10:53:00

@Raziel
You may wait another year :) I can upload test version of libsdl with that fix if you wish to close the ticket. Or can not upload if you do not want to do anything now :)

@Capehill
I was lucky enough and able to reproduce the crash in native-threads on my pegasos2, when DOSBox have "nosound=false" option set. There is crash log :

Crash log for task "dosbox_native_threads"
Generated by GrimReaper 53.19
Crash occurred in module dosbox_native_threads at address 0x7F9CAB58
Type of crash
DSI (Data Storage Interruptexception
Alert number
0x80000003

Register dump
:
GPR (General Purpose Registers):
   
07F9CAB38 62EC4710 00000000 00000000 FFFFFFFF 00000001 021D0F7C 00000000 
   8
19343D00 00000000 021C6A02 65098CE0 2A822444 686D8020 00000000 65E25340 
  16
7F8782B0 00000000 6878E4F0 655CF018 02270000 65E9CC60 00000000 00000000 
  24
64B776B4 00000000 6867DAEC 7F993DC8 62774B18 627747D8 64D6CF0C 65098CC0 


FPR 
(Floating Point RegistersNaN Not a Number):
   
0:              nan              nan              340                0 
   4
:                0            649.8             24.8                0 
   8
:                0              128            649.8          54.9254 
  12
:       4.5036e+15              365                0                0 
  16
:                0                0                0                0 
  20
:                0                0                0                0 
  24
:                0                0                0                0 
  28
:                0                0                0                0 

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


SPRs 
(Special Purpose Registers):
           
Machine State (msr) : 0x0200F030
                Condition 
(cr) : 0x6083BD80
      Instruction Pointer 
(ip) : 0x7F9CAB58
       Xtended Exception 
(xer) : 0x018216A4
                   Count 
(ctr) : 0x6083C0F8
                     Link 
(lr) : 0x0002000E
            DSI Status 
(dsisr) : 0x607EB354
            Data Address 
(dar) : 0x6083C0F8



680x0 emulated registers
:
DATA00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
ADDR
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
FPU0
:                0                0                0                0 
FPU4
:                0                0                0                0 



Symbol info
:
Instruction pointer 0x7F9CAB58 belongs to module "dosbox_native_threads" (PowerPC
SymbolSDL_SYS_CreateThread 0xAC in section 1 offset 0x002AAB34

Stack trace
:
    
SDL_SYS_CreateThread()+0xac (section 1 0x2AAB34)
    
SDL_SYS_CreateThread()+0x8c (section 1 0x2AAB14)
    
open_audio_device()+0x608 (section 1 0x2761E8)
    [
mixer.cpp:722_Z10MIXER_InitP7Section()+0x400 (section 1 0x10DEB8)
    [
setup.cpp:810_ZN6Config4InitEv()+0x54 (section 1 0x23AC24)
    [
sdlmain.cpp:3110main()+0x5ac (section 1 0x158838)
    
native kernel module newlib.library.kmod+0x000020a4
    native kernel module newlib
.library.kmod+0x00002d0c
    native kernel module newlib
.library.kmod+0x00002ee8
    _start
()+0x170 (section 1 0x1920)
    
native kernel module dos.library.kmod+0x00024c18
    native kernel module kernel
+0x000436f0
    native kernel module kernel
+0x00043770

PPC disassembly
:
 
7f9cab50831e8004   lwz               r24,-32764(r30)
 
7f9cab547d234b78   mr                r3,r9
*7f9cab588129005c   lwz               r9,92(r9)
 
7f9cab5c92c10108   stw               r22,264(r1)
 
7f9cab6093210114   stw               r25,276(r1)

System information:

CPU 
 Model
Motorola MPC 7447/7457 Apollo V1.1 
 CPU speed
999 MHz 
 FSB speed
133 MHz 
 Extensions
performancemonitor altivec 

Machine 
 Machine name
Pegasos II 
 Memory
1048576 KB 
 Extensions
bus.pci bus.agp


Cleary SDL, with pthreads we didn't have that crash. Should i compile SDL with debug symbols, so you can see the line exactly?

Interesting that about that DOSBox's options "nosound" written that:

"nosound: enable silent mode, sound is still emulated through". And it crashes when we set it to "false". When we set it to true, then no crash when we use native-threads.

In other words it surely related to creating of audio process.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project