<div>Dear All, </div><div> </div><p>As we know, generally, we run bt command in gdb, gdb show the seg fault location in last backtrace.<br> <br>I found one strange behaviour If i run bt command in gdb, at that itme, gdb didn’t show the segment fault location in backtrace by default.</p>
<p>Can some one tell the reason <br>and is this expected in SMP</p><p>warning: Unable to find dynamic linker.<br>GDB will be unable to debug shared library initializers<br>and track explicitly loaded dynamic code.<br>Core was generated by `./myapp'.<br>
Program terminated with signal 11, Segmentation fault.<br>#0 malloc_consolidate (av=0x47600010) at malloc.c:5201 //not fault point thread running on CPU1<br>5201 malloc.c: No such file or directory.<br> <br> in malloc.c<br>
<br>(gdb) bt<br> <br>#0 malloc_consolidate (av=0x47600010) at malloc.c:5201<br>#1 0x426eb1a8 in _int_malloc (av=0x47600010, bytes=<value optimized out>) at malloc.c:4435</p><div>gdb) info reg<br> <br>r0 0xfffe8ed4 4294872788<br>
r1 0x427a8000 1115324416<br>r2 0x91 145<br>r3 0x708812d8 1887965912<br>r4 0x47600040 1197473856<br>r5 0x708812d8 1887965912<br>r6 0xb7e81318 3085439768<br>
r7 0x47600040 1197473856<br>r8 0x476ec930 1198442800<br>r9 0x47600010 1197473808<br>r10 0x28 40<br>r11 0x70881130 1887965488<br>r12 0x47600018 1197473816<br>
sp 0x431aeb20 0x431aeb20<br>lr 0x426eb1a8 1114550696<br>pc 0x426e819c 0x426e819c <malloc_consolidate+316> // also , program count show the CPU1 info<br>fps 0x0 0<br>
cpsr 0x60000010 1610612752<br> <br>(gdb) info thread<br> 225 Thread 190 0x00000000 in ?? () // real user fault point<br> 224 Thread 132 __pthread_cond_wait (cond=0x41ddf060, mutex=0x41ddf090)<br>
Quit<br>(gdb) thread 225<br>[Switching to thread 225 (Thread 190)]#0 0x00000000 in ?? ()<br>(gdb) bt<br>#0 0x00000000 in ?? ()<br>(gdb) info reg<br>r0 0x6de22ba0 1843538848<br>r1 0x476e1648 1198397000<br>
r2 0x0 0<br>r3 0x0 0<br>r4 0x83407ef0 2202042096<br>r5 0x476e1648 1198397000<br>r6 0x68b3888 109787272<br>r7 0x0 0<br>r8 0x6de22ba0 1843538848<br>
r9 0x6de22bf0 1843538928<br>r10 0x83407f44 2202042180<br>r11 0x6de22bd4 1843538900<br>r12 0x23f 575<br>sp 0x6de22b88 0x6de22b88<br>lr 0x1808774 25200500<br>
pc 0x0 0 // program show the user fault info correctly of CPU0<br>fps 0x0 0<br>cpsr 0x20000010 536870928</div><div> </div><div> </div><div>Thanks,</div><div>
John </div>