Category: stacktrace

  • Augmenting Log4J stack traces with class versions

    If you have multiple versions of your code in production, it is extremely useful for the log to include the version of the classes when producing a stacktrace, otherwise it is very hard to match the lines in the stacktrace with the lines of the source code (sidenote: there is an optimization in the Sun…

  • How to generate a stackdump with GDB

    I’m not a big GDB guy, but Google always helps: Create a textfile with the following content: set height 0 thread apply all bt detach quit Run the following command: gdb $EXE -pid $PID -command $TEXTFILE > $OUTPUTFILE where: $EXE is the path to the executable $PID is the PID it is running under $TEXTFILE…