View Stack Trace of different cores

I have a C program which is running as daemon and has some threads.
The program is running on dual core cpu and it may happen that different threads may run on different cpu core.
The problem is sometimes it crashes with some heap memory corruption probably between threads.

GDB command(t a a bt) if run then displays stack all threads of the process.
I do not know if gdb displays stack of same core or also of other cores.

Is there any way to view stack of all threads(of a process) running on different cores?

What operating system are you using and on what architecture?

1 Like

I am using sles 11 linux 64 bit on a dual core machine.