Java binary, can't redirect stderr on VM crash
Tim Bell
Tim.Bell at Sun.COM
Thu Nov 27 21:59:29 UTC 2008
Patrick:
> Problem: I'm testing from the CLI, bash, on Ubuntu 8.10. I need to run
> my test program once for every font on the full font list for the JRE.
Is this test program ("RenderFontTest") something you could share with
the list? Also, what font(s) are you testing when the crash happens?
With this information we can try the testing on other platforms and
throw additional troubleshooting resources such as libumem on Solaris
at the problem.
> However, when the program crashes (on working with the font), I get
> several dozen lines of VM crash output, and I'm not able to redirect
> this to a file. This is painful and I have many fonts to test to try
> and track the problem down.
>
> Example crash output starts like:
> *** glibc detected *** /usr/lib/jvm/java-6-openjdk/bin/java: free():
> invalid next size (fast): 0xb4cc7288 ***
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6[0xb7f753f4]
> /lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7f77456]
Looks as if this output is coming from down inside the free() implementation
in the libc library on the native platform.
:
:
> In all cases, the crash report goes to the console. This happens with
> both Sun JDK 6 and OpenJDK 6. And the output is _long_.
Try this:
java -cp out/production/Samples RenderFontTest "AR PL UMing CN" > /tmp/err.txt 2>&1
Or run your testing inside a /usr/bin/script session to catch the transcript. See
'man script' for more information.
HTH -
Tim
More information about the discuss
mailing list