To create a stack trace for all the threads in a PASOE Agent process it is possible to use the GDB debugger like this:
gdb --pid=<PID# of multi-threaded process> -ex "thread apply all bt" -ex "detach" -ex "quit" > PID_stack.txt
NOTE: If gdb does not detach from the process and a quit is executed the process will abruptly terminate, potentially holding latches if the process is connected through shared memory to the database. So it is important the "detach" command is executed. The parameter -ex "detach" in the command above will do that before quitting.