On the 0x208 day of Apache Harmony Gregory Shimansky wrote: > Egor Pasko wrote: > > to debug on linux you should export LD_LIBRARY_PATH for GDB: > > export LD_LIBRARY_PATH=$jre/bin:$jre/bin/default > > (you know what $jre is:) > > (news is that tere should be no slashess at the end of each path, and no > > soft links inside, surprize, surprize:) > > There is a useful trick discovered by Ivan Volosyuk. To get the > correct LD_LIBRARY_PATH which wouldn't trigger process re-execing in > the launcher (this breaks gdb and you won't be able to debug VM) just > run some java program which doesn't finish immediately. Then take a > look at /proc/`pidof java`/environ and copy LD_LIBRARY_PATH setting > from it. This is the exact string which launcher uses when it re-exacs > the process. If you copy it exactly to LD_LIBRARY_PATH setting > launcher won't do exec.
good trick! I remember it (and hope for eliminating a need to use:) > Last time I checked one of directories had to have '/' in the end. So > when things like this change it is safer to use this trick and use the > string which current launcher wants. -- Egor Pasko, Intel Managed Runtime Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]