Add version to agent registration message

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: use after free in agent subsystem

Fixes Coverity issue 1230592.

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: possible file descriptor leak in error path

Fixes Coverity issue 1225086.

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: kernel context memory leak on error

Fixes Coverity issue 1223776.

Signed-off-by: David Goulet <dgoulet@efficios.com>
Fix: memory leak in load session thread

Fixes Coverity issue 1213789.

Signed-off-by: David Goulet <dgoulet@efficios.com>
[HEAD MERGE] Test: Add Java agent log4j and use new java agent

This adds the log4j java agent test.

It also moves the JUL test and build system to use the new UST java
agent jar.

FIXME: This commit still hardcode the path to log4j 1.2 jar file on an
Ubuntu system.

Signed-off-by: David Goulet <dgoulet@efficios.com>
[MERGE] add Java m4 macro and detect log4j in configure

Signed-off-by: David Goulet <dgoulet@efficios.com>
[MERGE] Use javaflags in buildsystem for classpath

Signed-off-by: David Goulet <dgoulet@efficios.com>