If you can execute subprocesses, you could always spawn gdb to attach via ptrace() to the parent process and then poke around memory.