Thread: [tcljava-user] make install - 'Testing installed program' fails
Brought to you by:
mdejong
From: <Fra...@ti...> - 2008-11-07 16:57:10
|
Hi! Tried to install the TclBlend on Linux (sled10). I come this far, now I'm thankful for some advice to how come around this problem. I'm not an java expert so be open-minded in case I miss some basic stuff. I have included the following parts into the .cshrc file (maybe something that is missing or maybe not needed): setenv PATH /tmp/jdk1.6.0_10/bin/:$PATH setenv PATH /proj/teprod/tools/gcc/4.3.2/sled10/bin//:$PATH setenv PATH /local/tclblend/bin:$PATH setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/tmp/tclblend/tclBlend1.4.1/unix setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/tmp/jdk1.6.0_10/jre/lib/i386/native_threads setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/local/tclblend/lib/tcljava1.4.1 Below is the stdout: # make install # # Installing tcljava # Installing tcljava.jar in /local/tclblend/lib/tcljava1.4.1 Installing tcljavasrc.jar in /local/tclblend/lib/tcljava1.4.1 # # Installing tclblend # Installing libtclblend.so in /local/tclblend/lib/tcljava1.4.1 Installing tclblend.jar in /local/tclblend/lib/tcljava1.4.1 Installing tclblendsrc.jar in /local/tclblend/lib/tcljava1.4.1 Installing pkgIndex.tcl in /local/tclblend/lib/tcljava1.4.1 Installing xputils package in /local/tclblend/lib Installing jtclsh in /local/tclblend/bin Installing jwish in /local/tclblend/bin Testing installed program # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xb7ecb88a, pid=31780, tid=3083544240 # # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode, sharing linux-x86) # Problematic frame: # C [libtcl8.5.so+0x9788a] Tcl_FindCommand+0x24a # # An error report file with more information is saved as: # /tmp/tclblend/build_tclblend/tclblend_test/hs_err_pid31780.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # /bin/sh: line 1: 31780 Aborted (core dumped) env /local/tclblend/bin/jtclsh Test.tcl jtclsh test failed due to a configuration error BR Frank |
From: <Fra...@ti...> - 2008-11-11 14:26:11
|
==15846== Memcheck, a memory error detector. ==15846== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==15846== Using LibVEX rev 1854, a library for dynamic binary translation. ==15846== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==15846== Using valgrind-3.3.1, a dynamic binary instrumentation framework. ==15846== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==15846== For more details, rerun with: -v ==15846== ==15844== Conditional jump or move depends on uninitialised value(s) ==15844== at 0x4015103: (within /lib/ld-2.7.so) ==15844== by 0x40079D9: (within /lib/ld-2.7.so) ==15844== by 0x4001104: (within /lib/ld-2.7.so) ==15844== by 0x400D5D5: (within /lib/ld-2.7.so) ==15844== by 0x400107E: (within /lib/ld-2.7.so) ==15844== by 0x4003E04: (within /lib/ld-2.7.so) ==15844== by 0x40138EC: (within /lib/ld-2.7.so) ==15844== by 0x4000C3D: (within /lib/ld-2.7.so) ==15844== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15844== ==15844== Conditional jump or move depends on uninitialised value(s) ==15844== at 0x401510E: (within /lib/ld-2.7.so) ==15844== by 0x40079D9: (within /lib/ld-2.7.so) ==15844== by 0x4001104: (within /lib/ld-2.7.so) ==15844== by 0x400D5D5: (within /lib/ld-2.7.so) ==15844== by 0x400107E: (within /lib/ld-2.7.so) ==15844== by 0x4003E04: (within /lib/ld-2.7.so) ==15844== by 0x40138EC: (within /lib/ld-2.7.so) ==15844== by 0x4000C3D: (within /lib/ld-2.7.so) ==15844== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15844== ==15844== Conditional jump or move depends on uninitialised value(s) ==15844== at 0x4015119: (within /lib/ld-2.7.so) ==15846== by 0x40079D9: (within /lib/ld-2.7.so) ==15846== by 0x4001104: (within /lib/ld-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x400107E: (within /lib/ld-2.7.so) ==15846== by 0x4003E04: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x4015241: (within /lib/ld-2.7.so) ==15846== by 0x40079D9: (within /lib/ld-2.7.so) ==15846== by 0x4001104: (within /lib/ld-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x400107E: (within /lib/ld-2.7.so) ==15846== by 0x4003E04: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15844== ==15844== Conditional jump or move depends on uninitialised value(s) ==15844== at 0x4015241: (within /lib/ld-2.7.so) ==15846== by 0x4005C69: (within /lib/ld-2.7.so) ==15846== by 0x4007A97: (within /lib/ld-2.7.so) ==15846== by 0x4001104: (within /lib/ld-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x400107E: (within /lib/ld-2.7.so) ==15846== by 0x4003E04: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:* obj:* } ==15844== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400A65C: (within /lib/ld-2.7.so) ==15846== by 0x4003125: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400A692: (within /lib/ld-2.7.so) ==15846== by 0x4003125: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400B19D: (within /lib/ld-2.7.so) ==15846== by 0x4003125: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400A542: (within /lib/ld-2.7.so) ==15846== by 0x4003383: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400A54A: (within /lib/ld-2.7.so) ==15846== by 0x4003383: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400A692: (within /lib/ld-2.7.so) ==15846== by 0x4003383: (within /lib/ld-2.7.so) ==15846== by 0x40138EC: (within /lib/ld-2.7.so) ==15846== by 0x4000C3D: (within /lib/ld-2.7.so) ==15846== by 0x4000816: (within /lib/ld-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so } ==15844== ==15846== Invalid read of size 4 ==15846== at 0x4015209: (within /lib/ld-2.7.so) ==15846== by 0x4005C69: (within /lib/ld-2.7.so) ==15846== by 0x4007A97: (within /lib/ld-2.7.so) ==15846== by 0x4011543: (within /lib/ld-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x4010F5D: (within /lib/ld-2.7.so) ==15846== by 0x413F291: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x413F454: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x4119186: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411929F: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411AEC5: __nss_hosts_lookup (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== Address 0x41f8d74 is 36 bytes inside a block of size 37 alloc'd ==15846== at 0x40228E8: malloc (vg_replace_malloc.c:207) ==15846== by 0x4008031: (within /lib/ld-2.7.so) ==15846== by 0x4011543: (within /lib/ld-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x4010F5D: (within /lib/ld-2.7.so) ==15846== by 0x413F291: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x413F454: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x4119186: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411929F: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411AEC5: __nss_hosts_lookup (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411F782: gethostbyname_r (in /lib/tls/i686/cmov/libc-2.7.so) { <insert a suppression name here> Memcheck:Addr4 obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/tls/i686/cmov/libc-2.7.so obj:/lib/ld-2.7.so fun:__libc_dlopen_mode fun:__nss_lookup_function obj:/lib/tls/i686/cmov/libc-2.7.so fun:__nss_hosts_lookup } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400A65C: (within /lib/ld-2.7.so) ==15846== by 0x401167A: (within /lib/ld-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x4010F5D: (within /lib/ld-2.7.so) ==15846== by 0x413F291: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x413F454: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x4119186: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411929F: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411AEC5: __nss_hosts_lookup (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411F782: gethostbyname_r (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411EF57: gethostbyname (in /lib/tls/i686/cmov/libc-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/tls/i686/cmov/libc-2.7.so obj:/lib/ld-2.7.so fun:__libc_dlopen_mode fun:__nss_lookup_function obj:/lib/tls/i686/cmov/libc-2.7.so fun:__nss_hosts_lookup fun:gethostbyname_r fun:gethostbyname } ==15846== ==15846== Conditional jump or move depends on uninitialised value(s) ==15846== at 0x400A692: (within /lib/ld-2.7.so) ==15846== by 0x401167A: (within /lib/ld-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x4010F5D: (within /lib/ld-2.7.so) ==15846== by 0x413F291: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x400D5D5: (within /lib/ld-2.7.so) ==15846== by 0x413F454: __libc_dlopen_mode (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x4119186: __nss_lookup_function (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411929F: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411AEC5: __nss_hosts_lookup (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411F782: gethostbyname_r (in /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x411EF57: gethostbyname (in /lib/tls/i686/cmov/libc-2.7.so) { <insert a suppression name here> Memcheck:Cond obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/ld-2.7.so obj:/lib/tls/i686/cmov/libc-2.7.so obj:/lib/ld-2.7.so fun:__libc_dlopen_mode fun:__nss_lookup_function obj:/lib/tls/i686/cmov/libc-2.7.so fun:__nss_hosts_lookup fun:gethostbyname_r fun:gethostbyname } ==15846== ==15846== Invalid read of size 4 ==15846== at 0x807DA3B: EINSS7CpGetSendFact (ss7c.c:2664) ==15846== by 0x8098E84: EINSS7CpReceiveConReq (ss7tcpip.c:3386) ==15846== by 0x8093751: AcceptAnyConnections (ss7osdpn.c:3423) ==15846== by 0x8093E32: HandleAnyConRequests (ss7osdpn.c:3837) ==15846== by 0x80A465A: CpHandleSocketDataAvailable (ss7msgrecv.c:188) ==15846== by 0x80A4D09: MsgRecvEvent (ss7msgrecv.c:521) ==15846== by 0x80790CF: tecamMessageLoop (tecam_comm_cp.c:237) ==15846== by 0x8079FF3: main (te_main.c:327) ==15846== Address 0x163f8 is not stack'd, malloc'd or (recently) free'd { <insert a suppression name here> Memcheck:Addr4 fun:EINSS7CpGetSendFact fun:EINSS7CpReceiveConReq fun:AcceptAnyConnections fun:HandleAnyConRequests fun:CpHandleSocketDataAvailable fun:MsgRecvEvent fun:tecamMessageLoop fun:main } ==15846== ==15846== Invalid read of size 4 ==15846== at 0x807DA3B: EINSS7CpGetSendFact (ss7c.c:2664) ==15846== by 0x8096F16: CloseAllTCPIPServerSocketsForMPOwner (ss7tcpip.c:2070) ==15846== by 0x807E9BF: CloseAllSocketsForMPOwner (ss7c.c:3595) ==15846== by 0x807ECE8: MsgClose (ss7c.c:3677) ==15846== by 0x8082B6D: MsgCloseAll (ss7c.c:6330) ==15846== by 0x8094CD6: SigTermHandler (ss7osdpn.c:4793) ==15846== by 0x405C127: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x8098E84: EINSS7CpReceiveConReq (ss7tcpip.c:3386) ==15846== by 0x8093751: AcceptAnyConnections (ss7osdpn.c:3423) ==15846== by 0x8093E32: HandleAnyConRequests (ss7osdpn.c:3837) ==15846== by 0x80A465A: CpHandleSocketDataAvailable (ss7msgrecv.c:188) ==15846== by 0x80A4D09: MsgRecvEvent (ss7msgrecv.c:521) ==15846== Address 0x384c is not stack'd, malloc'd or (recently) free'd { <insert a suppression name here> Memcheck:Addr4 fun:EINSS7CpGetSendFact fun:CloseAllTCPIPServerSocketsForMPOwner fun:CloseAllSocketsForMPOwner fun:MsgClose fun:MsgCloseAll fun:SigTermHandler obj:/lib/tls/i686/cmov/libc-2.7.so fun:EINSS7CpReceiveConReq fun:AcceptAnyConnections fun:HandleAnyConRequests fun:CpHandleSocketDataAvailable fun:MsgRecvEvent } ==15846== ==15846== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==15846== Access not within mapped region at address 0x384C ==15846== at 0x807DA3B: EINSS7CpGetSendFact (ss7c.c:2664) ==15846== by 0x8096F16: CloseAllTCPIPServerSocketsForMPOwner (ss7tcpip.c:2070) ==15846== by 0x807E9BF: CloseAllSocketsForMPOwner (ss7c.c:3595) ==15846== by 0x807ECE8: MsgClose (ss7c.c:3677) ==15846== by 0x8082B6D: MsgCloseAll (ss7c.c:6330) ==15846== by 0x8094CD6: SigTermHandler (ss7osdpn.c:4793) ==15846== by 0x405C127: (within /lib/tls/i686/cmov/libc-2.7.so) ==15846== by 0x8098E84: EINSS7CpReceiveConReq (ss7tcpip.c:3386) ==15846== by 0x8093751: AcceptAnyConnections (ss7osdpn.c:3423) ==15846== by 0x8093E32: HandleAnyConRequests (ss7osdpn.c:3837) ==15846== by 0x80A465A: CpHandleSocketDataAvailable (ss7msgrecv.c:188) ==15846== by 0x80A4D09: MsgRecvEvent (ss7msgrecv.c:521) ==15846== ==15846== ERROR SUMMARY: 25 errors from 16 contexts (suppressed: 0 from 0) ==15846== malloc/free: in use at exit: 7,464,140 bytes in 1,476 blocks. ==15846== malloc/free: 1,619 allocs, 143 frees, 7,500,985 bytes allocated. ==15846== For counts of detected errors, rerun with: -v ==15846== searching for pointers to 1,476 not-freed blocks. ==15846== checked 7,349,044 bytes. ==15846== ==15846== ==15846== 7,464,140 bytes in 1,476 blocks are still reachable in loss record 1 of 1 ==15846== at 0x40228E8: malloc (vg_replace_malloc.c:207) ==15846== by 0x808EEFA: CpMemMallocOsdpn (ss7memory.c:1294) ==15846== by 0x808EE7C: CpMemInitUsersOsdpn (ss7memory.c:974) ==15846== by 0x808ED59: CpMemInitUsers (ss7memory.c:888) ==15846== by 0x808E4C5: EINSS7CpMemInit (ss7memory.c:550) ==15846== by 0x807C5BD: EINSS7CpInitBasicStructs (ss7c.c:1496) ==15846== by 0x80A771F: EINSS7CpRegisterMPOwner (ss7cp_mgmt.c:1658) ==15846== by 0x807A3F2: modulesPrepare (te_main.c:476) ==15846== by 0x8079F04: main (te_main.c:281) { <insert a suppression name here> Memcheck:Leak fun:malloc fun:CpMemMallocOsdpn fun:CpMemInitUsersOsdpn fun:CpMemInitUsers fun:EINSS7CpMemInit fun:EINSS7CpInitBasicStructs fun:EINSS7CpRegisterMPOwner fun:modulesPrepare fun:main } ==15846== ==15846== LEAK SUMMARY: ==15846== definitely lost: 0 bytes in 0 blocks. ==15846== possibly lost: 0 bytes in 0 blocks. ==15846== still reachable: 7,464,140 bytes in 1,476 blocks. ==15846== suppressed: 0 bytes in 0 blocks. |
From: Scott S. <ss...@am...> - 2008-11-11 15:51:02
|
Fra...@ti... wrote: > Hi! > > Tried to install the TclBlend on Linux (sled10). <snip> Hi Frank, I would make sure your environment isn't finding other Javas etc. I think the shell script below will help you and possibly others... #!/bin/bash set -e -v # Make sure we have all the variables we need... if [[ -z $DESTDIR || -z $BUILDDIR || -z $TARDIR ]]; then echo "Missing required variables..." exit 1 fi # #### TCL #### # cd $BUILDDIR tar -xzf $TARDIR/tcl8.4.19-src.tar.gz cd tcl8.4.19/unix ./configure --prefix=$DESTDIR --enable-threads make make install # #### TCL THREAD #### # cd $BUILDDIR tar -xzf $TARDIR/thread2.6.5.tar.gz cd thread2.6.5/unix ../configure --enable-threads # knows the prefix from the tcl src base config make make install # #### TclBlend #### # cd $BUILDDIR tar -xzf $TARDIR/tclBlend1.4.1.tar.gz cd tclBlend1.4.1 #patch -p1 < $TARDIR/tclblend-amd64.patch ./autogen.sh ./configure --with-jdk=$DESTDIR/jdk --with-tcl=$BUILDDIR/tcl8.4.19 \ --with-thread=$BUILDDIR/thread2.6.5/unix --prefix=$DESTDIR # gcc 4.1 and greater have an optimation bug that breaks tclblend sed -i "s/-O2//g" Makefile make make install # #### TclLib #### # cd $BUILDDIR tar -xjf $TARDIR/tcllib-1.10.tar.bz2 cd tcllib-1.10 ./configure --prefix=$DESTDIR make make install # convenience links cd $DESTDIR/lib ln -s tcl8.4 tcl ln -s tcljava1.4.1 tcljava cd $DESTDIR/bin ln -s tclsh8.4 tclsh |
From: Mo D. <mo...@mo...> - 2008-11-11 21:44:28
|
Fra...@ti... wrote: > Hi! > > Tried to install the TclBlend on Linux (sled10). > > I come this far, now I'm thankful for some advice to how come around > this problem. I'm not an java expert so be open-minded in case I miss > some basic stuff. > I have included the following parts into the .cshrc file (maybe > something that is missing or maybe not needed): Hi Frank Well, I am not sure why you would put this stuff in .cshrc. This path related stuff goes in the jtclsh startup script. The point where you install fails is right after jtclsh is installed. The problems people always have with Tcl Blend are related to the PATH settings, you just need to make sure the path found by the script actually matches the library locations in your JDK install and it should work. The most likely cause of this problem is that your JDK 6.0 library has some path locations that differ from the ones that configure script knows about, so they are not getting detected correctly. I would suggest you run "make shell" from the build directory and see if you can load Tcl Blend (via "package require java") from the build directory. If you can't get it to load in the build directory then the paths in the Makefile can be updated to try to get it working. Mo DeJong |
From: <Fra...@ti...> - 2008-11-14 13:42:19
Attachments:
hs_err_pid21761.log
|
Hi! Sorry but we can't get it work. As far as we can see is all JAVA parameters set and point on our JAVA 1.6 installation. Parts of settings in the TclBlend and the TclThread Makefile: JAVA = /local/tclblend/jdk/bin/java JAVA_G = /local/tclblend/jdk/bin/java JAVAC = /local/tclblend/jdk/bin/javac JAVAH = /local/tclblend/jdk/bin/javah JAR = /local/tclblend/jdk/bin/jar JAVA_CLASSPATH = /local/tclblend/lib/tcljava/tcljava.jar:/local/tclblend/lib/tcljava/tclb lend.jar JAVA_INCLUDE_FLAGS = -I/local/tclblend/jdk/include -I/local/tclblend/jdk/include/linux JAVA_LIB_FLAGS = -L/local/tclblend/jdk/jre/lib/i386 -ljava -lverify -L/local/tclblend/jdk/jre/lib/i386/client -ljvm -L/local/tclblend/jdk/jre/lib/i386/native_threads -lhpi JAVA_LIB_RUNTIME_PATH = /local/tclblend/jdk/jre/lib/i386:/local/tclblend/jdk/jre/lib/i386/client :/local/tclblend/jdk/jre/lib/i386/native_threads By adding debug into the Tcl code it is possible to see that the CLASSPATH is correctly set when the tclblend.so file is loaded (short before the core dump): env(CLASSPATH) = /local/tclblend/lib/tcljava/tcljava.jar:/local/tclblend/lib/tcljava/tclb lend.jar Coredump with some debug lines added (may be some slight line missmatch). Core was generated by `/local/tclblend/bin/tclsh8.5'. Program terminated with signal 6, Aborted. #0 0xffffe410 in __kernel_vsyscall () (gdb) where #0 0xffffe410 in __kernel_vsyscall () #1 0xb7d588d0 in raise () from /lib/libc.so.6 #2 0xb7d59ff3 in abort () from /lib/libc.so.6 #3 0x0630ca7b in os::abort () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #4 0x063cc541 in VMError::report_and_die () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #5 0x06311d19 in JVM_handle_linux_signal () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #6 0x0630e848 in signalHandler () from /local/tclblend/jdk/jre/lib/i386/client/libjvm.so #7 <signal handler called> #8 0xb7f6cae5 in Tcl_FindCommand (interp=0x8119000, name=0x8165b20 "java::new", contextNsPtr=0x0, flags=0) at /tmp/tclblend/tcl8.5.5/unix/../generic/tclNamesp.c:2388 #9 0xb7ed667b in Tcl_GetCommandInfo (interp=0x8119000, cmdName=0x8165b20 "java::new", infoPtr=0xbfda2b2c) at /tmp/tclblend/tcl8.5.5/unix/../generic/tclBasic.c:2522 #10 0xb7ea965e in Java_tcl_lang_Interp_getCommand () from /local/tclblend/lib/tcljava/libtclblend.so #11 0xb549ff4d in ?? () #12 0x08119114 in ?? () #13 0xbfda2bb0 in ?? () #14 0xbfda2bac in ?? () #15 0xbfda2b78 in ?? () #16 0x08119000 in ?? () #17 0x08119000 in ?? () #18 0x8c121fd8 in ?? () #19 0xbfda2b7c in ?? () #20 0x900d7304 in ?? () #21 0xbfda2bb0 in ?? () #22 0x900dd4b8 in ?? () #23 0x00000000 in ?? () (gdb) Additional information can be found in the attached dump file. Any suggestion how to move forward? BR Frank -----Original Message----- From: Mo DeJong [mailto:mo...@mo...] Sent: den 11 november 2008 22:41 To: A list for users of tcljava Subject: Re: [tcljava-user] make install - 'Testing installed program' fails Fra...@ti... wrote: > Hi! > > Tried to install the TclBlend on Linux (sled10). > > I come this far, now I'm thankful for some advice to how come around > this problem. I'm not an java expert so be open-minded in case I miss > some basic stuff. > I have included the following parts into the .cshrc file (maybe > something that is missing or maybe not needed): Hi Frank Well, I am not sure why you would put this stuff in .cshrc. This path related stuff goes in the jtclsh startup script. The point where you install fails is right after jtclsh is installed. The problems people always have with Tcl Blend are related to the PATH settings, you just need to make sure the path found by the script actually matches the library locations in your JDK install and it should work. The most likely cause of this problem is that your JDK 6.0 library has some path locations that differ from the ones that configure script knows about, so they are not getting detected correctly. I would suggest you run "make shell" from the build directory and see if you can load Tcl Blend (via "package require java") from the build directory. If you can't get it to load in the build directory then the paths in the Makefile can be updated to try to get it working. Mo DeJong ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |
From: Patrick F. <fin...@gm...> - 2008-11-14 14:43:01
|
Do you have to run on Linux? There is a windows binary available. No build required. |
From: Mo D. <mo...@mo...> - 2008-11-14 23:53:05
|
Fra...@ti... wrote: > Hi! > > Sorry but we can't get it work. > > As far as we can see is all JAVA parameters set and point on our JAVA > 1.6 installation. > The ones to focus on are: JAVA_LIB_FLAGS = -L/local/tclblend/jdk/jre/lib/i386 -ljava -lverify -L/local/tclblend/jdk/jre/lib/i386/client -ljvm -L/local/tclblend/jdk/jre/lib/i386/native_threads -lhpi JAVA_LIB_RUNTIME_PATH = /local/tclblend/jdk/jre/lib/i386:/local/tclblend/jdk/jre/lib/i386/client :/local/tclblend/jdk/jre/lib/i386/native_threads These variables control where the system looks for shared libraries. I would bet that what is going on is the JDK 1.6 layout does not include one of these libs in the locations that are being searched. Could you try just running the following and see if you can get this working (these lib names might not be the exact ones on your system). % make shell load libhpi.so load libjvm.so load libjava.so load libtclblend.so If you can't load these libs at runtime, then the runtime lib search path is not correct. Also, check to make sure these libs actually exist in the jdk/jre/lib/i386/... or whatever dirs. Capture the output of the following and post it: cd /local/tclblend/jdk find . -name "*.so" cheers Mo DeJong |
From: Mo D. <mo...@mo...> - 2008-12-13 22:57:26
|
Mo DeJong wrote: > Fra...@ti... wrote: > >> Hi! >> >> Sorry but we can't get it work. >> Hey folks, I though I would post a quick note about the problem Frank was running into in case this bug was biting anyone else. The real cause of the problem is gcc 4.X and the strict-aliasing option enabled by -O2. This is one of those "is is a bug or a feature" things, the way to work around the problem is to either remove the -O2 option from the CFLAGS in the generated Makefile, or add -fno-strict-aliasing to the CFLAGS in the generated Makefile. I checked a patch (SF Patch 2424551) into the CVS to fix this issue (it should also fix other platforms where gcc is not the default compiler). so, if you are running into a crash when doing "package require java" in Tcl Blend, then make sure that gcc 4.X is building with this -fno-strict-aliasing flag. cheers Mo DeJong |