We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2402 - SDL hangs trying to initialize video subsystem.
Summary: SDL hangs trying to initialize video subsystem.
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.1
Hardware: x86_64 Linux
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-18 11:33 UTC by tn0502
Modified: 2014-02-18 12:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tn0502 2014-02-18 11:33:40 UTC
I can't remember the last time this has worked (it's been a while since I've tried compiling on Linux).

-- SDL2 was configured with the following options:
-- 
-- Platform: Linux-3.12.9-2-ARCH
-- 64-bit:   TRUE
-- Compiler: /usr/bin/clang
-- 
-- Subsystems:
--   Atomic:  OFF
--   Audio: OFF
--   Video: ON
--   Render:  OFF
--   Events:  ON
--   Joystick:  ON
--   Haptic:  ON
--   Power: ON
--   Threads: ON
--   Timers:  ON
--   File:  ON
--   Loadso:  ON
--   CPUinfo: ON
--   Filesystem:  ON
-- 
-- Options:
--   3DNOW                  (Wanted: ON): OFF
--   ALSA                   (Wanted: ON): OFF
--   ALSA_SHARED            (Wanted: ON): OFF
--   ALTIVEC                (Wanted: ON): OFF
--   ARTS                   (Wanted: ON): OFF
--   ARTS_SHARED            (Wanted: ON): OFF
--   ASSEMBLY               (Wanted: ON): ON
--   ASSERTIONS             (Wanted: auto): auto
--   CLOCK_GETTIME          (Wanted: ON): ON
--   DIRECTFB_SHARED        (Wanted: OFF): OFF
--   DIRECTX                (Wanted: OFF): OFF
--   DISKAUDIO              (Wanted: ON): OFF
--   DUMMYAUDIO             (Wanted: ON): OFF
--   ESD                    (Wanted: ON): OFF
--   ESD_SHARED             (Wanted: ON): OFF
--   FUSIONSOUND            (Wanted: OFF): OFF
--   FUSIONSOUND_SHARED     (Wanted: OFF): OFF
--   GCC_ATOMICS            (Wanted: OFF): OFF
--   INPUT_TSLIB            (Wanted: ON): OFF
--   LIBC                   (Wanted: ON): ON
--   MMX                    (Wanted: ON): ON
--   NAS                    (Wanted: ON): OFF
--   OSS                    (Wanted: ON): OFF
--   PTHREADS               (Wanted: ON): ON
--   PTHREADS_SEM           (Wanted: ON): ON
--   PULSEAUDIO             (Wanted: ON): OFF
--   PULSEAUDIO_SHARED      (Wanted: ON): OFF
--   RENDER_D3D             (Wanted: OFF): OFF
--   RPATH                  (Wanted: ON): ON
--   SDL_DLOPEN             (Wanted: ON): ON
--   SNDIO                  (Wanted: ON): OFF
--   SSE                    (Wanted: ON): ON
--   SSE2                   (Wanted: ON): ON
--   SSEMATH                (Wanted: ON): ON
--   VIDEO_COCOA            (Wanted: OFF): OFF
--   VIDEO_DIRECTFB         (Wanted: OFF): OFF
--   VIDEO_DUMMY            (Wanted: OFF): OFF
--   VIDEO_OPENGL           (Wanted: ON): ON
--   VIDEO_OPENGLES         (Wanted: ON): ON
--   VIDEO_X11              (Wanted: ON): ON
--   VIDEO_X11_XCURSOR      (Wanted: OFF): OFF
--   VIDEO_X11_XINERAMA     (Wanted: ON): ON
--   VIDEO_X11_XINPUT       (Wanted: ON): ON
--   VIDEO_X11_XRANDR       (Wanted: ON): ON
--   VIDEO_X11_XSCRNSAVER   (Wanted: ON): OFF
--   VIDEO_X11_XSHAPE       (Wanted: OFF): OFF
--   VIDEO_X11_XVM          (Wanted: ON): ON
--   X11_SHARED             (Wanted: ON): ON
-- 
--  CFLAGS:        -g -O3 -DHAVE_LINUX_VERSION_H
--  EXTRA_CFLAGS:  -D_REENTRANT -msse2 -msse -mmmx -fPIC -w 
--  EXTRA_LDFLAGS: -pthread
--  EXTRA_LIBS:    m;dl;GL;rt
-- 
--  Build Shared Library: OFF
--  Build Static Library: ON

I originally tried with threads off and kernel 3.11.


Stack:

#0  0x00007ffff68e613d in nanosleep () from /usr/lib/libpthread.so.0
#1  0x0000555555770a06 in SDL_Delay (ms=<optimized out>) at [...]/lib/SDL/src/timer/unix/SDL_systimer.c:191
#2  0x000055555575c0b3 in SDL_AtomicLock (lock=0x55555588fab0 <locks+112>) at [...]/lib/SDL/src/atomic/SDL_spinlock.c:104
#3  0x0000555555770a4d in enterLock (a=<optimized out>) at [...]/lib/SDL/src/atomic/SDL_atomic.c:63
#4  SDL_AtomicCAS (a=0x55555588f2e0 <SDL_TLSCreate.SDL_tls_id>, oldval=1, newval=2) at [...]/lib/SDL/src/atomic/SDL_atomic.c:79
#5  0x000055555575f763 in SDL_AtomicAdd (a=<optimized out>, v=<optimized out>, a=<optimized out>, v=<optimized out>)
    at [...]/lib/SDL/include/SDL_atomic.h:288
#6  SDL_TLSCreate () at [...]/lib/SDL/src/thread/SDL_thread.c:35
#7  0x0000555555760672 in SDL_VideoInit (driver_name=<optimized out>) at [...]/lib/SDL/src/video/SDL_video.c:500
#8  0x000055555575a3b1 in SDL_InitSubSystem (flags=<optimized out>) at [...]/lib/SDL/src/SDL.c:170
#9  0x0000555555627032 in (anonymous namespace)::RenderWindow::RenderWindow(unsigned int, unsigned int) ()
#10 0x0000555555626aa0 in main ()
Comment 1 tn0502 2014-02-18 11:59:48 UTC
Forgot to mention that I'm trying to run it in a VirtualBox. I gave away my Linux machine so I'm kinda stuck with this setup.
Comment 2 tn0502 2014-02-18 12:44:31 UTC
Sorry, this is most likely a VirtualBox issue. I should've noticed it when it froze in nanosleep().