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 1954

Summary: Thread Local Storage introduces infinite loop condition
Product: SDL Reporter: Gabriel Jacobo <gabomdq>
Component: threadAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   

Description Gabriel Jacobo 2013-07-10 15:19:19 UTC
As reported by Stephen Anthony on the mailing list:

(gdb) bt 20
#0  0x00007ffff7a989bc in SDL_SetError (fmt=<error reading variable: Cannot
access memory at address 0x7fffff7fefe8>)
    at /home/stephen/src/SDL/src/SDL_error.c:54
#1  0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17de890) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
#2  0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62
#3  0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f "Parameter '%s' is
invalid") at /home/stephen/src/SDL/src/SDL_error.c:62
#4  0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17de580) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
#5  0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62
#6  0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f "Parameter '%s' is
invalid") at /home/stephen/src/SDL/src/SDL_error.c:62
#7  0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17de270) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
#8  0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62
#9  0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f "Parameter '%s' is
invalid") at /home/stephen/src/SDL/src/SDL_error.c:62
#10 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17ddf60) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
#11 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62
#12 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f "Parameter '%s' is
invalid") at /home/stephen/src/SDL/src/SDL_error.c:62
#13 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17ddc50) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
#14 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62
#15 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f "Parameter '%s' is
invalid") at /home/stephen/src/SDL/src/SDL_error.c:62
#16 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17dd940) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
#17 0x00007ffff7b28cb5 in SDL_GetErrBuf () at
/home/stephen/src/SDL/src/thread/SDL_thread.c:62
#18 0x00007ffff7a989dc in SDL_SetError (fmt=0x7ffff7bbae9f "Parameter '%s' is
invalid") at /home/stephen/src/SDL/src/SDL_error.c:62
#19 0x00007ffff7ba927b in SDL_TLSSet (id=1, value=0x17dd630) at
/home/stephen/src/SDL/src/thread/pthread/SDL_systls.c:75
(More stack frames follow...)
Comment 1 Sam Lantinga 2013-07-10 21:36:58 UTC
Can you let me know if this is fixed with this changelist?
http://hg.libsdl.org/SDL/rev/358696c354a8
Comment 2 Gabriel Jacobo 2013-07-10 21:57:45 UTC
teststreaming works fine here, marking as fixed.