Author |
Message |
Arnk Kilo Dylie Seasoned Helper
Age:36 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Sun Feb 20, 2011 2:27 pm Post subject: |
|
|
|
|
That one is not the most helpful backtrace. Could you determine what specific event causes it? |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Sun Feb 20, 2011 2:57 pm Post subject: |
|
|
|
|
Here's my module...
http://pastebin.com/pYK5FLuj _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
|
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
Posted: Sun Feb 20, 2011 3:33 pm Post subject: |
|
|
|
|
Have you tried valgrind --tool=helgrind
If all else fails and you know how to reliably trigger the bug, start uncommenting and unloading stuff until you know where it comes from. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Feb 20, 2011 4:38 pm Post subject: |
|
|
|
|
Line 1043, you return inside a lock. Unlock before the return.
EDIT: knew to look for this because the deadlock only had one thread waiting for a lock. All the others were happy. So it was clearly not a locking order issue, it was a case of a forgotten unlock. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Sun Feb 20, 2011 5:10 pm Post subject: |
|
|
|
|
aaaaaaaaaaaaaah
... i was searching for exactly these kinds of things...... the eyes of someone else always see more clearly
thanks |
|
Back to top |
|
|
Arnk Kilo Dylie Seasoned Helper
Age:36 Gender: Joined: Jul 14 2006 Posts: 108 Offline
|
Posted: Sun Feb 20, 2011 6:19 pm Post subject: |
|
|
|
|
good practice would probably dictate to not return in the middle of a function, or at least not in the middle of a lock. then you just write lock, unlock, operations in between, and return a result at the end, and never worry. |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Sun Feb 20, 2011 7:21 pm Post subject: |
|
|
|
|
I added the locks afterwards, which is probably why I didn't notice this at the time... But yeah, obviously |
|
Back to top |
|
|
|