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?