Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shovelknight: missing symbols (sdl2), ptlresolver #37

Closed
ITotalJustice opened this issue Jul 29, 2019 · 29 comments
Closed

Shovelknight: missing symbols (sdl2), ptlresolver #37

ITotalJustice opened this issue Jul 29, 2019 · 29 comments

Comments

@ITotalJustice
Copy link

pi@raspberrypi:/media/pi/Seagate Expansion Drive/linux-games/Shovel_Knight_GOG/data/noarch/game/32 $ BOX86_LD_LIBRARY_PATH=.:fmod/lib/:/lib:./lib:.:./lib32:lib/lib32:/usr/i686-linux-gnu/lib:i386/lib/i386-linux-gnu:/usr/lib/arm-linux-gnueabihf box86 ShovelKnight 
BOX86_LD_LIBRARY_PATH: ./:fmod/lib/:/lib/:./lib/:./:./lib32/:lib/lib32/:/usr/i686-linux-gnu/lib/:i386/lib/i386-linux-gnu/:/usr/lib/arm-linux-gnueabihf/
Using default BOX86_PATH: ./:bin/
Counted 45 Env var
Looking for ShovelKnight
Using native(wrapped) libpthread.so.0
Using emulated ./lib/libfmodex.so
Using native(wrapped) libdl.so.2
Using emulated /usr/i686-linux-gnu/lib/libstdc++.so.6
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated /usr/i686-linux-gnu/lib/libgcc_s.so.1
Using emulated ./lib/libfmodevent.so
Using emulated ./lib/libfmodex-4.44.33.so
Using emulated ./lib/libBox2D.so.2.1.0
Using emulated ./lib/libGLEW.so.1.10
Using native(wrapped) libGL.so.1
Using native(wrapped) libSDL2-2.0.so.0
Error: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb68b3198 (0x6b676)
Error: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb68b3474 (0x6c1e6)
Error: Symbol SDL_JoystickGetGUIDFromString not found, cannot apply R_386_JMP_SLOT @0x891401c (0x804e026)
Error: Symbol SDL_SetEventFilter not found, cannot apply R_386_JMP_SLOT @0x89140f0 (0x804e376)
Error: Symbol SDL_AtomicCAS not found, cannot apply R_386_JMP_SLOT @0x89142c0 (0x804eab6)
ycMemory::Init()
PltResolver: Ofs=0x87de103, Id=456 (IP=(nil)

sorry about the long command at the start, its leftover from the other games i tested :)

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 29, 2019

Ok, commit 9d60c8e should have fixed the SDL2 missing symbol. Maybe it runs now?

@ITotalJustice
Copy link
Author

That fixed the sdl symbols and pltresolver, however the game still fails to boot (flashes a game window then segfaults).

pi@raspberrypi:/media/pi/Seagate Expansion Drive/linux-games/Shovel_Knight_GOG/data/noarch/game/32 $ BOX86_LD_LIBRARY_PATH=.:./lib:fmod/lib/:/lib:x86:lib32:/usr/i686-linux-gnu/lib:/usr/lib/arm-linux-gnueabihf box86 ShovelKnight 
BOX86_LD_LIBRARY_PATH: ./:./lib/:fmod/lib/:/lib/:x86/:lib32/:/usr/i686-linux-gnu/lib/:/usr/lib/arm-linux-gnueabihf/
Using default BOX86_PATH: ./:bin/
Counted 45 Env var
Looking for ShovelKnight
Using native(wrapped) libpthread.so.0
Using emulated ./lib/libfmodex.so
Using native(wrapped) libdl.so.2
Using emulated /usr/i686-linux-gnu/lib/libstdc++.so.6
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated /usr/i686-linux-gnu/lib/libgcc_s.so.1
Using emulated ./lib/libfmodevent.so
Using emulated ./lib/libfmodex-4.44.33.so
Using emulated ./lib/libBox2D.so.2.1.0
Using emulated ./lib/libGLEW.so.1.10
Using native(wrapped) libGL.so.1
Using native(wrapped) libSDL2-2.0.so.0
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb6836198 (0x6b676)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb6836474 (0x6c1e6)
ycMemory::Init()
GL Version: 2.10
Warning, no wrapper for glBufferStorage
Warning, no wrapper for glNamedBufferStorageEXT
Warning, no wrapper for glDebugMessageCallbackARB
Warning, no wrapper for glBindBuffersBase
Warning, no wrapper for glBindBuffersRange
Warning, no wrapper for glBindImageTextures
Warning, no wrapper for glBindSamplers
Warning, no wrapper for glBindTextures
Warning, no wrapper for glBindVertexBuffers
Warning, no wrapper for glDebugMessageCallback
Warning, no wrapper for glXGetMscRateOML
Warning, no wrapper for glXGetSyncValuesOML
Warning, no wrapper for glXSwapBuffersMscOML
Warning, no wrapper for glXWaitForMscOML
Warning, no wrapper for glXWaitForSbcOML
Segmentation fault

and using your gl4es fixes the missing gl warnings, but still crashes.

pi@raspberrypi:/media/pi/Seagate Expansion Drive/linux-games/Shovel_Knight_GOG/data/noarch/game/32 $ LIBGL_ES=2 LIBGL_GL=21  LIBGL_DIBGL_FBOFORCETEX=1 LD_LIBRARY_PATH=~/monolibs BOX86_LD_LIBRARY_PATH=.:./lib:fmod/lib/:/lib:x86:lib32:/usr/i686-linux-gnu/lib:/usr/lib/arm-linux-gnueabihf box86 ShovelKnight 
BOX86_LD_LIBRARY_PATH: ./:./lib/:fmod/lib/:/lib/:x86/:lib32/:/usr/i686-linux-gnu/lib/:/usr/lib/arm-linux-gnueabihf/
Using default BOX86_PATH: ./:bin/
Counted 48 Env var
Looking for ShovelKnight
Using native(wrapped) libpthread.so.0
Using emulated ./lib/libfmodex.so
Using native(wrapped) libdl.so.2
Using emulated /usr/i686-linux-gnu/lib/libstdc++.so.6
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated /usr/i686-linux-gnu/lib/libgcc_s.so.1
Using emulated ./lib/libfmodevent.so
Using emulated ./lib/libfmodex-4.44.33.so
Using emulated ./lib/libBox2D.so.2.1.0
Using emulated ./lib/libGLEW.so.1.10
LIBGL: Initialising gl4es
LIBGL: v1.1.1 built on Jul 27 2019 14:27:11
LIBGL: Using GLES 2.0 backend
LIBGL: loaded: libGLESv2.so
LIBGL: loaded: libEGL.so
LIBGL: Using GLES 2.0 backend
LIBGL: Hardware Full NPOT detected and used
LIBGL: Extension GL_EXT_blend_minmax detected and used
LIBGL: FBO are in core, and so used
LIBGL: PointSprite are in core, and so used
LIBGL: CubeMap are in core, and so used
LIBGL: BlendColor is in core, and so used
LIBGL: Blend Substract is in core, and so used
LIBGL: Blend Function and Equation Separation is in core, and so used
LIBGL: Texture Mirrored Repeat is in core, and so used
LIBGL: Extension GL_OES_mapbuffer detected
LIBGL: Extension GL_OES_element_index_uint detected and used
LIBGL: Extension GL_OES_packed_depth_stencil detected and used
LIBGL: Extension GL_OES_depth24 detected and used
LIBGL: Extension GL_OES_rgb8_rgba8 detected and used
LIBGL: Extension GL_EXT_multi_draw_arrays detected
LIBGL: Extension GL_EXT_texture_format_BGRA8888 detected and used
LIBGL: Extension GL_OES_depth_texture detected and used
LIBGL: Extension GL_OES_texture_stencil8 detected and used
LIBGL: Extension GL_EXT_texture_rg detected and used
LIBGL: Extension GL_OES_texture_float detected and used
LIBGL: Extension GL_OES_texture_half_float detected and used
LIBGL: Extension GL_EXT_color_buffer_float detected and used
LIBGL: high precision float in fragment shader available and used
LIBGL: Extension GL_EXT_frag_depth detected and used
LIBGL: Max vertex attrib: 16
LIBGL: Extension GL_OES_standard_derivatives detected and used
LIBGL: Extension GL_OES_get_program detected
LIBGL: Number of supported Program Binary Format: 0
LIBGL: Max texture size: 8192
LIBGL: Max Varying Vector: 16
LIBGL: Texture Units: 8(8), Max lights: 8, Max planes: 6
LIBGL: Hardware vendor is Broadcom
LIBGL: sRGB surface supported
LIBGL: Targeting OpenGL 2.1
LIBGL: Not trying to batch small subsequent glDrawXXXX
LIBGL: glX Will try to recycle EGL Surface
LIBGL: Current folder is:/media/pi/Seagate Expansion Drive/linux-games/Shovel_Knight_GOG/data/noarch/game/32
Using native(wrapped) libGL.so.1
Using native(wrapped) libSDL2-2.0.so.0
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb6861198 (0x6b676)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb6861474 (0x6c1e6)
ycMemory::Init()
GL Version: 2.10
Segmentation fault

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 29, 2019

I'll try to add some of the missing wrapper for the RPi OpenGL.

But I guess it's not linked to the crash.

Can you do a gdb backtrace of it? (launch box86 using gdb --args then inside gdb use r to run, and when the crash occure, do bt for the backtrace to be copied here, and q to quit).

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 29, 2019

(and I have added more wrpper for OpenGL 4.4 and 4.5)

@ITotalJustice
Copy link
Author

Sorry for taking so long, had a bit of trouble with gdb, wasn't sure how to add the BOX86_LD_LIBRARY_PATH. In the end i just add each need lib to default path.

data/noarch/game/32 $ gdb --args box86 ShovelKnight
GNU gdb (Raspbian 8.2.1-2) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from box86...done.
(gdb) r
Starting program: /usr/local/bin/box86 ShovelKnight
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Using default BOX86_LD_LIBRARY_PATH: ./:lib/
Using default BOX86_PATH: ./:bin/
Counted 47 Env var
Looking for ShovelKnight
Using native(wrapped) libpthread.so.0
Using emulated lib/libfmodex.so
Using native(wrapped) libdl.so.2
Using emulated libstdc++.so.6
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated libgcc_s.so.1
Using emulated lib/libfmodevent.so
Using emulated lib/libfmodex-4.44.33.so
Using emulated lib/libBox2D.so.2.1.0
Using emulated lib/libGLEW.so.1.10
Using native(wrapped) libGL.so.1
Using native(wrapped) libSDL2-2.0.so.0
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb691d198 (0x6b676)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb691d474 (0x6c1e6)
ycMemory::Init()
GL Version: 2.10
Warning, no wrapper for glNamedBufferStorageEXT
Warning, no wrapper for glDebugMessageCallbackARB
Warning, no wrapper for glDebugMessageCallback

Program received signal SIGSEGV, Segmentation fault.
0xa8912e90 in ?? ()
(gdb) bt full
#0  0xa8912e90 in ?? ()
No symbol table info available.
#1  0xb60f8ddc in stdio_size (context=0xa890c750)
    at ./src/file/SDL_rwops.c:351
        pos = 2828086689
        size = <optimized out>
#2  0xa8016e7c in IFp (emu=emu@entry=0xa80cba58, fcn=fcn@entry=3054472632)
    at /home/pi/box86/src/wrapped/generated/wrapper.c:937
        fn = 0xb60f8db8 <stdio_size>
        r = <optimized out>
#3  0xa8054c84 in x86Int3 (emu=0xa80cba58)
    at /home/pi/box86/src/emu/x86int3.c:186
        w = 0xa8016e68 <IFp>
        addr = 3054472632
#4  0xa802514c in Run (emu=0xa80cba58) at /home/pi/box86/src/emu/x86run.c:865
        opcode = <optimized out>
        nextop = <optimized out>
        oped = <optimized out>
        ea1 = <optimized out>
        tmp8u = <optimized out>
        tmp8u2 = <optimized out>
        tmp8s = <optimized out>
        tmp16u = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
        tmp16u2 = <optimized out>
        tmp16s = <optimized out>
        tmp32u = <optimized out>
        tmp32u2 = <optimized out>
        tmp32u3 = 2828060496
        tmp32s = <optimized out>
        tmp64u = <optimized out>
        tmp64s = -6300204231373568176
        ip = <optimized out>
        old_ip = 2828086688
        d = -1.6028890291076219e-115
        f = -7.22539094e-15
        ll = <optimized out>
        opex = <optimized out>
        eax1 = {q = {13138145944414239320, 12107693112970469968}, sq = {
            -5308598129295312296, -6339050960739081648}, d = {
            -5.4932024118559306e-47, -7.3495436543683432e-116}, f = {
            -7.81196803e-15, -3.16010119e-06, -7.7928793e-15, 
            -7.50327196e-15}, ud = {2819406424, 3058962976, 2819383888, 
            2819041980}, sd = {-1475560872, -1236004320, -1475583408, 
            -1475925316}, uw = {47704, 43020, 4640, 46676, 25168, 43020, 
            10940, 43015}, sw = {-17832, -22516, 4640, -18860, 25168, -22516, 
            10940, -22521}, ub = "X\272\f\250 \022T\266Pb\f\250\274*\a\250", 
--Type <RET> for more, q to quit, c to continue without paging--
          sb = "X\272\f\250 \022T\266Pb\f\250\274*\a\250"}
        opem = <optimized out>
        baseopcodes = {0xa8029a4c <Run+28668>, 0xa8029ad0 <Run+28800>, 
          0xa8029b50 <Run+28928>, 0xa8029bd4 <Run+29060>, 
          0xa8029c54 <Run+29188>, 0xa8029c90 <Run+29248>, 
          0xa802ac84 <Run+33332>, 0xa802acac <Run+33372>, 
          0xa8029ccc <Run+29308>, 0xa8029d48 <Run+29432>, 
          0xa8029dc0 <Run+29552>, 0xa8029e3c <Run+29676>, 
          0xa8029eb4 <Run+29796>, 0xa8029ee8 <Run+29848>, 
          0xa8022d90 <Run+832>, 0xa802acd4 <Run+33412>, 
          0xa8029f1c <Run+29900>, 0xa8029f90 <Run+30016>, 
          0xa802a000 <Run+30128>, 0xa802a074 <Run+30244>, 
          0xa802a0e4 <Run+30356>, 0xa802a110 <Run+30400>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa802a13c <Run+30444>, 
          0xa802a1b0 <Run+30560>, 0xa802a220 <Run+30672>, 
          0xa802a294 <Run+30788>, 0xa802a304 <Run+30900>, 
          0xa802a330 <Run+30944>, 0xa80284bc <Run+23148>, 
          0xa80284e4 <Run+23188>, 0xa802a35c <Run+30988>, 
          0xa802a3d8 <Run+31112>, 0xa802a450 <Run+31232>, 
          0xa802a4cc <Run+31356>, 0xa802a544 <Run+31476>, 
          0xa802a578 <Run+31528>, 0xa8022d90 <Run+832>, 
          0xa802850c <Run+23228>, 0xa802a5ac <Run+31580>, 
          0xa802a630 <Run+31712>, 0xa802a6b0 <Run+31840>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa802a734 <Run+31972>, 0xa802a7b4 <Run+32100>, 
          0xa802a7f0 <Run+32160>, 0xa8028538 <Run+23272>, 
          0xa8028554 <Run+23300>, 0xa802a82c <Run+32220>, 
          0xa802a8a8 <Run+32344>, 0xa802a920 <Run+32464>, 
          0xa802a99c <Run+32588>, 0xa802aa14 <Run+32708>, 
          0xa802aa48 <Run+32760>, 0xa8022d90 <Run+832>, 
          0xa8032dc4 <Run+66420>, 0xa802aa7c <Run+32812>, 
          0xa802aaec <Run+32924>, 0xa802ab58 <Run+33032>, 
          0xa802abc8 <Run+33144>, 0xa802ac34 <Run+33252>, 
          0xa802ac5c <Run+33292>, 0xa8022d90 <Run+832>, 
          0xa8032df0 <Run+66464>, 0xa8032e1c <Run+66508>, 
          0xa8032e20 <Run+66512>, 0xa8032e24 <Run+66516>, 
          0xa8032e28 <Run+66520>, 0xa8032e2c <Run+66524>, 
          0xa8032e30 <Run+66528>, 0xa8022c70 <Run+544>, 0xa8022c70 <Run+544>, 
          0xa8032e34 <Run+66532>, 0xa8032e38 <Run+66536>, 
          0xa8032e3c <Run+66540>, 0xa8032e40 <Run+66544>, 
          0xa8032e44 <Run+66548>, 0xa8032e48 <Run+66552>, 
          0xa8022c34 <Run+484>, 0xa8022c34 <Run+484>, 0xa8032e78 <Run+66600>, 
          0xa8032e7c <Run+66604>, 0xa8032e80 <Run+66608>, 
          0xa8032e84 <Run+66612>, 0xa8032e4c <Run+66556>, 
          0xa8032e88 <Run+66616>, 0xa8022cdc <Run+652>, 0xa8022cdc <Run+652>, 
          0xa8032e8c <Run+66620>, 0xa8032e90 <Run+66624>, 
          0xa8032e94 <Run+66628>, 0xa8032e98 <Run+66632>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8032e9c <Run+66636>, 0xa8032ea0 <Run+66640>, 
          0xa8022c00 <Run+432>, 0xa8022c00 <Run+432>, 0xa8032ea4 <Run+66644>, 
          0xa8032f5c <Run+66828>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa80277ac <Run+19804>, 0xa8022de4 <Run+916>, 
          0xa802b2c8 <Run+34936>, 0xa802b300 <Run+34992>, 
          0xa802b32c <Run+35036>, 0xa802b3ac <Run+35164>, 
          0xa80235e4 <Run+2964>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8023708 <Run+3256>, 
          0xa802373c <Run+3308>, 0xa8023770 <Run+3360>, 
          0xa80237a4 <Run+3412>, 0xa8023f6c <Run+5404>, 
          0xa8023fa0 <Run+5456>, 0xa8023fd4 <Run+5508>, 
          0xa802400c <Run+5564>, 0xa802404c <Run+5628>, 
          0xa8024080 <Run+5680>, 0xa80240b4 <Run+5732>, 
          0xa80240e8 <Run+5784>, 0xa802411c <Run+5836>, 
          0xa8024154 <Run+5892>, 0xa802418c <Run+5948>, 
          0xa80241c4 <Run+6004>, 0xa8024208 <Run+6072>, 
          0xa802427c <Run+6188>, 0xa8022d90 <Run+832>, 0xa80242f8 <Run+6312>, 
          0xa8024344 <Run+6388>, 0xa80237d8 <Run+3464>, 
          0xa8023844 <Run+3572>, 0xa80238cc <Run+3708>, 
          0xa8023950 <Run+3840>, 0xa80239b8 <Run+3944>, 
          0xa8023a1c <Run+4044>, 0xa8023a84 <Run+4148>, 0xa8022d90 <Run+832>, 
          0xa8023ae8 <Run+4248>, 0xa8022d90 <Run+832>, 0xa8023b48 <Run+4344>, 
          0xa8023bb0 <Run+4448>, 0xa8023bcc <Run+4476>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8023bd0 <Run+4480>, 0xa8023bd4 <Run+4484>, 
          0xa8023bd8 <Run+4488>, 0xa8023bdc <Run+4492>, 0xa8022cac <Run+604>, 
          0xa8022cac <Run+604>, 0xa8023be0 <Run+4496>, 0xa8023c04 <Run+4532>, 
          0xa8022d90 <Run+832>, 0xa8023c2c <Run+4572>, 0xa8023c48 <Run+4600>, 
          0xa8023c8c <Run+4668>, 0xa8023cd8 <Run+4744>, 
          0xa8023d34 <Run+4836>, 0xa8023d6c <Run+4892>, 
          0xa8023d90 <Run+4928>, 0xa8023db4 <Run+4964>, 
          0xa8023dd8 <Run+5000>, 0xa8023dfc <Run+5036>, 
          0xa8023e4c <Run+5116>, 0xa8023e9c <Run+5196>, 
          0xa8023ef0 <Run+5280>, 0xa8023f44 <Run+5364>, 
          0xa802adfc <Run+33708>, 0xa802ae24 <Run+33748>, 
          0xa802ae68 <Run+33816>, 0xa8024f50 <Run+9472>, 
          0xa8024f8c <Run+9532>, 0xa8024fc8 <Run+9592>, 
          0xa8025014 <Run+9668>, 0xa802b040 <Run+34288>, 
          0xa802b044 <Run+34292>, 0xa8022d68 <Run+792>, 0xa8022d68 <Run+792>, 
          0xa8024470 <Run+6688>, 0xa8024474 <Run+6692>, 0xa8022d40 <Run+752>, 
          0xa8022d40 <Run+752>, 0xa8024460 <Run+6672>, 0xa8024464 <Run+6676>, 
          0xa8024468 <Run+6680>, 0xa802446c <Run+6684>, 
          0xa80251e8 <Run+10136>, 0xa80251ec <Run+10140>, 
          0xa8022ad4 <Run+132>, 0xa8022ad4 <Run+132>, 0xa80251f0 <Run+10144>, 
          0xa8025264 <Run+10260>, 0xa80243b4 <Run+6500>, 
          0xa80243e4 <Run+6548>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8024408 <Run+6584>, 0xa8025060 <Run+9744>...}
--Type <RET> for more, q to quit, c to continue without paging--
        opcodes0f = {0xa8022d90 <Run+832> <repeats 16 times>, 
          0xa802acec <Run+33436>, 0xa802ad74 <Run+33572>, 
          0xa80252e0 <Run+10384>, 0xa8025378 <Run+10536>, 
          0xa8025420 <Run+10704>, 0xa80254cc <Run+10876>, 
          0xa8025564 <Run+11028>, 0xa8025608 <Run+11192>, 
          0xa80256ac <Run+11356>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8025708 <Run+11448>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa802574c <Run+11516>, 
          0xa8025834 <Run+11748>, 0xa8025920 <Run+11984>, 
          0xa8022d90 <Run+832>, 0xa80247f8 <Run+7592>, 0xa80248b8 <Run+7784>, 
          0xa8022e24 <Run+980>, 0xa8022e24 <Run+980>, 0xa8022d90 <Run+832>, 
          0xa8024664 <Run+7188>, 0xa8022d90 <Run+832> <repeats 14 times>, 
          0xa8024690 <Run+7232>, 0xa8024708 <Run+7352>, 
          0xa8024780 <Run+7472>, 0xa80271c8 <Run+18296>, 
          0xa8027240 <Run+18416>, 0xa80272b8 <Run+18536>, 
          0xa8027330 <Run+18656>, 0xa80273ac <Run+18780>, 
          0xa80244fc <Run+6828>, 0xa8024574 <Run+6948>, 
          0xa80245ec <Run+7068>, 0xa8026d08 <Run+17080>, 
          0xa8026d80 <Run+17200>, 0xa8026dfc <Run+17324>, 
          0xa8026e78 <Run+17448>, 0xa8026ef4 <Run+17572>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8026204 <Run+14260>, 0xa8026294 <Run+14404>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa80263d8 <Run+14728>, 
          0xa80264dc <Run+14988>, 0xa80265e0 <Run+15248>, 
          0xa80266e4 <Run+15508>, 0xa80267e8 <Run+15768>, 
          0xa80268fc <Run+16044>, 0xa8026a10 <Run+16320>, 
          0xa8026af0 <Run+16544>, 0xa8026bf4 <Run+16804>, 
          0xa8028580 <Run+23344>, 0xa802879c <Run+23884>, 
          0xa80288b0 <Run+24160>, 0xa8028acc <Run+24700>, 
          0xa8028b64 <Run+24852>, 0xa8028bf4 <Run+24996>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8028c74 <Run+25124>, 
          0xa8028e34 <Run+25572>, 0xa8028ed8 <Run+25736>, 
          0xa8028f7c <Run+25900>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8029008 <Run+26040>, 
          0xa8029088 <Run+26168>, 0xa8029128 <Run+26328>, 
          0xa8029220 <Run+26576>, 0xa8022d90 <Run+832>, 
          0xa80292c4 <Run+26740>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa80293c4 <Run+26996>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa80296d0 <Run+27776>, 
          0xa8029734 <Run+27876>, 0xa8026f7c <Run+17708>, 
          0xa8026fb0 <Run+17760>, 0xa8026fe4 <Run+17812>, 
          0xa8027018 <Run+17864>, 0xa802704c <Run+17916>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8027080 <Run+17968>, 0xa80270b4 <Run+18020>, 
          0xa80270ec <Run+18076>, 0xa802712c <Run+18140>, 
          0xa8027160 <Run+18192>, 0xa8027194 <Run+18244>, 
          0xa80259d4 <Run+12164>, 0xa8025a08 <Run+12216>, 
          0xa8025a40 <Run+12272>, 0xa8025a78 <Run+12328>, 
          0xa8025ab0 <Run+12384>, 0xa8025af4 <Run+12452>, 
          0xa8025b60 <Run+12560>, 0xa8025bcc <Run+12668>, 
          0xa8025c38 <Run+12776>, 0xa8025ca4 <Run+12884>, 
          0xa8025d10 <Run+12992>, 0xa8025d7c <Run+13100>, 
          0xa8025df8 <Run+13224>, 0xa8025e70 <Run+13344>, 
          0xa8025edc <Run+13452>, 0xa8025f48 <Run+13560>, 
          0xa8025fb4 <Run+13668>, 0xa8026020 <Run+13776>, 
          0xa8026090 <Run+13888>, 0xa8026104 <Run+14004>, 
          0xa8026184 <Run+14132>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa80297d4 <Run+28036>, 0xa8029894 <Run+28228>, 
          0xa8022f04 <Run+1204>, 0xa8022f04 <Run+1204>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa802991c <Run+28364>, 
          0xa802302c <Run+1500>, 0xa802302c <Run+1500>, 
          0xa80299ac <Run+28508>, 0xa802491c <Run+7884>, 
          0xa8024a18 <Run+8136>, 0xa80293ec <Run+27036>, 
          0xa8022d90 <Run+832>, 0xa8029470 <Run+27168>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8029504 <Run+27316>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8029560 <Run+27408>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8027878 <Run+20008>, 0xa80277e4 <Run+19860>, 
          0xa8027928 <Run+20184>, 0xa802799c <Run+20300>, 
          0xa8027a10 <Run+20416>, 0xa8027a6c <Run+20508>, 
          0xa8027ad0 <Run+20608>, 0xa8027b5c <Run+20748>, 
          0xa8027be4 <Run+20884>, 0xa8022d90 <Run+832>, 
          0xa8027c68 <Run+21016>, 0xa8027ce4 <Run+21140>, 
          0xa8027d64 <Run+21268>, 0xa8027e78 <Run+21544>, 
          0xa8027efc <Run+21676>, 0xa8027f00 <Run+21680>, 
          0xa8027f04 <Run+21684>, 0xa8027f08 <Run+21688>, 
          0xa8027f0c <Run+21692>, 0xa8027f10 <Run+21696>, 
          0xa8022aa8 <Run+88>, 0xa8022aa8 <Run+88>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>...}
        opcodes66 = {0xa8022d90 <Run+832>, 0xa80276ac <Run+19548>, 
          0xa8022d90 <Run+832>, 0xa802772c <Run+19676>, 0xa8022d90 <Run+832>, 
          0xa802754c <Run+19196>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8027588 <Run+19256>, 0xa8022d90 <Run+832>, 
          0xa8027600 <Run+19376>, 0xa8022d90 <Run+832>, 
          0xa8027678 <Run+19496>, 0xa8022d90 <Run+832>, 
          0xa8033290 <Run+67648>, 0xa8022d90 <Run+832>, 
          0xa8033698 <Run+68680>, 0xa8022d90 <Run+832>, 
          0xa8033708 <Run+68792>, 0xa8022d90 <Run+832>, 
          0xa8033778 <Run+68904>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8022d90 <Run+832>, 0xa80337a4 <Run+68948>, 0xa8022d90 <Run+832>, 
          0xa8033814 <Run+69060>, 0xa8022d90 <Run+832>, 
          0xa8027430 <Run+18912>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa802745c <Run+18956>, 0xa8022d90 <Run+832>, 
          0xa80274d4 <Run+19076>, 0xa8022d90 <Run+832>, 
          0xa8032fec <Run+66972>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8033020 <Run+67024>, 0xa8022d90 <Run+832>, 
          0xa80330a0 <Run+67152>, 0xa8022d90 <Run+832>, 
          0xa8033130 <Run+67296>, 0xa802d8c8 <Run+44664>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa803316c <Run+67356>, 
          0xa8022d90 <Run+832>, 0xa80331e4 <Run+67476>, 0xa8022d90 <Run+832>, 
          0xa803325c <Run+67596>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa802d8e4 <Run+44692>, 0xa8022d90 <Run+832>, 
          0xa802d950 <Run+44800>, 0xa8022d90 <Run+832>, 
          0xa802d9bc <Run+44908>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802d9e4 <Run+44948>, 0xa802d9e8 <Run+44952>, 
          0xa802d9ec <Run+44956>, 0xa802d9f0 <Run+44960>, 
          0xa802d9f4 <Run+44964>, 0xa802d9f8 <Run+44968>, 
          0xa8022bc0 <Run+368>, 0xa8022bc0 <Run+368>, 0xa802d9fc <Run+44972>, 
          0xa802da00 <Run+44976>, 0xa802b680 <Run+35888>, 
          0xa802b684 <Run+35892>, 0xa802b688 <Run+35896>, 
          0xa802b68c <Run+35900>, 0xa8022b80 <Run+304>, 0xa8022b80 <Run+304>, 
          0xa802b690 <Run+35904>, 0xa802b694 <Run+35908>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa802b698 <Run+35912>, 0xa802b69c <Run+35916>, 
          0xa802b6a0 <Run+35920>, 0xa802b6a4 <Run+35924>, 
          0xa8022b50 <Run+256>, 0xa8022b50 <Run+256>, 0xa802b6a8 <Run+35928>, 
          0xa802b6ac <Run+35932>, 0xa802b6b0 <Run+35936>, 
          0xa802b6b4 <Run+35940>, 0xa8024478 <Run+6696>, 
          0xa802447c <Run+6700>, 0xa8022b20 <Run+208>, 0xa8022b20 <Run+208>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022de4 <Run+916>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8024480 <Run+6704>, 0xa8023664 <Run+3092>, 
          0xa802368c <Run+3132>, 0xa8022d90 <Run+832> <repeats 21 times>, 
          0xa8023220 <Run+2000>, 0xa8022d90 <Run+832>, 0xa8023220 <Run+2000>, 
          0xa8022d90 <Run+832>, 0xa802f0c4 <Run+50804>, 0xa8022d90 <Run+832>, 
          0xa802f1c4 <Run+51060>, 0xa8022d90 <Run+832>, 
          0xa802f230 <Run+51168>, 0xa8022d90 <Run+832>, 
          0xa80295c4 <Run+27508>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8029628 <Run+27608>, 
          0xa8029688 <Run+27704>, 0xa8022d90 <Run+832>, 
          0xa80296a4 <Run+27732>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802b048 <Run+34296>, 0xa802b06c <Run+34332>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa802b098 <Run+34376>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8022d90 <Run+832>, 0xa802b0d4 <Run+34436>, 0xa8022d90 <Run+832>, 
          0xa802b0f8 <Run+34472>, 0xa8022d90 <Run+832>, 
          0xa802b11c <Run+34508>, 0xa8022d90 <Run+832>, 
          0xa802b16c <Run+34588>, 0xa8022d90 <Run+832>, 
          0xa802b1c0 <Run+34672>, 0xa8022d90 <Run+832>, 
          0xa802b1e8 <Run+34712>, 0xa8022d90 <Run+832>, 
          0xa802b22c <Run+34780>, 0xa8022d90 <Run+832>, 
          0xa802b268 <Run+34840>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802b2b4 <Run+34916>, 0xa802b2b8 <Run+34920>, 
          0xa802b2bc <Run+34924>, 0xa802b2c0 <Run+34928>, 
          0xa802b2c4 <Run+34932>, 0xa802b530 <Run+35552>, 
          0xa8022af8 <Run+168>, 0xa8022af8 <Run+168>, 0xa8022d90 <Run+832>, 
          0xa802b534 <Run+35556>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802b5b0 <Run+35680>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa802343c <Run+2540>, 
          0xa8022d90 <Run+832>...}
        opcodes660f = {0xa8022d90 <Run+832> <repeats 16 times>, 
          0xa8031c68 <Run+61976>, 0xa8031cf0 <Run+62112>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8031d78 <Run+62248>, 0xa8031de8 <Run+62360>, 
          0xa8031e58 <Run+62472>, 0xa8031efc <Run+62636>, 
          0xa8031fb0 <Run+62816>, 0xa8032020 <Run+62928>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa80328bc <Run+65132>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8032900 <Run+65200>, 
          0xa80329e8 <Run+65432>, 0xa8032ad4 <Run+65668>, 
          0xa8022d90 <Run+832>, 0xa8032bac <Run+65884>, 
          0xa8032c9c <Run+66124>, 0xa8023118 <Run+1736>, 
          0xa8023118 <Run+1736>, 0xa8022d90 <Run+832> <repeats 16 times>, 
          0xa80332a8 <Run+67672>, 0xa8033324 <Run+67796>, 
          0xa80333a0 <Run+67920>, 0xa803341c <Run+68044>, 
          0xa8033498 <Run+68168>, 0xa8033514 <Run+68292>, 
          0xa8033590 <Run+68416>, 0xa8033610 <Run+68544>, 
          0xa8031864 <Run+60948>, 0xa80318e0 <Run+61072>, 
          0xa803195c <Run+61196>, 0xa80319e0 <Run+61328>, 
          0xa8031a5c <Run+61452>, 0xa8031adc <Run+61580>, 
          0xa8031b5c <Run+61708>, 0xa8031bdc <Run+61836>, 
          0xa803208c <Run+63036>, 0xa8032104 <Run+63156>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8032234 <Run+63460>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa803233c <Run+63724>, 0xa8032444 <Run+63988>, 
          0xa803254c <Run+64252>, 0xa8032654 <Run+64516>, 
          0xa8032788 <Run+64824>, 0xa802f294 <Run+51268>, 
          0xa802f3a4 <Run+51540>, 0xa802f4ac <Run+51804>, 
          0xa802f5e0 <Run+52112>, 0xa802f78c <Run+52540>, 
          0xa802f8c0 <Run+52848>, 0xa802fa6c <Run+53276>, 
          0xa802fb48 <Run+53496>, 0xa802fc1c <Run+53708>, 
          0xa802fcc8 <Run+53880>, 0xa802ffe4 <Run+54676>, 
          0xa80301d8 <Run+55176>, 0xa803036c <Run+55580>, 
          0xa8030490 <Run+55872>, 0xa80307ac <Run+56668>, 
          0xa8030890 <Run+56896>, 0xa8030964 <Run+57108>, 
          0xa8030a00 <Run+57264>, 0xa8030c20 <Run+57808>, 
          0xa8030cc4 <Run+57972>, 0xa8030d78 <Run+58152>, 
          0xa8030dfc <Run+58284>, 0xa8030ee4 <Run+58516>, 
          0xa8031018 <Run+58824>, 0xa80310dc <Run+59020>, 
          0xa80311a0 <Run+59216>, 0xa8031214 <Run+59332>, 
          0xa80313f8 <Run+59816>, 0xa803156c <Run+60188>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8031690 <Run+60480>, 
          0xa80316f8 <Run+60584>, 0xa8022d90 <Run+832> <repeats 35 times>, 
          0xa80317e4 <Run+60820>, 0xa8022f98 <Run+1352>, 
          0xa8022f98 <Run+1352>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802f130 <Run+50912>, 0xa8023360 <Run+2320>, 
          0xa8023360 <Run+2320>, 0xa8022d90 <Run+832>, 
          0xa802f04c <Run+50684>, 0xa8022d90 <Run+832>, 
          0xa802ef34 <Run+50404>, 0xa8022d90 <Run+832>, 
          0xa802efb8 <Run+50536>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802eb74 <Run+49444>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa802ebd0 <Run+49536>, 
          0xa802ec60 <Run+49680>, 0xa802ecd4 <Run+49796>, 
          0xa802ed48 <Run+49912>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802eda4 <Run+50004>, 0xa802ee2c <Run+50140>, 
          0xa8022d90 <Run+832>, 0xa802eebc <Run+50284>, 
          0xa802da04 <Run+44980>, 0xa802da84 <Run+45108>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa8022d90 <Run+832>, 0xa802db78 <Run+45352>, 
          0xa802dc40 <Run+45552>, 0xa802dd08 <Run+45752>, 
          0xa802ddd0 <Run+45952>, 0xa802ded4 <Run+46212>, 
          0xa802e008 <Run+46520>, 0xa802e0a4 <Run+46676>, 
          0xa802e24c <Run+47100>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802e3f0 <Run+47520>, 0xa802e4f8 <Run+47784>, 
          0xa8022d90 <Run+832>, 0xa802e6dc <Run+48268>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa802e87c <Run+48684>, 0xa8022d90 <Run+832>, 
          0xa802e984 <Run+48948>, 0xa802ea9c <Run+49228>, 
          0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 0xa802be94 <Run+37956>, 
          0xa802c000 <Run+38320>, 0xa8022d90 <Run+832>, 
          0xa802c10c <Run+38588>, 0xa8022d90 <Run+832>, 0xa8022d90 <Run+832>, 
          0xa802c4a4 <Run+39508>, 0xa802c5a8 <Run+39768>...}
        i = <optimized out>
        i = <optimized out>
        i = <optimized out>
        sib = <optimized out>
        base = <optimized out>
        base = <optimized out>
        sib = <optimized out>
#5  0xa8006a14 in main (argc=<optimized out>, argv=<optimized out>, 
    env=<optimized out>) at /home/pi/box86/src/main.c:425

        context = 0xa80c9150
        p = <optimized out>
        prog = <optimized out>
        f = <optimized out>
        elf_header = 0xa80cca60
        mainelf = <optimized out>
        ret = <optimized out>

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 29, 2019

Ah, so thre is an issue with SDL_RWops... damn.
I can't understand what is happening with the trace. But it's interresting.

Can you do another run with BOX86_LOG=DEBUG to print all function calls... That will be a very long listing probably, I'm mostly interrested in the few late ones...

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 29, 2019

Ah no wait, it's ok, I think I know what is happening...

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 29, 2019

Ok, I pushed a hack/workaround. I hope it works.

@ITotalJustice
Copy link
Author

Just tried it, and sadly i get the same seg fault error. Would you like me to bt full again or bt full with log=debug?

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

maybe the BOX86_LOG=DEBUG then.

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

So, I have completly changed the way SDL2 RWops are handled. Hopefully, I didn't broke anything and everything is working fine.

This need some testing of course. If you can try on ShovelKnight.

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

And I fixed plenty of issues. It should works now.

@ITotalJustice
Copy link
Author

ITotalJustice commented Jul 30, 2019 via email

@ITotalJustice
Copy link
Author

just tried, and sadly it still seg faults.
trying to boot normally

pi@raspberrypi:/media/pi/Seagate Expansion Drive/linux-games/Shovel_Knight_GOG/data/noarch/game/32 $ BOX86_LD_LIBRARY_PATH=.:lib:lib/lib:x86:lib32:/usr/i686-linux-gnu/lib:/usr/lib/arm-linux-gnueabihf box86 ShovelKnight 
BOX86_LD_LIBRARY_PATH: ./:lib/:lib/lib/:x86/:lib32/:/usr/i686-linux-gnu/lib/:/usr/lib/arm-linux-gnueabihf/
Using default BOX86_PATH: ./:bin/
Counted 45 Env var
Looking for ShovelKnight
Using native(wrapped) libpthread.so.0
Using emulated lib/libfmodex.so
Using native(wrapped) libdl.so.2
Using emulated libstdc++.so.6
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated libgcc_s.so.1
Using emulated lib/libfmodevent.so
Using emulated lib/libfmodex-4.44.33.so
Using emulated lib/libBox2D.so.2.1.0
Using emulated lib/libGLEW.so.1.10
Using native(wrapped) libGL.so.1
Using native(wrapped) libSDL2-2.0.so.0
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb686f198 (0x6b676)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb686f474 (0x6c1e6)
ycMemory::Init()
GL Version: 2.10
Warning, no wrapper for glNamedBufferStorageEXT
Warning, no wrapper for glDebugMessageCallbackARB
Warning, no wrapper for glDebugMessageCallback
Warning: Binding 1 Updated: 03000000ba2200002010000001010000,JessTechnologyUSBGameController,a:b2,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a3,righty:a2,start:b9,x:b3,y:b0,,
Warning: Binding 2 Updated: 030000006d04000019c2000010010000,LogitechCordlessRumblePad2,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,,
Warning: Binding 3 Updated: 030000006d0400001dc2000014400000,LogitechF310Gamepad(XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 4 Updated: 030000006d0400001ec2000020200000,LogitechF510Gamepad(XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 5 Updated: 030000006d04000019c2000011010000,LogitechF710Gamepad(DInput),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,,
Warning: Binding 6 Updated: 030000006d0400001fc2000005030000,LogitechF710Gamepad(XInput),a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 7 Updated: 030000004c0500006802000011010000,PS3Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,,
Warning: Binding 8 Updated: 030000004c050000c405000011010000,PS4Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,,
Warning: Binding 9 Updated: 03000000de280000ff11000001000000,ValveStreamingGamepad,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 10 Updated: 030000005e0400008e02000014010000,X360Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 11 Updated: 030000005e0400008e02000010010000,X360Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 12 Updated: 030000005e0400001907000000010000,X360WirelessController,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 13 Updated: 030000005e0400009102000007010000,X360WirelessController,a:b0,b:b1,back:b6,dpdown:b14,dpleft:b11,dpright:b12,dpup:b13,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,,
Warning: Binding 14 Updated: 060000004c0500006802000000010000,PLAYSTATION(R)3Controller(E0:AE:5E:0C:E1:11),a:b14,b:b13,y:b12,x:b15,start:b3,guide:b16,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,
Warning: Binding 15 Updated: 050000007e0500003003000001000000,NintendoWiiRemoteProController,a:b0,b:b1,y:b2,x:b3,start:b9,guide:b10,back:b8,leftstick:b11,rightstick:b12,leftshoulder:b4,rightshoulder:b5,dpup:b13,dpleft:b15,dpdown:b14,dpright:b16,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,
Warning: Binding 17 Updated: 030000008f0e00001330000010010000,SnesMayflashAdapter,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,righttrigger:,
Warning: Binding 18 Updated: 0000000058626f782033363020576900,Xbox360Wireless,a:b0,b:b1,y:b3,x:b2,start:b9,guide:b10,back:b8,leftstick:b11,rightstick:b12,leftshoulder:b4,rightshoulder:b5,dpup:b15,dpleft:b13,dpdown:b16,dpright:b14,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,
Warning: Binding 20 Updated: 03000000790000000600000010010000,DragonRiseInc.GenericUSBJoystick,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:b6,righttrigger:b7,
Warning: Binding 21 Updated: 030000006d04000018c2000010010000,LogitechRumblepad2USB,a:b1,b:b2,y:b3,x:b0,start:b9,guide:,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,
Warning: Binding 22 Updated: 030000006f0e00001f01000000010000,RockCandyXBox-360,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,
Warning: Binding 23 Updated: 0300000000f00000f100000000010000,RetroUSB.comSNESRetroPort,a:b1,b:b5,y:b4,x:b0,start:b3,back:b2,leftx:a0,lefty:a1,lefttrigger:b6,righttrigger:b7,
Warning: Binding 27 Updated: 030000005e040000d102000001010000,MicrosoftX-BoxOnepad,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,
Warning: Binding 28 Updated: 030000006f0e00001302000000010000,AfterglowAX.1PL-3602,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,_PendingUpload_NameAfterglowAX.1PL-3602SDL_GamepadBind_PendingUpload_GUID030000006f0e00001302000000010000SDL_GamepadBind030000006f0e00001302000000010000,AfterglowAX.1PL-3602,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,}
Warning: Binding 30 Updated: 03000000280400000140000000010000,GravisGamepadPro,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b8,leftshoulder:b4,rightshoulder:b5,dpup:,dpleft:,dpdown:,dpright:,lefttrigger:b6,righttrigger:b7,leftstick:,leftx:,lefty:,rightx:a0,righty:a1,_PendingUpload_NameGravisGamepadProSDL_GamepadBind_PendingUpload_GUID03000000280400000140000000010000SDL_GamepadBind03000000280400000140000000010000,GravisGamepadPro,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b8,leftshoulder:b4,rightshoulder:b5,dpup:,dpleft:,dpdown:,dpright:,lefttrigger:b6,righttrigger:b7,leftstick:,leftx:,lefty:,rightx:a0,righty:a1,
Warning: Binding 32 Updated: 03000000100800000100000010010000,PS2viaAdapter,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a2,lefttrigger:b4,righttrigger:b5,
Warning: Binding 34 Updated: 03000000790000001100000010010000,RetroLinkSNES,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1,
Warning: Binding 36 Updated: 03000000830500006020000010010000,iBuffaloClassicUSBGamepad,a:b0,b:b1,y:b3,x:b2,start:b7,back:b6,leftshoulder:,rightshoulder:,leftx:a0,lefty:a1,lefttrigger:b4,righttrigger:b5,_PendingUpload_NameiBuffaloClassicUSBGamepadSDL_GamepadBind_PendingUpload_GUID03000000830500006020000010010000SDL_GamepadBind03000000830500006020000010010000,iBuffaloClassicUSBGamepad,a:b0,b:b1,y:b3,x:b2,start:b7,back:b6,leftshoulder:,rightshoulder:,leftx:a0,lefty:a1,lefttrigger:b4,righttrigger:b5,
Warning: Binding 43 Updated: 050000004c0500006802000000010000,sixaxis,a:b14,b:b13,y:b12,x:b15,start:b3,guide:b16,back:b0,leftstick:b1,rightstick:,leftshoulder:b2,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,
Warning: Binding 46 Updated: 03000000022000000090000011010000,8BitdoNES30Pro8BitdoNES30Pro,a:b1,b:b0,y:b3,x:b4,start:b11,back:b10,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,
Warning: Binding 47 Updated: 030000001008000001e5000010010000,SnesUSBGamepad,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftshoulder:b4,rightshoulder:b5,dpup:,dpleft:,dpdown:,dpright:,leftx:a0,lefty:a1,
Custom Binding Updated: 03000000790000000018000011010000,HJZMayflashWiiUProGameControllerAdapter,a:b1,b:b2,y:b3,x:b0,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,
Segmentation fault

trying to boot with gl4es

pi@raspberrypi:/media/pi/Seagate Expansion Drive/linux-games/Shovel_Knight_GOG/data/noarch/game/32 $ LIBGL_ES=2 LIBGL_GL=21  LIBGL_DIBGL_FBOFORCETEX=1 LD_LIBRARY_PATH=~/monolibs BOX86_LD_LIBRARY_PATH=lib:./lib:fmod/lib/:/lib:x86:lib32:/usr/i686-linux-gnu/lib:/usr/lib/arm-linux-gnueabihf box86 ShovelKnight 
BOX86_LD_LIBRARY_PATH: lib/:./lib/:fmod/lib/:/lib/:x86/:lib32/:/usr/i686-linux-gnu/lib/:/usr/lib/arm-linux-gnueabihf/
Using default BOX86_PATH: ./:bin/
Counted 48 Env var
Looking for ShovelKnight
Using native(wrapped) libpthread.so.0
Using emulated lib/libfmodex.so
Using native(wrapped) libdl.so.2
Using emulated libstdc++.so.6
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated libgcc_s.so.1
Using emulated lib/libfmodevent.so
Using emulated lib/libfmodex-4.44.33.so
Using emulated lib/libBox2D.so.2.1.0
Using emulated lib/libGLEW.so.1.10
LIBGL: Initialising gl4es
LIBGL: v1.1.1 built on Jul 27 2019 14:27:11
LIBGL: Using GLES 2.0 backend
LIBGL: loaded: libGLESv2.so
LIBGL: loaded: libEGL.so
LIBGL: Using GLES 2.0 backend
LIBGL: Hardware Full NPOT detected and used
LIBGL: Extension GL_EXT_blend_minmax detected and used
LIBGL: FBO are in core, and so used
LIBGL: PointSprite are in core, and so used
LIBGL: CubeMap are in core, and so used
LIBGL: BlendColor is in core, and so used
LIBGL: Blend Substract is in core, and so used
LIBGL: Blend Function and Equation Separation is in core, and so used
LIBGL: Texture Mirrored Repeat is in core, and so used
LIBGL: Extension GL_OES_mapbuffer detected
LIBGL: Extension GL_OES_element_index_uint detected and used
LIBGL: Extension GL_OES_packed_depth_stencil detected and used
LIBGL: Extension GL_OES_depth24 detected and used
LIBGL: Extension GL_OES_rgb8_rgba8 detected and used
LIBGL: Extension GL_EXT_multi_draw_arrays detected
LIBGL: Extension GL_EXT_texture_format_BGRA8888 detected and used
LIBGL: Extension GL_OES_depth_texture detected and used
LIBGL: Extension GL_OES_texture_stencil8 detected and used
LIBGL: Extension GL_EXT_texture_rg detected and used
LIBGL: Extension GL_OES_texture_float detected and used
LIBGL: Extension GL_OES_texture_half_float detected and used
LIBGL: Extension GL_EXT_color_buffer_float detected and used
LIBGL: high precision float in fragment shader available and used
LIBGL: Extension GL_EXT_frag_depth detected and used
LIBGL: Max vertex attrib: 16
LIBGL: Extension GL_OES_standard_derivatives detected and used
LIBGL: Extension GL_OES_get_program detected
LIBGL: Number of supported Program Binary Format: 0
LIBGL: Max texture size: 8192
LIBGL: Max Varying Vector: 16
LIBGL: Texture Units: 8(8), Max lights: 8, Max planes: 6
LIBGL: Hardware vendor is Broadcom
LIBGL: sRGB surface supported
LIBGL: Targeting OpenGL 2.1
LIBGL: Not trying to batch small subsequent glDrawXXXX
LIBGL: glX Will try to recycle EGL Surface
LIBGL: Current folder is:/media/pi/Seagate Expansion Drive/linux-games/Shovel_Knight_GOG/data/noarch/game/32
Using native(wrapped) libGL.so.1
Using native(wrapped) libSDL2-2.0.so.0
Warning: Weak Symbol _ZGTtnaj not found, cannot apply R_386_JMP_SLOT @0xb6833198 (0x6b676)
Warning: Weak Symbol _ZGTtdlPv not found, cannot apply R_386_JMP_SLOT @0xb6833474 (0x6c1e6)
ycMemory::Init()
GL Version: 2.10
Segmentation fault

@ITotalJustice
Copy link
Author

And heres the bt

Program received signal SIGSEGV, Segmentation fault.
memset () at ../sysdeps/arm/memset.S:46
46	../sysdeps/arm/memset.S: No such file or directory.
(gdb) bt full
#0  memset () at ../sysdeps/arm/memset.S:46
No locals.
#1  0xa8019518 in pFpiu (emu=emu@entry=0xa80cba58, fcn=fcn@entry=3067913296) at /home/pi/box86/src/wrapped/generated/wrapper.c:1153
        fn = 0xb6dca450 <memset>
#2  0xa8054e4c in x86Int3 (emu=0xa80cba58) at /home/pi/box86/src/emu/x86int3.c:186
        w = 0xa8019500 <pFpiu>
        addr = 3067913296
#3  0xa8025314 in Run (emu=0xa80cba58) at /home/pi/box86/src/emu/x86run.c:865
        opcode = <optimized out>
        nextop = <optimized out>
        oped = <optimized out>
        ea1 = <optimized out>
        tmp8u = <optimized out>
        tmp8u2 = <optimized out>
        tmp8s = <optimized out>
        tmp16u = <optimized out>
        tmp16u2 = <optimized out>
        tmp16s = <optimized out>
        tmp32u = <optimized out>
        tmp32u2 = <optimized out>
        tmp32u3 = 0
        tmp32s = <optimized out>
        tmp64u = <optimized out>
        tmp64s = -6335749984695008520
        ip = <optimized out>
        old_ip = 2819810548
        d = -1.6028890291076219e-115
        f = -7.22577719e-15
        ll = <optimized out>
        opex = <optimized out>
        eax1 = {q = {1082331758844, 1082331758844}, sq = {1082331758844, 1082331758844}, d = {5.3474293944775317e-312, 5.3474293944775317e-312}, f = {3.53127213e-43, 3.53127213e-43, 3.53127213e-43, 3.53127213e-43}, ud = {252, 252, 252, 
            252}, sd = {252, 252, 252, 252}, uw = {252, 0, 252, 0, 252, 0, 252, 0}, sw = {252, 0, 252, 0, 252, 0, 252, 0}, ub = "\374\000\000\000\374\000\000\000\374\000\000\000\374\000\000", 
          sb = "\374\000\000\000\374\000\000\000\374\000\000\000\374\000\000"}
        opem = <optimized out>
        baseopcodes = {0xa8029c14 <Run+28668>, 0xa8029c98 <Run+28800>, 0xa8029d18 <Run+28928>, 0xa8029d9c <Run+29060>, 0xa8029e1c <Run+29188>, 0xa8029e58 <Run+29248>, 0xa802ae4c <Run+33332>, 0xa802ae74 <Run+33372>, 
          0xa8029e94 <Run+29308>, 0xa8029f10 <Run+29432>, 0xa8029f88 <Run+29552>, 0xa802a004 <Run+29676>, 0xa802a07c <Run+29796>, 0xa802a0b0 <Run+29848>, 0xa8022f58 <Run+832>, 0xa802ae9c <Run+33412>, 0xa802a0e4 <Run+29900>, 
          0xa802a158 <Run+30016>, 0xa802a1c8 <Run+30128>, 0xa802a23c <Run+30244>, 0xa802a2ac <Run+30356>, 0xa802a2d8 <Run+30400>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802a304 <Run+30444>, 0xa802a378 <Run+30560>, 
          0xa802a3e8 <Run+30672>, 0xa802a45c <Run+30788>, 0xa802a4cc <Run+30900>, 0xa802a4f8 <Run+30944>, 0xa8028684 <Run+23148>, 0xa80286ac <Run+23188>, 0xa802a524 <Run+30988>, 0xa802a5a0 <Run+31112>, 0xa802a618 <Run+31232>, 
          0xa802a694 <Run+31356>, 0xa802a70c <Run+31476>, 0xa802a740 <Run+31528>, 0xa8022f58 <Run+832>, 0xa80286d4 <Run+23228>, 0xa802a774 <Run+31580>, 0xa802a7f8 <Run+31712>, 0xa802a878 <Run+31840>, 0xa802a8fc <Run+31972>, 
          0xa802a97c <Run+32100>, 0xa802a9b8 <Run+32160>, 0xa8028700 <Run+23272>, 0xa802871c <Run+23300>, 0xa802a9f4 <Run+32220>, 0xa802aa70 <Run+32344>, 0xa802aae8 <Run+32464>, 0xa802ab64 <Run+32588>, 0xa802abdc <Run+32708>, 
          0xa802ac10 <Run+32760>, 0xa8022f58 <Run+832>, 0xa8032f8c <Run+66420>, 0xa802ac44 <Run+32812>, 0xa802acb4 <Run+32924>, 0xa802ad20 <Run+33032>, 0xa802ad90 <Run+33144>, 0xa802adfc <Run+33252>, 0xa802ae24 <Run+33292>, 
          0xa8022f58 <Run+832>, 0xa8032fb8 <Run+66464>, 0xa8032fe4 <Run+66508>, 0xa8032fe8 <Run+66512>, 0xa8032fec <Run+66516>, 0xa8032ff0 <Run+66520>, 0xa8032ff4 <Run+66524>, 0xa8032ff8 <Run+66528>, 0xa8022e38 <Run+544>, 
          0xa8022e38 <Run+544>, 0xa8032ffc <Run+66532>, 0xa8033000 <Run+66536>, 0xa8033004 <Run+66540>, 0xa8033008 <Run+66544>, 0xa803300c <Run+66548>, 0xa8033010 <Run+66552>, 0xa8022dfc <Run+484>, 0xa8022dfc <Run+484>, 
          0xa8033040 <Run+66600>, 0xa8033044 <Run+66604>, 0xa8033048 <Run+66608>, 0xa803304c <Run+66612>, 0xa8033014 <Run+66556>, 0xa8033050 <Run+66616>, 0xa8022ea4 <Run+652>, 0xa8022ea4 <Run+652>, 0xa8033054 <Run+66620>, 
          0xa8033058 <Run+66624>, 0xa803305c <Run+66628>, 0xa8033060 <Run+66632>, 0xa8033064 <Run+66636>, 0xa8033068 <Run+66640>, 0xa8022dc8 <Run+432>, 0xa8022dc8 <Run+432>, 0xa803306c <Run+66644>, 0xa8033124 <Run+66828>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8027974 <Run+19804>, 0xa8022fac <Run+916>, 0xa802b490 <Run+34936>, 0xa802b4c8 <Run+34992>, 0xa802b4f4 <Run+35036>, 0xa802b574 <Run+35164>, 
          0xa80237ac <Run+2964>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa80238d0 <Run+3256>, 0xa8023904 <Run+3308>, 0xa8023938 <Run+3360>, 0xa802396c <Run+3412>, 0xa8024134 <Run+5404>, 
          0xa8024168 <Run+5456>, 0xa802419c <Run+5508>, 0xa80241d4 <Run+5564>, 0xa8024214 <Run+5628>, 0xa8024248 <Run+5680>, 0xa802427c <Run+5732>, 0xa80242b0 <Run+5784>, 0xa80242e4 <Run+5836>, 0xa802431c <Run+5892>, 
          0xa8024354 <Run+5948>, 0xa802438c <Run+6004>, 0xa80243d0 <Run+6072>, 0xa8024444 <Run+6188>, 0xa8022f58 <Run+832>, 0xa80244c0 <Run+6312>, 0xa802450c <Run+6388>, 0xa80239a0 <Run+3464>, 0xa8023a0c <Run+3572>, 
          0xa8023a94 <Run+3708>, 0xa8023b18 <Run+3840>, 0xa8023b80 <Run+3944>, 0xa8023be4 <Run+4044>, 0xa8023c4c <Run+4148>, 0xa8022f58 <Run+832>, 0xa8023cb0 <Run+4248>, 0xa8022f58 <Run+832>, 0xa8023d10 <Run+4344>, 
          0xa8023d78 <Run+4448>, 0xa8023d94 <Run+4476>, 0xa8023d98 <Run+4480>, 0xa8023d9c <Run+4484>, 0xa8023da0 <Run+4488>, 0xa8023da4 <Run+4492>, 0xa8022e74 <Run+604>, 0xa8022e74 <Run+604>, 0xa8023da8 <Run+4496>, 
          0xa8023dcc <Run+4532>, 0xa8022f58 <Run+832>, 0xa8023df4 <Run+4572>, 0xa8023e10 <Run+4600>, 0xa8023e54 <Run+4668>, 0xa8023ea0 <Run+4744>, 0xa8023efc <Run+4836>, 0xa8023f34 <Run+4892>, 0xa8023f58 <Run+4928>, 
          0xa8023f7c <Run+4964>, 0xa8023fa0 <Run+5000>, 0xa8023fc4 <Run+5036>, 0xa8024014 <Run+5116>, 0xa8024064 <Run+5196>, 0xa80240b8 <Run+5280>, 0xa802410c <Run+5364>, 0xa802afc4 <Run+33708>, 0xa802afec <Run+33748>, 
          0xa802b030 <Run+33816>, 0xa8025118 <Run+9472>, 0xa8025154 <Run+9532>, 0xa8025190 <Run+9592>, 0xa80251dc <Run+9668>, 0xa802b208 <Run+34288>, 0xa802b20c <Run+34292>, 0xa8022f30 <Run+792>, 0xa8022f30 <Run+792>, 
          0xa8024638 <Run+6688>, 0xa802463c <Run+6692>, 0xa8022f08 <Run+752>, 0xa8022f08 <Run+752>, 0xa8024628 <Run+6672>, 0xa802462c <Run+6676>, 0xa8024630 <Run+6680>, 0xa8024634 <Run+6684>, 0xa80253b0 <Run+10136>, 
          0xa80253b4 <Run+10140>, 0xa8022c9c <Run+132>, 0xa8022c9c <Run+132>, 0xa80253b8 <Run+10144>, 0xa802542c <Run+10260>, 0xa802457c <Run+6500>, 0xa80245ac <Run+6548>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa80245d0 <Run+6584>, 0xa8025228 <Run+9744>...}
        opcodes0f = {0xa8022f58 <Run+832> <repeats 16 times>, 0xa802aeb4 <Run+33436>, 0xa802af3c <Run+33572>, 0xa80254a8 <Run+10384>, 0xa8025540 <Run+10536>, 0xa80255e8 <Run+10704>, 0xa8025694 <Run+10876>, 0xa802572c <Run+11028>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa80257d0 <Run+11192>, 0xa8025874 <Run+11356>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa80258d0 <Run+11448>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8025914 <Run+11516>, 0xa80259fc <Run+11748>, 0xa8025ae8 <Run+11984>, 
          0xa8022f58 <Run+832>, 0xa80249c0 <Run+7592>, 0xa8024a80 <Run+7784>, 0xa8022fec <Run+980>, 0xa8022fec <Run+980>, 0xa8022f58 <Run+832>, 0xa802482c <Run+7188>, 0xa8022f58 <Run+832> <repeats 14 times>, 0xa8024858 <Run+7232>, 
          0xa80248d0 <Run+7352>, 0xa8024948 <Run+7472>, 0xa8027390 <Run+18296>, 0xa8027408 <Run+18416>, 0xa8027480 <Run+18536>, 0xa80274f8 <Run+18656>, 0xa8027574 <Run+18780>, 0xa80246c4 <Run+6828>, 0xa802473c <Run+6948>, 
          0xa80247b4 <Run+7068>, 0xa8026ed0 <Run+17080>, 0xa8026f48 <Run+17200>, 0xa8026fc4 <Run+17324>, 0xa8027040 <Run+17448>, 0xa80270bc <Run+17572>, 0xa80263cc <Run+14260>, 0xa802645c <Run+14404>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa80265a0 <Run+14728>, 0xa80266a4 <Run+14988>, 0xa80267a8 <Run+15248>, 0xa80268ac <Run+15508>, 0xa80269b0 <Run+15768>, 0xa8026ac4 <Run+16044>, 0xa8026bd8 <Run+16320>, 0xa8026cb8 <Run+16544>, 
          0xa8026dbc <Run+16804>, 0xa8028748 <Run+23344>, 0xa8028964 <Run+23884>, 0xa8028a78 <Run+24160>, 0xa8028c94 <Run+24700>, 0xa8028d2c <Run+24852>, 0xa8028dbc <Run+24996>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8028e3c <Run+25124>, 0xa8028ffc <Run+25572>, 0xa80290a0 <Run+25736>, 0xa8029144 <Run+25900>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa80291d0 <Run+26040>, 0xa8029250 <Run+26168>, 0xa80292f0 <Run+26328>, 0xa80293e8 <Run+26576>, 0xa8022f58 <Run+832>, 0xa802948c <Run+26740>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa802958c <Run+26996>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8029898 <Run+27776>, 0xa80298fc <Run+27876>, 
          0xa8027144 <Run+17708>, 0xa8027178 <Run+17760>, 0xa80271ac <Run+17812>, 0xa80271e0 <Run+17864>, 0xa8027214 <Run+17916>, 0xa8027248 <Run+17968>, 0xa802727c <Run+18020>, 0xa80272b4 <Run+18076>, 0xa80272f4 <Run+18140>, 
          0xa8027328 <Run+18192>, 0xa802735c <Run+18244>, 0xa8025b9c <Run+12164>, 0xa8025bd0 <Run+12216>, 0xa8025c08 <Run+12272>, 0xa8025c40 <Run+12328>, 0xa8025c78 <Run+12384>, 0xa8025cbc <Run+12452>, 0xa8025d28 <Run+12560>, 
          0xa8025d94 <Run+12668>, 0xa8025e00 <Run+12776>, 0xa8025e6c <Run+12884>, 0xa8025ed8 <Run+12992>, 0xa8025f44 <Run+13100>, 0xa8025fc0 <Run+13224>, 0xa8026038 <Run+13344>, 0xa80260a4 <Run+13452>, 0xa8026110 <Run+13560>, 
          0xa802617c <Run+13668>, 0xa80261e8 <Run+13776>, 0xa8026258 <Run+13888>, 0xa80262cc <Run+14004>, 0xa802634c <Run+14132>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802999c <Run+28036>, 0xa8029a5c <Run+28228>, 
          0xa80230cc <Run+1204>, 0xa80230cc <Run+1204>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8029ae4 <Run+28364>, 0xa80231f4 <Run+1500>, 0xa80231f4 <Run+1500>, 
          0xa8029b74 <Run+28508>, 0xa8024ae4 <Run+7884>, 0xa8024be0 <Run+8136>, 0xa80295b4 <Run+27036>, 0xa8022f58 <Run+832>, 0xa8029638 <Run+27168>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa80296cc <Run+27316>, 
          0xa8029728 <Run+27408>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8027a40 <Run+20008>, 0xa80279ac <Run+19860>, 0xa8027af0 <Run+20184>, 0xa8027b64 <Run+20300>, 0xa8027bd8 <Run+20416>, 0xa8027c34 <Run+20508>, 
          0xa8027c98 <Run+20608>, 0xa8027d24 <Run+20748>, 0xa8027dac <Run+20884>, 0xa8022f58 <Run+832>, 0xa8027e30 <Run+21016>, 0xa8027eac <Run+21140>, 0xa8027f2c <Run+21268>, 0xa8028040 <Run+21544>, 0xa80280c4 <Run+21676>, 
          0xa80280c8 <Run+21680>, 0xa80280cc <Run+21684>, 0xa80280d0 <Run+21688>, 0xa80280d4 <Run+21692>, 0xa80280d8 <Run+21696>, 0xa8022c70 <Run+88>, 0xa8022c70 <Run+88>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>...}
        opcodes66 = {0xa8022f58 <Run+832>, 0xa8027874 <Run+19548>, 0xa8022f58 <Run+832>, 0xa80278f4 <Run+19676>, 0xa8022f58 <Run+832>, 0xa8027714 <Run+19196>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa8027750 <Run+19256>, 0xa8022f58 <Run+832>, 0xa80277c8 <Run+19376>, 0xa8022f58 <Run+832>, 0xa8027840 <Run+19496>, 0xa8022f58 <Run+832>, 0xa8033458 <Run+67648>, 0xa8022f58 <Run+832>, 0xa8033860 <Run+68680>, 
          0xa8022f58 <Run+832>, 0xa80338d0 <Run+68792>, 0xa8022f58 <Run+832>, 0xa8033940 <Run+68904>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa803396c <Run+68948>, 0xa8022f58 <Run+832>, 
          0xa80339dc <Run+69060>, 0xa8022f58 <Run+832>, 0xa80275f8 <Run+18912>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8027624 <Run+18956>, 0xa8022f58 <Run+832>, 0xa802769c <Run+19076>, 
          0xa8022f58 <Run+832>, 0xa80331b4 <Run+66972>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa80331e8 <Run+67024>, 0xa8022f58 <Run+832>, 0xa8033268 <Run+67152>, 0xa8022f58 <Run+832>, 
          0xa80332f8 <Run+67296>, 0xa802da90 <Run+44664>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8033334 <Run+67356>, 0xa8022f58 <Run+832>, 0xa80333ac <Run+67476>, 0xa8022f58 <Run+832>, 0xa8033424 <Run+67596>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802daac <Run+44692>, 0xa8022f58 <Run+832>, 0xa802db18 <Run+44800>, 0xa8022f58 <Run+832>, 0xa802db84 <Run+44908>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa802dbac <Run+44948>, 0xa802dbb0 <Run+44952>, 0xa802dbb4 <Run+44956>, 0xa802dbb8 <Run+44960>, 0xa802dbbc <Run+44964>, 0xa802dbc0 <Run+44968>, 0xa8022d88 <Run+368>, 0xa8022d88 <Run+368>, 0xa802dbc4 <Run+44972>, 
          0xa802dbc8 <Run+44976>, 0xa802b848 <Run+35888>, 0xa802b84c <Run+35892>, 0xa802b850 <Run+35896>, 0xa802b854 <Run+35900>, 0xa8022d48 <Run+304>, 0xa8022d48 <Run+304>, 0xa802b858 <Run+35904>, 0xa802b85c <Run+35908>, 
          0xa802b860 <Run+35912>, 0xa802b864 <Run+35916>, 0xa802b868 <Run+35920>, 0xa802b86c <Run+35924>, 0xa8022d18 <Run+256>, 0xa8022d18 <Run+256>, 0xa802b870 <Run+35928>, 0xa802b874 <Run+35932>, 0xa802b878 <Run+35936>, 
          0xa802b87c <Run+35940>, 0xa8024640 <Run+6696>, 0xa8024644 <Run+6700>, 0xa8022ce8 <Run+208>, 0xa8022ce8 <Run+208>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022fac <Run+916>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8024648 <Run+6704>, 0xa802382c <Run+3092>, 0xa8023854 <Run+3132>, 0xa8022f58 <Run+832> <repeats 21 times>, 0xa80233e8 <Run+2000>, 
          0xa8022f58 <Run+832>, 0xa80233e8 <Run+2000>, 0xa8022f58 <Run+832>, 0xa802f28c <Run+50804>, 0xa8022f58 <Run+832>, 0xa802f38c <Run+51060>, 0xa8022f58 <Run+832>, 0xa802f3f8 <Run+51168>, 0xa8022f58 <Run+832>, 
          0xa802978c <Run+27508>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa80297f0 <Run+27608>, 0xa8029850 <Run+27704>, 0xa8022f58 <Run+832>, 0xa802986c <Run+27732>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802b210 <Run+34296>, 0xa802b234 <Run+34332>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802b260 <Run+34376>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802b29c <Run+34436>, 0xa8022f58 <Run+832>, 0xa802b2c0 <Run+34472>, 0xa8022f58 <Run+832>, 0xa802b2e4 <Run+34508>, 0xa8022f58 <Run+832>, 
          0xa802b334 <Run+34588>, 0xa8022f58 <Run+832>, 0xa802b388 <Run+34672>, 0xa8022f58 <Run+832>, 0xa802b3b0 <Run+34712>, 0xa8022f58 <Run+832>, 0xa802b3f4 <Run+34780>, 0xa8022f58 <Run+832>, 0xa802b430 <Run+34840>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802b47c <Run+34916>, 0xa802b480 <Run+34920>, 
          0xa802b484 <Run+34924>, 0xa802b488 <Run+34928>, 0xa802b48c <Run+34932>, 0xa802b6f8 <Run+35552>, 0xa8022cc0 <Run+168>, 0xa8022cc0 <Run+168>, 0xa8022f58 <Run+832>, 0xa802b6fc <Run+35556>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802b778 <Run+35680>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8023604 <Run+2540>, 0xa8022f58 <Run+832>...}
        opcodes660f = {0xa8022f58 <Run+832> <repeats 16 times>, 0xa8031e30 <Run+61976>, 0xa8031eb8 <Run+62112>, 0xa8031f40 <Run+62248>, 0xa8031fb0 <Run+62360>, 0xa8032020 <Run+62472>, 0xa80320c4 <Run+62636>, 0xa8032178 <Run+62816>, 
          0xa80321e8 <Run+62928>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8032a84 <Run+65132>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8032ac8 <Run+65200>, 0xa8032bb0 <Run+65432>, 0xa8032c9c <Run+65668>, 
          0xa8022f58 <Run+832>, 0xa8032d74 <Run+65884>, 0xa8032e64 <Run+66124>, 0xa80232e0 <Run+1736>, 0xa80232e0 <Run+1736>, 0xa8022f58 <Run+832> <repeats 16 times>, 0xa8033470 <Run+67672>, 0xa80334ec <Run+67796>, 
          0xa8033568 <Run+67920>, 0xa80335e4 <Run+68044>, 0xa8033660 <Run+68168>, 0xa80336dc <Run+68292>, 0xa8033758 <Run+68416>, 0xa80337d8 <Run+68544>, 0xa8031a2c <Run+60948>, 0xa8031aa8 <Run+61072>, 0xa8031b24 <Run+61196>, 
          0xa8031ba8 <Run+61328>, 0xa8031c24 <Run+61452>, 0xa8031ca4 <Run+61580>, 0xa8031d24 <Run+61708>, 0xa8031da4 <Run+61836>, 0xa8032254 <Run+63036>, 0xa80322cc <Run+63156>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa80323fc <Run+63460>, 0xa8032504 <Run+63724>, 0xa803260c <Run+63988>, 0xa8032714 <Run+64252>, 0xa803281c <Run+64516>, 0xa8032950 <Run+64824>, 0xa802f45c <Run+51268>, 0xa802f56c <Run+51540>, 0xa802f674 <Run+51804>, 
          0xa802f7a8 <Run+52112>, 0xa802f954 <Run+52540>, 0xa802fa88 <Run+52848>, 0xa802fc34 <Run+53276>, 0xa802fd10 <Run+53496>, 0xa802fde4 <Run+53708>, 0xa802fe90 <Run+53880>, 0xa80301ac <Run+54676>, 0xa80303a0 <Run+55176>, 
          0xa8030534 <Run+55580>, 0xa8030658 <Run+55872>, 0xa8030974 <Run+56668>, 0xa8030a58 <Run+56896>, 0xa8030b2c <Run+57108>, 0xa8030bc8 <Run+57264>, 0xa8030de8 <Run+57808>, 0xa8030e8c <Run+57972>, 0xa8030f40 <Run+58152>, 
          0xa8030fc4 <Run+58284>, 0xa80310ac <Run+58516>, 0xa80311e0 <Run+58824>, 0xa80312a4 <Run+59020>, 0xa8031368 <Run+59216>, 0xa80313dc <Run+59332>, 0xa80315c0 <Run+59816>, 0xa8031734 <Run+60188>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8031858 <Run+60480>, 0xa80318c0 <Run+60584>, 0xa8022f58 <Run+832> <repeats 35 times>, 
          0xa80319ac <Run+60820>, 0xa8023160 <Run+1352>, 0xa8023160 <Run+1352>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802f2f8 <Run+50912>, 
          0xa8023528 <Run+2320>, 0xa8023528 <Run+2320>, 0xa8022f58 <Run+832>, 0xa802f214 <Run+50684>, 0xa8022f58 <Run+832>, 0xa802f0fc <Run+50404>, 0xa8022f58 <Run+832>, 0xa802f180 <Run+50536>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa802ed3c <Run+49444>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802ed98 <Run+49536>, 0xa802ee28 <Run+49680>, 0xa802ee9c <Run+49796>, 
          0xa802ef10 <Run+49912>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802ef6c <Run+50004>, 0xa802eff4 <Run+50140>, 0xa8022f58 <Run+832>, 0xa802f084 <Run+50284>, 0xa802dbcc <Run+44980>, 0xa802dc4c <Run+45108>, 
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 
          0xa802dd40 <Run+45352>, 0xa802de08 <Run+45552>, 0xa802ded0 <Run+45752>, 0xa802df98 <Run+45952>, 0xa802e09c <Run+46212>, 0xa802e1d0 <Run+46520>, 0xa802e26c <Run+46676>, 0xa802e414 <Run+47100>, 0xa8022f58 <Run+832>, 
          0xa8022f58 <Run+832>, 0xa802e5b8 <Run+47520>, 0xa802e6c0 <Run+47784>, 0xa8022f58 <Run+832>, 0xa802e8a4 <Run+48268>, 0xa802ea44 <Run+48684>, 0xa8022f58 <Run+832>, 0xa802eb4c <Run+48948>, 0xa802ec64 <Run+49228>, 
--Type <RET> for more, q to quit, c to continue without paging--
          0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802c05c <Run+37956>, 0xa802c1c8 <Run+38320>, 0xa8022f58 <Run+832>, 0xa802c2d4 <Run+38588>, 0xa8022f58 <Run+832>, 0xa8022f58 <Run+832>, 0xa802c66c <Run+39508>, 
          0xa802c770 <Run+39768>...}
        i = <optimized out>
        i = <optimized out>
        i = <optimized out>
        sib = <optimized out>
        base = <optimized out>
        base = <optimized out>
        sib = <optimized out>
#4  0xa8006b74 in main (argc=<optimized out>, argv=<optimized out>, env=<optimized out>) at /home/pi/box86/src/main.c:425
        context = 0xa80c9150
        p = <optimized out>
        prog = <optimized out>
        f = <optimized out>
        elf_header = 0xa80cca60
        mainelf = <optimized out>
        ret = <optimized out>

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

Ah, so there is some progress. I can see gl4es make it crash :( but even with VC4 driver, it crash. But it's a memset now, so probably some other function that gives a wrong pointer.

Ideally, running with BOX86_LOG=DUMP would give a very long dump and hopefully, the last few functions are the one behaving wrongly...

@ITotalJustice
Copy link
Author

would you like me to post the log here or should i pastebin it? the output was over 100k lines haha

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

Just paste the last few lines here (something like 20), it should be enough.

@ITotalJustice
Copy link
Author

sure, heres the last few lines.

29676|0x88188aa: Calling fflush (B6E97D90, 0889E6A9, B6C45048...) => return 0x00000000
29676|0x87f1701: Calling SDL_JoystickGetGUIDFromString (B6C4585C, A8F17368, A86856F0...) => return 0xB6C4585C
29676|0x87f1726: Calling strcpy (B6C4586C, A8F17368, A8F17368...) => return 0xB6C4586C
29676|0x87f172e: Calling SDL_GameControllerAddMapping (A8F17368, A8F17368, A8F17368...) => return 0x00000001
29676|0x87f1701: Calling SDL_JoystickGetGUIDFromString (B6C45858, A8F17490, A8F17368...) => return 0xB6C45858
29676|0x87f1726: Calling strcpy (B6C45868, A8F17490, A8F17490...) => return 0xB6C45868
29676|0x87f172e: Calling SDL_GameControllerAddMapping (A8F17490, A8F17490, A8F17490...) => return 0x00000001
29676|0x87f1701: Calling SDL_JoystickGetGUIDFromString (B6C45854, A8F175A8, A8F17490...) => return 0xB6C45854
29676|0x87f1726: Calling strcpy (B6C45864, A8F175A8, A8F175A8...) => return 0xB6C45864
29676|0x87f172e: Calling SDL_GameControllerAddMapping (A8F175A8, A8F175A8, A8F175A8...) => return 0x00000000
29676|0x8818892: Calling vsprintf (B6C44828, 0889E6A9, B6C4503C...) => return 0x00000135
29676|0x881889a: Calling printf (B6C44828, 0889E6A9, B6C4503C...) =>Warning: Binding 46 Updated: 03000000022000000090000011010000,8BitdoNES30Pro8BitdoNES30Pro,a:b1,b:b0,y:b3,x:b4,start:b11,back:b10,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,
 return 0x00000135
29676|0x88188aa: Calling fflush (B6E97D90, 0889E6A9, B6C4503C...) => return 0x00000000
29676|0x87f1701: Calling SDL_JoystickGetGUIDFromString (B6C45850, A8F176C8, A8F175A8...) => return 0xB6C45850
29676|0x87f1726: Calling strcpy (B6C45860, A8F176C8, A8F176C8...) => return 0xB6C45860
29676|0x87f172e: Calling SDL_GameControllerAddMapping (A8F176C8, A8F176C8, A8F176C8...) => return 0x00000000
29676|0x8818892: Calling vsprintf (B6C44824, 0889E6A9, B6C45038...) => return 0x000000C5
29676|0x881889a: Calling printf (B6C44824, 0889E6A9, B6C45038...) =>Warning: Binding 47 Updated: 030000001008000001e5000010010000,SnesUSBGamepad,a:b2,b:b1,y:b0,x:b3,start:b9,back:b8,leftshoulder:b4,rightshoulder:b5,dpup:,dpleft:,dpdown:,dpright:,leftx:a0,lefty:a1,
 return 0x000000C5
29676|0x88188aa: Calling fflush (B6E97D90, 0889E6A9, B6C45038...) => return 0x00000000
29676|0x87f1782: Calling SDL_GameControllerAddMapping (A8F17368, 0000002F, A8F176C8...) => return 0x00000000
29676|0x8818892: Calling vsprintf (B6C44824, 0889E6EA, B6C45038...) => return 0x00000139
29676|0x881889a: Calling printf (B6C44824, 0889E6EA, B6C45038...) =>Custom Binding Updated: 03000000790000000018000011010000,HJZMayflashWiiUProGameControllerAdapter,a:b1,b:b2,y:b3,x:b0,start:b9,back:b8,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,
 return 0x00000139
29676|0x88188aa: Calling fflush (B6E97D90, 0889E6EA, B6C45038...) => return 0x00000000
29676|0x87f0c9f: Calling memset (00000000, 00000000, 00001490...) =>

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

Mmmm, that doesn't seems enough. I guess there will be quite a few lines with the all the "Curstom Binding Update" printf. It seems the function is before that...
If you can put a large chunk of the log on pastebin, that could help.

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

No wait, I have seen something. A couple of SDL2 function needs better wrapping (the return SDL_JoystickGUID like SDL_JoystickGetGUIDFromString)

@ITotalJustice
Copy link
Author

Ah okay. Heres a 1/8th post from the log, started from the bottom (ignoring what i already pasted here).
https://pastebin.com/1Scz54Ww

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

So I have a fixed a few stuff with SDL2 Joystick, maybe it's better now.

@ITotalJustice
Copy link
Author

ITotalJustice commented Jul 30, 2019

I am very happy to report that the game now boots!!! Amazing work once again! However there is no sound currently. This if s from the cmd output (after printing out everything its loaded in)

SaveManager::Init()
 Run Thread Save Thread
Bad Save Read: Invalidating input save data!
Bad Save Read: Clearing save data!
Using native(wrapped) libasound.so.2
Audio Drivers [ALSA]:
  0 : default
  1 : null
  2 : default:CARD=ALSA
  3 : sysdefault:CARD=ALSA
  4 : dmix:CARD=ALSA,DEV=0
  5 : dmix:CARD=ALSA,DEV=1
  6 : dsnoop:CARD=ALSA,DEV=0
  7 : dsnoop:CARD=ALSA,DEV=1
  8 : hw:CARD=ALSA,DEV=0
  9 : hw:CARD=ALSA,DEV=1
  10 : plughw:CARD=ALSA,DEV=0
  11 : plughw:CARD=ALSA,DEV=1
  12 : cards
  13 : front
  14 : rear
  15 : center_lfe
  16 : side
  17 : surround21
  18 : surround40
  19 : surround41
  20 : surround50
  21 : surround51
  22 : surround71
  23 : iec958
  24 : spdif
  25 : hdmi
  26 : modem
  27 : phoneline
  28 : plug
  29 : shm
  30 : tee
  31 : file
  selected driver: 0
2213|0xb6968cc9: Unimplemented Opcode 0F 6B C0 0F 6B C9 0F 7E

Just to add, the game seg faults when using gl4es.
Also the game crashes randomly it seems (doesn't close, just hangs / freezes). So far has happened when in the options menu, when creating a new profile and another time when in game after like 1 minute. But its looking very promising :D

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 30, 2019

Nice !

About the sound, maybe it's just a few OpCode missing. I've just added the 0F 6B XX one...

About random lock, that will be more tricky to find, as I assume it is something with thread and/or TLS, but it's not a crash...

For the crash with gl4es, that"s a shame, if you can give me a gdb backtrace of the crash, I may understand what's missing or wrong, but that's not the priority of this issue.

@ITotalJustice
Copy link
Author

ITotalJustice commented Jul 30, 2019

You work so fast! That fixed the sound. What logs would you need from me to hep find the cause for the crash? Ill add the bt for gl4es to this comment in a few mins. Just testing to see if the lock up happens after a set amount of time.

Also the game is fullspeed, thought you'd like to know ;)

@ITotalJustice
Copy link
Author

ITotalJustice commented Jul 30, 2019

Okay ive been playing the game for 40 minutes so far and no lockup. Previously the lockup would happen after 1-2 mins. I guess we can consider this issue fully solved 👍

Though as for gl4es, would you like me to open a separate issue or carry on here? And as for gdb, how do i pass arguments that need to go before the binary. So far i've been using gdb --args box86 ShovelKnight, how would i add LIBGL_ES=2 LIBGL_GL=21 LIBGL_DIBGL_FBOFORCETEX=1 LD_LIBRARY_PATH=~/monolibs

@ptitSeb
Copy link
Owner

ptitSeb commented Jul 31, 2019

For gdb, add them in front gdb, like for any other program:

LIBGL_ES=2 LIBGL_GL=21 LIBGL_DIBGL_FBOFORCETEX=1 LD_LIBRARY_PATH=~/monolibs gdb --args box86 ShovelKnight

should works fine.

For gl4es, yes, if you can open a ticket in gl4es repo, that would be easier. And I guess this one can be closed if ShovelKnight works fine (how is the speed? Oh, wait, you said it was fullspeed! Nice :D )

@ITotalJustice
Copy link
Author

Yup that worked, thought i already tried that command but looks like i didn't, my bad!

And the game runs at fullspeed at full 1080p, great stuff once again. Closing now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants