[MIR] SDL_Init() crashes on the bq Aquaris E4.5 phone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libsdl2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Device: bq Aquaris E4.5 Ubuntu Edition
Environment: Ubuntu 14.10 (r21)
libSDL2 has been ported to Mir and the Mir backend should therefore work on the phone too. libSDL2 is not shipped with the device's system image, so I built libSDL2 manually on the device, copied the resulting files over and shipped the shared object as part of the Click package. The desktop file references a shell script which sets the needed LD_LIBRARY_PATH and then calls the actual binary. So far, so good.
The binary kept crashing with a segmentation fault in its call to SDL_Init(
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb6fa4baa in SDL_EGL_
#2 0xb6faf658 in MIR_GL_LoadLibrary (_this=0x28660, path=0x0) at /home/phablet/
#3 0xb6fadc88 in SDL_GL_
#4 SDL_CreateWindo
flags=
#5 0xb6fad916 in ShouldUseTextur
#6 SDL_VideoInit_REAL (driver_
#7 0xb6f3215c in SDL_InitSubSyst
#8 SDL_Init_REAL (flags=<optimized out>) at /home/phablet/
#9 0x00010be8 in main ()
I configured the library as follows:
./configure --disable-rpath --enable-sdl-dlopen --disable-loadso --disable-nas --disable-esd --disable-arts --disable-
The configure summary was the following:
SDL2 Configure Summary:
Building Shared Libraries
Building Static Libraries
Enabled modules : atomic audio video render events joystick haptic power filesystem threads timers file cpuinfo assembly
Assembly Math :
Audio drivers : disk dummy oss
Video drivers : dummy mir opengl opengl_es2
Input drivers : linuxev linuxkd
Using libudev : YES
Using dbus : YES
SDL works! Disabling mir-shared seems to be the fix.
https:/ /raw.githubuser content. com/mcphail/ ubuntu- touch-sdl- template/ master/ lib/src/ how_to_ build_sdl_ for_ubuntu_ phone.txt
Can this bug be closed?