rjRanjana / in-the-box

Automatically exported from code.google.com/p/in-the-box
0 stars 0 forks source link

some mutexes used in dvmLockMutex have not been initialized #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
dvmLockMutex is in InTheBoxSim/vm/Thread.h.
When using pthread_mutex_lock on some mutexes, it returns EINVAL because the 
mutex has not been initialized.
A quick fix has been done, but it should be fixed more elegantly.

Original issue reported on code.google.com by boul...@flexycore.com on 8 Jun 2011 at 3:11

GoogleCodeExporter commented 8 years ago
The mutex that is not initialized is "pDvmDex->modLock". The call to 
"dvmLockMutex(...)" is in dvmDexChangeDex2(...), in DvmDex.c.

Original comment by boul...@flexycore.com on 15 Jun 2011 at 1:16

GoogleCodeExporter commented 8 years ago
Fixed in r61. Initialization is doen in dvmDexFileOpenFromFd.

Original comment by boul...@flexycore.com on 16 Jun 2011 at 2:56