| 1 | #include "searchGENOME.H" |
| 2 | |
| 3 | // OSF/1 on Compaq Alpha has, in the past, gotten stuck in a deadlock |
| 4 | // situation allocating memory. There's lots of debugging stuff at |
| 5 | // the end if this file. |
| 6 | |
| 7 | #ifdef __alpha |
| 8 | |
| 9 | // Define this to kill the process with a vengance instead of |
| 10 | // gracefully exiting. exit() tries to free memory, and is thus gets |
| 11 | // caught in the deadlock -- but is useful for debugging. |
| 12 | // |
| 13 | #define KILL_INSTEAD_OF_EXIT |
| 14 | |
| 15 | #ifdef KILL_INSTEAD_OF_EXIT |
| 16 | #include <signal.h> |
| 17 | #endif |
| 18 | |
| 19 | uint32 deadlockTested = 0; |
| 20 | uint32 deadlockPassed = 0; |
| 21 | |
| 22 | void* |
| 23 | deadlockDetector(void *) { |
| 24 | |
| 25 | fprintf(stderr, "Hello! I'm a deadlockDetector!\n"); |
| 26 | |
| 27 | detectAgain: |
| 28 | |
| 29 | // Wait for the deadlock checker to reset things |
| 30 | // |
| 31 | while ((deadlockTested == 1) || (deadlockPassed == 1)) |
| 32 | sleep(4); |
| 33 | |
| 34 | deadlockTested = 1; |
| 35 | char *x = new char [16]; |
| 36 | delete [] x; |
| 37 | deadlockPassed = 1; |
| 38 | |
| 39 | goto detectAgain; |
| 40 | |
| 41 | return(0L); // Ignore the warning! |
| 42 | } |
| 43 | |
| 44 | void* |
| 45 | deadlockChecker(void *) { |
| 46 | |
| 47 | fprintf(stderr, "Hello! I'm a deadlockChecker!\n"); |
| 48 | |
| 49 | checkAgain: |
| 50 | |
| 51 | // Wait for the tester to test |
| 52 | // |
| 53 | while (deadlockTested == 0) |
| 54 | sleep(5); |
| 55 | |
| 56 | // Give it another ten seconds to return |
| 57 | // |
| 58 | sleep(5); |
| 59 | |
| 60 | if (deadlockPassed == 0) { |
| 61 | fprintf(stderr, "\n\n\nESTmapper/search-- Deadlock detected! Aborting the process!\n\n"); |
| 62 | fflush(stderr); |
| 63 | #ifdef KILL_INSTEAD_OF_EXIT |
| 64 | kill(getpid(), SIGKILL); |
| 65 | #endif |
| 66 | exit(1); |
| 67 | } |
| 68 | |
| 69 | //fprintf(stderr, "Deadlock OK\n"); |
| 70 | |
| 71 | // Reset the testing/checking flags |
| 72 | // |
| 73 | deadlockPassed = 0; |
| 74 | deadlockTested = 0; |
| 75 | |
| 76 | goto checkAgain; |
| 77 | |
| 78 | return(0L); // Ignore the warning! |
| 79 | } |
| 80 | |
| 81 | #endif // _alpha |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | #ifdef DONT_EVER_ENABLE_THIS |
| 93 | |
| 94 | // |
| 95 | // Here are some notes on what was tried, and the stack trace from a lock. |
| 96 | // This test failed to find the cause. |
| 97 | // |
| 98 | |
| 99 | #define SIZE (16 * 1024 * 1024) |
| 100 | |
| 101 | void* |
| 102 | mallocStressor(void *) { |
| 103 | struct timespec sleepAmt = { 0, 10000 }; |
| 104 | unsigned long v = 0; |
| 105 | |
| 106 | fprintf(stderr, "Hello! I'm a mallocStressor!\n"); |
| 107 | |
| 108 | mallocAgain: |
| 109 | //nanosleep(&sleepAmt, 0L); |
| 110 | char *x = new char [SIZE]; |
| 111 | for (unsigned int i=SIZE; i--; ) |
| 112 | x[i] = i >> 5; |
| 113 | for (unsigned int i=SIZE; i--; ) |
| 114 | x[i] |= x[SIZE-i]; |
| 115 | for (unsigned int i=SIZE; i--; ) |
| 116 | v += x[i]; |
| 117 | delete [] x; |
| 118 | |
| 119 | goto mallocAgain; |
| 120 | |
| 121 | return((void*)v); // Ignore the warning! |
| 122 | } |
| 123 | |
| 124 | void |
| 125 | main(int argc, char **argv) { |
| 126 | pthread_attr_t threadAttr; |
| 127 | pthread_t threadID; |
| 128 | |
| 129 | pthread_attr_init(&threadAttr); |
| 130 | pthread_attr_setscope(&threadAttr, PTHREAD_SCOPE_SYSTEM); |
| 131 | pthread_attr_setdetachstate(&threadAttr, PTHREAD_CREATE_DETACHED); |
| 132 | pthread_attr_setschedpolicy(&threadAttr, SCHED_OTHER); |
| 133 | |
| 134 | pthread_create(&threadID, &threadAttr, deadlockDetector, 0L); |
| 135 | pthread_create(&threadID, &threadAttr, deadlockChecker, 0L); |
| 136 | |
| 137 | for (unsigned int i=0; i<16; i++) |
| 138 | pthread_create(&threadID, &threadAttr, mallocStressor, (void *)i); |
| 139 | |
| 140 | sleep(100); |
| 141 | } |
| 142 | |
| 143 | // |
| 144 | // |
| 145 | // Stack trace #1 |
| 146 | // |
| 147 | // |
| 148 | |
| 149 | (ladebug) show thread |
| 150 | Thread Name State Substate Policy Pri |
| 151 | ------ ------------------------- --------------- ----------- ------------ --- |
| 152 | * 1 default thread blocked kern usleep SCHED_OTHER 19 |
| 153 | -1 manager thread blk SCS SCHED_RR 19 |
| 154 | -2 null thread for VP 2 running VP 2 null thread -1 |
| 155 | > 2 <anonymous> blocked kern usleep SCHED_OTHER 19 |
| 156 | -3 null thread for VP 3 running VP 3 null thread -1 |
| 157 | 3 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 158 | -4 null thread for VP 4 running VP 4 null thread -1 |
| 159 | 4 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 160 | -5 null thread for VP 5 running VP 5 null thread -1 |
| 161 | 5 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 162 | 6 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 163 | (ladebug) thread 6 |
| 164 | Thread Name State Substate Policy Pri |
| 165 | ------ ------------------------- --------------- ----------- ------------ --- |
| 166 | > 6 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 167 | |
| 168 | (ladebug) where |
| 169 | >0 0x3ff805caf3c in __hstTransferRegisters(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 170 | #1 0x3ff805af74c in __osTransferContext(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 171 | #2 0x3ff805a3c50 in __dspTransferContext(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 172 | #3 0x3ff805a12f4 in __dspDispatch(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 173 | #4 0x3ff805ab90c in UnknownProcedure32FromFile8(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 174 | #5 0x3ff805ab2f4 in UnknownProcedure31FromFile8(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 175 | #6 0x3ff805abe3c in UnknownProcedure34FromFile8(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 176 | #7 0x3ff801bf6a0 in UnknownProcedure2FromFile22(0x3ffc01b8400, 0x3ff805ae6d0, 0xfffffffffffffffc, 0x40100000, 0x222384c, 0x20001e2fc40) in /usr/shlib/lib |
| 177 | c.so |
| 178 | #8 0x3ff800cdad4 in malloc(0x3ffc01b8400, 0x3ff805ae6d0, 0xfffffffffffffffc, 0x40100000, 0x222384c, 0x20001e2fc40) in /usr/shlib/libc.so |
| 179 | #9 0x3ff81f300e8 in operator new(0x3ffc01b8400, 0x3ff805ae6d0, 0xfffffffffffffffc, 0x40100000, 0x222384c, 0x20001e2fc40) in /usr/lib/cmplrs/cxx/libcxx.so |
| 180 | #10 0x12000a53c in filter(0x3ffc01b8400, 0x3ff805ae6d0, 0xfffffffffffffffc, 0x40100000, 0x222384c, 0x20001e2fc40) in searchGENOME |
| 181 | #11 0x120008a7c in doSearch(0x3ffc01b8400, 0x3ff805ae6d0, 0xfffffffffffffffc, 0x40100000, 0x222384c, 0x20001e2fc40) in searchGENOME |
| 182 | #12 0x120008e2c in searchThread(0x3ffc01b8400, 0x3ff805ae6d0, 0xfffffffffffffffc, 0x40100000, 0x222384c, 0x20001e2fc40) in searchGENOME |
| 183 | #13 0x3ff805bd2c8 in __thdBase(0x3ffc01b8400, 0x3ff805ae6d0, 0xfffffffffffffffc, 0x40100000, 0x222384c, 0x20001e2fc40) in /usr/shlib/libpthread.so |
| 184 | (ladebug) thread 5 |
| 185 | Thread Name State Substate Policy Pri |
| 186 | ------ ------------------------- --------------- ----------- ------------ --- |
| 187 | > 5 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 188 | |
| 189 | (ladebug) where |
| 190 | >0 0x3ff805caf3c in __hstTransferRegisters(0x3ffc01b8400, 0x3ff805a1ce4, 0x3ff805a3608, 0x20000a0f600, 0x140028000, 0x20000a0f600) in /usr/shlib/libpthre |
| 191 | ad.so |
| 192 | #1 0x3ff805af74c in __osTransferContext(0x3ffc01b8400, 0x3ff805a1ce4, 0x3ff805a3608, 0x20000a0f600, 0x140028000, 0x20000a0f600) in /usr/shlib/libpthread. |
| 193 | so |
| 194 | #2 0x3ff805a3c50 in __dspTransferContext(0x3ffc01b8400, 0x3ff805a1ce4, 0x3ff805a3608, 0x20000a0f600, 0x140028000, 0x20000a0f600) in /usr/shlib/libpthread |
| 195 | .so |
| 196 | #3 0x3ff805a12f4 in __dspDispatch(0x3ffc01b8400, 0x3ff805a1ce4, 0x3ff805a3608, 0x20000a0f600, 0x140028000, 0x20000a0f600) in /usr/shlib/libpthread.so |
| 197 | #4 0x3ff805ab90c in UnknownProcedure32FromFile8(0x3ffc01b8400, 0x3ff805a1ce4, 0x3ff805a3608, 0x20000a0f600, 0x140028000, 0x20000a0f600) in /usr/shlib/lib |
| 198 | pthread.so |
| 199 | #5 0x3ff805ab2f4 in UnknownProcedure31FromFile8(0x3ffc01b8400, 0x3ff805a1ce4, 0x3ff805a3608, 0x20000a0f600, 0x140028000, 0x20000a0f600) in /usr/shlib/lib |
| 200 | pthread.so |
| 201 | #6 0x3ff805abe3c in UnknownProcedure34FromFile8(0x3ffc01b8400, 0x3ff805a1ce4, 0x3ff805a3608, 0x20000a0f600, 0x140028000, 0x20000a0f600) in /usr/shlib/lib |
| 202 | pthread.so |
| 203 | #7 0x3ff801be4f0 in UnknownProcedure12FromFile22(0x3ffc01b8400, 0x3ff805a1ce4, 0x140a275c0, 0x100000, 0x3700498c55, 0x20000a0f600) in /usr/shlib/libc.so |
| 204 | #8 0x3ff800cf2b0 in free(0x3ffc01b8400, 0x3ff805a1ce4, 0x140a275c0, 0x100000, 0x3700498c55, 0x20000a0f600) in /usr/shlib/libc.so |
| 205 | #9 0x3ff81f15a7c in operator delete(0x3ffc01b8400, 0x3ff805a1ce4, 0x140a275c0, 0x100000, 0x3700498c55, 0x20000a0f600) in /usr/lib/cmplrs/cxx/libcxx.so |
| 206 | #10 0x12000b090 in filter(0x3ffc01b8400, 0x3ff805a1ce4, 0x140a275c0, 0x100000, 0x3700498c55, 0x20000a0f600) in searchGENOME |
| 207 | #11 0x120008a7c in doSearch(0x3ffc01b8400, 0x3ff805a1ce4, 0x140a275c0, 0x100000, 0x3700498c55, 0x20000a0f600) in searchGENOME |
| 208 | #12 0x120008dec in searchThread(0x3ffc01b8400, 0x3ff805a1ce4, 0x140a275c0, 0x100000, 0x3700498c55, 0x20000a0f600) in searchGENOME |
| 209 | #13 0x3ff805bd2c8 in __thdBase(0x3ffc01b8400, 0x3ff805a1ce4, 0x140a275c0, 0x100000, 0x3700498c55, 0x20000a0f600) in /usr/shlib/libpthread.so |
| 210 | (ladebug) thread 4 |
| 211 | Thread Name State Substate Policy Pri |
| 212 | ------ ------------------------- --------------- ----------- ------------ --- |
| 213 | > 4 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 214 | |
| 215 | (ladebug) where |
| 216 | >0 0x3ff805caf3c in __hstTransferRegisters(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 217 | #1 0x3ff805af74c in __osTransferContext(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 218 | #2 0x3ff805a3c50 in __dspTransferContext(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 219 | #3 0x3ff805a12f4 in __dspDispatch(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 220 | #4 0x3ff805ab90c in UnknownProcedure32FromFile8(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 221 | #5 0x3ff805ab2f4 in UnknownProcedure31FromFile8(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 222 | #6 0x3ff805abe3c in UnknownProcedure34FromFile8(0x3ffc01b8400, 0x3ff805ae6d0, 0x3ff805a33a4, 0x0, 0x0, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 223 | #7 0x3ff801bf6a0 in UnknownProcedure2FromFile22(0x3ffc01b8400, 0x3ff805ae6d0, 0x1, 0x40100000, 0x31c, 0x2000141fc40) in /usr/shlib/libc.so |
| 224 | #8 0x3ff800cdad4 in malloc(0x3ffc01b8400, 0x3ff805ae6d0, 0x1, 0x40100000, 0x31c, 0x2000141fc40) in /usr/shlib/libc.so |
| 225 | #9 0x3ff81f300e8 in operator new(0x3ffc01b8400, 0x3ff805ae6d0, 0x1, 0x40100000, 0x31c, 0x2000141fc40) in /usr/lib/cmplrs/cxx/libcxx.so |
| 226 | #10 0x12000a53c in filter(0x3ffc01b8400, 0x3ff805ae6d0, 0x1, 0x40100000, 0x31c, 0x2000141fc40) in searchGENOME |
| 227 | #11 0x120008a7c in doSearch(0x3ffc01b8400, 0x3ff805ae6d0, 0x1, 0x40100000, 0x31c, 0x2000141fc40) in searchGENOME |
| 228 | #12 0x120008dec in searchThread(0x3ffc01b8400, 0x3ff805ae6d0, 0x1, 0x40100000, 0x31c, 0x2000141fc40) in searchGENOME |
| 229 | #13 0x3ff805bd2c8 in __thdBase(0x3ffc01b8400, 0x3ff805ae6d0, 0x1, 0x40100000, 0x31c, 0x2000141fc40) in /usr/shlib/libpthread.so |
| 230 | (ladebug) thread 3 |
| 231 | Thread Name State Substate Policy Pri |
| 232 | ------ ------------------------- --------------- ----------- ------------ --- |
| 233 | > 3 <anonymous> blocked mut 9 SCHED_OTHER 19 |
| 234 | |
| 235 | (ladebug) where |
| 236 | >0 0x3ff805caf3c in __hstTransferRegisters(0x3ffc01b8400, 0x13, 0x3ff805a33a4, 0x0, 0x0, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 237 | #1 0x3ff805af74c in __osTransferContext(0x3ffc01b8400, 0x13, 0x3ff805a33a4, 0x0, 0x0, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 238 | #2 0x3ff805a3c50 in __dspTransferContext(0x3ffc01b8400, 0x13, 0x3ff805a33a4, 0x0, 0x0, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 239 | #3 0x3ff805a12f4 in __dspDispatch(0x3ffc01b8400, 0x13, 0x3ff805a33a4, 0x0, 0x0, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 240 | #4 0x3ff805ab90c in UnknownProcedure32FromFile8(0x3ffc01b8400, 0x13, 0x3ff805a33a4, 0x0, 0x0, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 241 | #5 0x3ff805ab2f4 in UnknownProcedure31FromFile8(0x3ffc01b8400, 0x13, 0x3ff805a33a4, 0x0, 0x0, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 242 | #6 0x3ff805abe3c in UnknownProcedure34FromFile8(0x3ffc01b8400, 0x13, 0x3ff805a33a4, 0x0, 0x0, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 243 | #7 0x3ff801bf6a0 in UnknownProcedure2FromFile22(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/shlib/libc.so |
| 244 | #8 0x3ff800cdad4 in malloc(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/shlib/libc.so |
| 245 | #9 0x3ff81f32050 in UnknownProcedure3FromFile46(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/lib/cmplrs/cxx/libc |
| 246 | xx.so |
| 247 | #10 0x3ff81f34190 in __cxx_v60_dispatch__X4need3new8libcxxso(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/lib/cmp |
| 248 | lrs/cxx/libcxx.so |
| 249 | #11 0x3ff807f29d4 in UnknownProcedure11FromFile0(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/shlib/libexc.so |
| 250 | #12 0x3ff807f2cd8 in exc_dispatch_exception(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/shlib/libexc.so |
| 251 | #13 0x3ff807f39e0 in exc_raise_signal_exception(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/shlib/libexc.so |
| 252 | #14 0x3ff805b9470 in UnknownProcedure8FromFile16(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/shlib/libpthread.so |
| 253 | #15 0x3ff800d0b9c in __sigtramp(0x3ffc01b8400, 0x13, 0x20001927600, 0x40100000, 0x3ff81f34150, 0x2000283fc40) in /usr/shlib/libc.so |
| 254 | #16 0x3ff801be2c0 in UnknownProcedure12FromFile22(0x3ffc0086f90, 0x0, 0x100000, 0x0, 0x3f003d2689, 0xa8003d2689) in /usr/shlib/libc.so |
| 255 | #17 0x3ff800cf2b0 in free(0x3ffc0086f90, 0x0, 0x100000, 0x0, 0x3f003d2689, 0xa8003d2689) in /usr/shlib/libc.so |
| 256 | #18 0x3ff81f15a7c in operator delete(0x3ffc0086f90, 0x0, 0x100000, 0x0, 0x3f003d2689, 0xa8003d2689) in /usr/lib/cmplrs/cxx/libcxx.so |
| 257 | #19 0x12000b090 in filter(0x3ffc0086f90, 0x0, 0x100000, 0x0, 0x3f003d2689, 0xa8003d2689) in searchGENOME |
| 258 | #20 0x120008a7c in doSearch(0x3ffc0086f90, 0x0, 0x100000, 0x0, 0x3f003d2689, 0xa8003d2689) in searchGENOME |
| 259 | #21 0x120008dec in searchThread(0x3ffc0086f90, 0x0, 0x100000, 0x0, 0x3f003d2689, 0xa8003d2689) in searchGENOME |
| 260 | #22 0x3ff805bd2c8 in __thdBase(0x3ffc0086f90, 0x0, 0x100000, 0x0, 0x3f003d2689, 0xa8003d2689) in /usr/shlib/libpthread.so |
| 261 | (ladebug) thread 2 |
| 262 | Thread Name State Substate Policy Pri |
| 263 | ------ ------------------------- --------------- ----------- ------------ --- |
| 264 | > 2 <anonymous> blocked kern usleep SCHED_OTHER 19 |
| 265 | |
| 266 | (ladebug) where |
| 267 | >0 0x3ff800e5c38 in __usleep_thread(0x20000f15a40, 0x0, 0x0, 0x0, 0x0, 0x356) in /usr/shlib/libc.so |
| 268 | #1 0x3ff801b3314 in __usleep(0x20000f15a40, 0x0, 0x0, 0x0, 0x0, 0x356) in /usr/shlib/libc.so |
| 269 | #2 0x1200091ac in loaderThread(0x20000f15a40, 0x0, 0x0, 0x0, 0x0, 0x356) in searchGENOME |
| 270 | #3 0x3ff805bd2c8 in __thdBase(0x20000f15a40, 0x0, 0x0, 0x0, 0x0, 0x356) in /usr/shlib/libpthread.so |
| 271 | (ladebug) thread 1 |
| 272 | Thread Name State Substate Policy Pri |
| 273 | ------ ------------------------- --------------- ----------- ------------ --- |
| 274 | >* 1 default thread blocked kern usleep SCHED_OTHER 19 |
| 275 | |
| 276 | (ladebug) where |
| 277 | >0 0x3ff800e5c38 in __usleep_thread(0x11fffbe88, 0x0, 0x5254, 0x0, 0x0, 0x140002408) in /usr/shlib/libc.so |
| 278 | #1 0x3ff801b3314 in __usleep(0x11fffbe88, 0x0, 0x5254, 0x0, 0x0, 0x140002408) in /usr/shlib/libc.so |
| 279 | #2 0x12000661c in main(0x11fffbe88, 0x0, 0x5254, 0x0, 0x0, 0x140002408) in searchGENOME |
| 280 | #3 0x1200055c8 in __start(0x11fffbe88, 0x0, 0x5254, 0x0, 0x0, 0x140002408) in searchGENOME |
| 281 | |
| 282 | // |
| 283 | // |
| 284 | // Stack trace #2 |
| 285 | // |
| 286 | // |
| 287 | |
| 288 | (ladebug) show thread |
| 289 | Thread Name State Substate Policy Pri |
| 290 | ------ ------------------------- --------------- ----------- ------------ --- |
| 291 | >* 4 <anonymous> blocked kern usleep SCHED_OTHER 19 |
| 292 | 1 default thread blocked mut 15 SCHED_OTHER 19 |
| 293 | -1 manager thread blk SCS SCHED_RR 19 |
| 294 | -2 null thread for VP 2 running VP 2 null thread -1 |
| 295 | 2 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 296 | -3 null thread for VP 3 running VP 3 null thread -1 |
| 297 | 3 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 298 | -4 null thread for VP 4 running VP 4 null thread -1 |
| 299 | 5 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 300 | -5 null thread for VP 5 running VP 5 null thread -1 |
| 301 | 6 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 302 | 7 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 303 | 8 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 304 | |
| 305 | |
| 306 | |
| 307 | (ladebug) show mutex |
| 308 | Mutex Name State Owner Pri Type Waiters (+Count) |
| 309 | ------ ------------------------- ----- ------ --- -------- -------------------- |
| 310 | 1 Once Normal |
| 311 | 2 debugger client registry Normal |
| 312 | 3 VM stats Normal |
| 313 | 4 key creation Normal |
| 314 | 5 malloc heap Normal |
| 315 | 6 malloc hash Normal |
| 316 | 7 malloc cache[0] Normal |
| 317 | 8 malloc cache[1] Normal |
| 318 | 9 malloc cache[2] Normal |
| 319 | 10 malloc cache[3] Normal |
| 320 | 11 malloc cache[4] Normal |
| 321 | 12 malloc cache[5] Normal |
| 322 | 13 malloc cache[6] Normal |
| 323 | 14 malloc cache[7] Normal |
| 324 | 15 malloc cache[8] Lock Normal 6, 7, 8, 1, 5, 2, 3 |
| 325 | 16 malloc cache[9] Normal |
| 326 | 17 malloc cache[10] Normal |
| 327 | 18 malloc cache[11] Normal |
| 328 | 19 malloc cache[12] Normal |
| 329 | 20 malloc cache[13] Normal |
| 330 | 21 malloc cache[14] Normal |
| 331 | 22 malloc cache[15] Normal |
| 332 | 23 malloc cache[16] Normal |
| 333 | 24 malloc cache[17] Normal |
| 334 | 25 malloc cache[18] Normal |
| 335 | 26 malloc cache[19] Normal |
| 336 | 27 malloc cache[20] Normal |
| 337 | 28 malloc cache[21] Normal |
| 338 | 29 malloc cache[22] Normal |
| 339 | 30 malloc cache[23] Normal |
| 340 | 31 malloc cache[24] Normal |
| 341 | 32 malloc cache[25] Normal |
| 342 | 33 malloc cache[26] Normal |
| 343 | 34 malloc cache[27] Normal |
| 344 | 35 malloc cache[28] Normal |
| 345 | 36 brk Normal |
| 346 | 37 exc cr Recurs |
| 347 | 38 exc read rwl Normal |
| 348 | 39 VM 0 lookaside Normal |
| 349 | 40 VM 1 lookaside Normal |
| 350 | 41 VM 2 lookaside Normal |
| 351 | 42 VM 3 lookaside Normal |
| 352 | 43 VM 4 lookaside Normal |
| 353 | 44 VM 5 lookaside Normal |
| 354 | 45 VM 6 lookaside Normal |
| 355 | 46 VM 0 cache Normal |
| 356 | 47 VM 1 cache Normal |
| 357 | 48 VM 2 cache Normal |
| 358 | 49 Global lock Recurs |
| 359 | 50 ldr Recurs |
| 360 | 51 <anonymous> Recurs |
| 361 | 52 stderr Recurs |
| 362 | 53 stdout Recurs |
| 363 | 54 <anonymous> Recurs |
| 364 | 55 <anonymous> Recurs |
| 365 | 56 inputTailMutex(0x14000105 Normal |
| 366 | 57 queryMatchMutex(0x1400010 Normal |
| 367 | |
| 368 | |
| 369 | |
| 370 | |
| 371 | (ladebug) thread 1 |
| 372 | Thread Name State Substate Policy Pri |
| 373 | ------ ------------------------- --------------- ----------- ------------ --- |
| 374 | > 1 default thread blocked mut 15 SCHED_OTHER 19 |
| 375 | |
| 376 | (ladebug) where |
| 377 | >0 0x3ff805ba8ac in __hstTransferRegisters(0x20002d47600, 0x0, 0x0, 0x100000000, 0x20002d47c40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 378 | #1 0x3ff805acf74 in __osTransferContext(0x20002d47600, 0x0, 0x0, 0x100000000, 0x20002d47c40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 379 | #2 0x3ff805a004c in __dspDispatch(0x20002d47600, 0x0, 0x0, 0x100000000, 0x20002d47c40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 380 | #3 0x3ff805a94e4 in UnknownProcedure146FromFile0(0x20002d47600, 0x0, 0x0, 0x100000000, 0x20002d47c40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 381 | #4 0x3ff805a9bf8 in UnknownProcedure148FromFile0(0x20002d47600, 0x0, 0x0, 0x100000000, 0x20002d47c40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 382 | #5 0x3ff801bed30 in UnknownProcedure12FromFile22(0x20002d47600, 0x0, 0x0, 0x0, 0x0, 0x3ff805ac400) in /usr/shlib/libc.so |
| 383 | #6 0x3ff800cf2c0 in free(0x20002d47600, 0x0, 0x0, 0x0, 0x0, 0x3ff805ac400) in /usr/shlib/libc.so |
| 384 | #7 0x3ff81f15a7c in operator delete(0x20002d47600, 0x0, 0x0, 0x0, 0x0, 0x3ff805ac400) in /usr/lib/cmplrs/cxx/libcxx.so |
| 385 | #8 0x3ff81f2f53c in operator delete[](0x20002d47600, 0x0, 0x0, 0x0, 0x0, 0x3ff805ac400) in /usr/lib/cmplrs/cxx/libcxx.so |
| 386 | #9 0x1200073fc in main(0x20002d47600, 0x0, 0x0, 0x0, 0x0, 0x3ff805ac400) in searchGENOME |
| 387 | #10 0x120006088 in __start(0x20002d47600, 0x0, 0x0, 0x0, 0x0, 0x3ff805ac400) in searchGENOME |
| 388 | |
| 389 | (ladebug) thread 2 |
| 390 | Thread Name State Substate Policy Pri |
| 391 | ------ ------------------------- --------------- ----------- ------------ --- |
| 392 | > 2 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 393 | |
| 394 | (ladebug) where |
| 395 | >0 0x3ff805ba8ac in __hstTransferRegisters(0x2000141f600, 0x0, 0x0, 0x100000000, 0x3ff805a0194, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 396 | #1 0x3ff805acf74 in __osTransferContext(0x2000141f600, 0x0, 0x0, 0x100000000, 0x3ff805a0194, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 397 | #2 0x3ff805a004c in __dspDispatch(0x2000141f600, 0x0, 0x0, 0x100000000, 0x3ff805a0194, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 398 | #3 0x3ff805a94e4 in UnknownProcedure146FromFile0(0x2000141f600, 0x0, 0x0, 0x100000000, 0x3ff805a0194, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 399 | #4 0x3ff805a9bf8 in UnknownProcedure148FromFile0(0x2000141f600, 0x0, 0x0, 0x100000000, 0x3ff805a0194, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 400 | #5 0x3ff801bfee0 in UnknownProcedure2FromFile22(0x2000141f600, 0x0, 0x4, 0x0, 0x0, 0x3ff805ac400) in /usr/shlib/libc.so |
| 401 | #6 0x3ff800cdae4 in malloc(0x2000141f600, 0x0, 0x4, 0x0, 0x0, 0x3ff805ac400) in /usr/shlib/libc.so |
| 402 | #7 0x3ff81f300e8 in operator new(0x2000141f600, 0x0, 0x4, 0x0, 0x0, 0x3ff805ac400) in /usr/lib/cmplrs/cxx/libcxx.so |
| 403 | #8 0x3ff81f2f5dc in operator new[](0x2000141f600, 0x0, 0x4, 0x0, 0x0, 0x3ff805ac400) in /usr/lib/cmplrs/cxx/libcxx.so |
| 404 | #9 0x12000a9bc in deadlockDetector(0x2000141f600, 0x0, 0x4, 0x0, 0x0, 0x3ff805ac400) in searchGENOME |
| 405 | #10 0x3ff805c67e0 in __thdBase(0x2000141f600, 0x0, 0x4, 0x0, 0x0, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 406 | |
| 407 | (ladebug) thread 3 |
| 408 | Thread Name State Substate Policy Pri |
| 409 | ------ ------------------------- --------------- ----------- ------------ --- |
| 410 | > 3 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 411 | |
| 412 | (ladebug) where |
| 413 | >0 0x3ff805ba8ac in __hstTransferRegisters(0x20001e2f600, 0x0, 0x0, 0x100000000, 0x0, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 414 | #1 0x3ff805acf74 in __osTransferContext(0x20001e2f600, 0x0, 0x0, 0x100000000, 0x0, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 415 | #2 0x3ff805a004c in __dspDispatch(0x20001e2f600, 0x0, 0x0, 0x100000000, 0x0, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 416 | #3 0x3ff805a94e4 in UnknownProcedure146FromFile0(0x20001e2f600, 0x0, 0x0, 0x100000000, 0x0, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 417 | #4 0x3ff805a9bf8 in UnknownProcedure148FromFile0(0x20001e2f600, 0x0, 0x0, 0x100000000, 0x0, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 418 | #5 0x3ff801bfee0 in UnknownProcedure2FromFile22(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libc.so |
| 419 | #6 0x3ff800cdae4 in malloc(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libc.so |
| 420 | #7 0x3ff805be20c in UnknownProcedure0FromFile99(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 421 | #8 0x3ff805be508 in UnknownProcedure1FromFile99(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 422 | #9 0x3ff805be5d0 in UnknownProcedure3FromFile99(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 423 | #10 0x3ff807f369c in UnknownProcedure15FromFile0(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libexc.so |
| 424 | #11 0x3ff807f3a08 in exc_raise_signal_exception(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libexc.so |
| 425 | #12 0x3ff805b5a9c in UnknownProcedure283FromFile0(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 426 | #13 0x3ff800d0bbc in __sigtramp(0x20001e2f600, 0x0, 0x0, 0x0, 0x3ff80119094, 0x3ff805ac400) in /usr/shlib/libc.so |
| 427 | #14 0x3ff800e2158 in __kill(0x27aaf6, 0x6, 0x1000000, 0x0, 0x0, 0x1) in /usr/shlib/libc.so |
| 428 | #15 0x12000aad0 in deadlockChecker(0x27aaf6, 0x6, 0x1000000, 0x0, 0x0, 0x1) in searchGENOME |
| 429 | #16 0x3ff805c67e0 in __thdBase(0x27aaf6, 0x6, 0x1000000, 0x0, 0x0, 0x1) in /usr/shlib/libpthread.so |
| 430 | |
| 431 | (ladebug) thread 4 |
| 432 | Thread Name State Substate Policy Pri |
| 433 | ------ ------------------------- --------------- ----------- ------------ --- |
| 434 | >* 4 <anonymous> blocked kern usleep SCHED_OTHER 19 |
| 435 | |
| 436 | (ladebug) where |
| 437 | >0 0x3ff800e5e68 in __usleep_thread(0x20002335a30, 0x20002335a28, 0x0, 0x0, 0x12000a690, 0x12000a6c0) in /usr/shlib/libc.so |
| 438 | #1 0x3ff80ba527c in nanosleep(0x20002335a30, 0x20002335a28, 0x0, 0x0, 0x12000a690, 0x12000a6c0) in /usr/shlib/librt.so |
| 439 | #2 0x12000a6ec in loaderThread(0x20002335a30, 0x20002335a28, 0x0, 0x0, 0x12000a690, 0x12000a6c0) in searchGENOME |
| 440 | #3 0x3ff805c67e0 in __thdBase(0x20002335a30, 0x20002335a28, 0x0, 0x0, 0x12000a690, 0x12000a6c0) in /usr/shlib/libpthread.so |
| 441 | |
| 442 | (ladebug) thread 5 |
| 443 | Thread Name State Substate Policy Pri |
| 444 | ------ ------------------------- --------------- ----------- ------------ --- |
| 445 | > 5 <anonymous> blocked mut 15 SCHED_OTHER 19 |
| 446 | |
| 447 | (ladebug) where |
| 448 | >0 0x3ff805ba8ac in __hstTransferRegisters(0x20000a0f600, 0x0, 0x0, 0x100000000, 0x20000a0fc40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 449 | #1 0x3ff805acf74 in __osTransferContext(0x20000a0f600, 0x0, 0x0, 0x100000000, 0x20000a0fc40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 450 | #2 0x3ff805a004c in __dspDispatch(0x20000a0f600, 0x0, 0x0, 0x100000000, 0x20000a0fc40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 451 | #3 0x3ff805a94e4 in UnknownProcedure146FromFile0(0x20000a0f600, 0x0, 0x0, 0x100000000, 0x20000a0fc40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 452 | #4 0x3ff805a9bf8 in UnknownProcedure148FromFile0(0x20000a0f600, 0x0, 0x0, 0x100000000, 0x20000a0fc40, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 453 | #5 0x3ff801bfee0 in UnknownProcedure2FromFile22(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/shlib/libc.so |
| 454 | #6 0x3ff800cdae4 in malloc(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/shlib/libc.so |
| 455 | #7 0x3ff81f32050 in UnknownProcedure3FromFile46(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/lib/cmplrs/cxx/libcxx.so |
| 456 | #8 0x3ff81f34190 in __cxx_v60_dispatch__X4need3new8libcxxso(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/lib/cmplrs/cxx/libcxx.so |
| 457 | #9 0x3ff807f29d4 in UnknownProcedure11FromFile0(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/shlib/libexc.so |
| 458 | #10 0x3ff807f2cd8 in exc_dispatch_exception(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/shlib/libexc.so |
| 459 | #11 0x3ff807f39e0 in exc_raise_signal_exception(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/shlib/libexc.so |
| 460 | #12 0x3ff805b5a9c in UnknownProcedure283FromFile0(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/shlib/libpthread.so |
| 461 | #13 0x3ff800d0bbc in __sigtramp(0x20000a0f600, 0x0, 0x2000283f600, 0x2000283d288, 0x3ff81f34150, 0x3ff805ac400) in /usr/shlib/libc.so |
| 462 | #14 0x3ff801beb00 in UnknownProcedure12FromFile22(0x3ffc0087290, 0x0, 0x100000, 0x0, 0x3ff801bead0, 0x3ff801beba4) in /usr/shlib/libc.so |
| 463 | #15 0x3ff800cf2c0 in free(0x3ffc0087290, 0x0, 0x100000, 0x0, 0x3ff801bead0, 0x3ff801beba4) in /usr/shlib/libc.so |
| 464 | #16 0x3ff81f15a7c in operator delete(0x3ffc0087290, 0x0, 0x100000, 0x0, 0x3ff801bead0, 0x3ff801beba4) in /usr/lib/cmplrs/cxx/libcxx.so |
| 465 | #17 0x120009680 in ~encodedQuery(0x3ffc0087290, 0x0, 0x100000, 0x0, 0x3ff801bead0, 0x3ff801beba4) in searchGENOME |
| 466 | #18 0x120009f9c in doSearch(0x3ffc0087290, 0x0, 0x100000, 0x0, 0x3ff801bead0, 0x3ff801beba4) in searchGENOME |
| 467 | #19 0x12000a39c in searchThread(0x3ffc0087290, 0x0, 0x100000, 0x0, 0x3ff801bead0, 0x3ff801beba4) in searchGENOME |
| 468 | #20 0x3ff805c67e0 in __thdBase(0x3ffc0087290, 0x0, 0x100000, 0x0, 0x3ff801bead0, 0x3ff801beba4) in /usr/shlib/libpthread.so |
| 469 | |
| 470 | #endif // DONT_EVER_ENABLE_THIS |