View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002803libmicrohttpdlibmicrohttpd multi-threaded operationpublic2013-02-20 12:322013-03-29 20:09
Reporterulion 
Assigned ToChristian Grothoff 
PriorityhighSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformdarwinOSiosOS Version5
Product Version0.9.24 
Target Version0.9.26Fixed in Version0.9.26 
Summary0002803: thread pool shared mutex crash on some platform.
Descriptionin current thread pool code, it direct copy the daemon struct from the master to each thread's, include the cleanup_connection_mutex struct, but this will cause crash on some platform, such as darwin/ios5 in my test, it always crash after first thread in the pool exited, and the second thread will crash in MHD_cleanup_connections() at pthread_mutex_lock.

so on some platform, the pthread mutex struct is not copy and sharable, it cause crash.
I made a patch to let each worker thread use it's own cleanup mutex, that save us from the crash when stopping the daemon in xbmc development.
TagsNo tags attached.
Attached Filespatch file icon 0001-Fix-thread-pool-mutex-crash.-the-cleanup-mutex-struc.patch [^] (1,880 bytes) 2013-02-20 12:32 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0006923)
Christian Grothoff (manager)
2013-03-04 13:38

Was fixed on March 1st.

- Issue History
Date Modified Username Field Change
2013-02-20 12:32 ulion New Issue
2013-02-20 12:32 ulion File Added: 0001-Fix-thread-pool-mutex-crash.-the-cleanup-mutex-struc.patch
2013-03-04 13:38 Christian Grothoff Note Added: 0006923
2013-03-04 13:38 Christian Grothoff Status new => resolved
2013-03-04 13:38 Christian Grothoff Fixed in Version => 0.9.25
2013-03-04 13:38 Christian Grothoff Resolution open => fixed
2013-03-04 13:38 Christian Grothoff Assigned To => Christian Grothoff
2013-03-04 13:39 Christian Grothoff Target Version => 0.9.25
2013-03-04 13:40 Christian Grothoff Fixed in Version 0.9.25 => 0.9.26
2013-03-04 13:40 Christian Grothoff Target Version 0.9.25 => 0.9.26
2013-03-29 20:09 Christian Grothoff Status resolved => closed
2013-05-06 12:53 Christian Grothoff Category multi-threaded operation => libmicrohttpd multi-threaded operation


Copyright © 2000 - 2012 MantisBT Group