This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: CCS7 coredump

Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

I'm having the same issue as https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/604509.

Do not think it is kernel related but some system tool was updated.

Kernel version:
uname -a
Linux  4.4.0-81-lowlatency #104-Ubuntu SMP PREEMPT Wed Jun 14 09:42:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Reinstalled ccs7:
rm -rf .ti
rm -rf ti
Installed the latest CCS7 7.2.0.00013
at the command prompt:
~/ti/ccsv7/eclipse$ ./ccstudio
Segmentation fault (core dumped)

Then try and execute the xdctools via command line:
ti/xdctools_3_50_02_20_core/xs.x86_64U: error: can't create session manager error: can't create session manager: can't find a JVM; try setting the environment variable 'XDCTOOLS_JAVA_HOME' to the absolute path of any directory containing a 64-bit Java Runtime Environment (1.7 or greater); e.g., '/usr/lib/jvm/java-7-openjdk-a

so:
export XDCTOOLS_JAVA_HOME=$JAVA_HOME
which is:
XDCTOOLS_JAVA_HOME=/usr/lib/jvm/java-8-oracle

then cut and paste from the makefile to a command line:
"/home/tcmichals/ti/xdctools_3_50_02_20_core/xs"  xdc.tools.configuro -o configPkg -t gnu.targets.arm.A9F -p ti.platforms.evmAM437X -r release -c "/home/tcmichals/ti/gcc-arm-none-eabi-4_9-2015q3" -
Segmentation fault (core dumped)

This does work.
/home/tcmichals/ti/xdctools_3_50_02_20_core/xs

Think the issue is with the compiled in JRE with all of the TI tool set is the issue.
I have an strace dump showing it is calling the JRE in:
execve("./ccstudio", ["./ccstudio"], [/* 71 vars */]) = 0
brk(NULL)                               = 0x18b3000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff783eb0000
readlink("/proc/self/exe", "/home/tcmichals/ti/ccsv7/eclipse"..., 4096) = 41
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/home/tcmichals/ti/ccsv7/eclipse/jre/lib/amd64/tls/x86_64/libjsig.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tcmichals/ti/ccsv7/eclipse/jre/lib/amd64/tls/x86_64", 0x7fffe0834ce0) = -1 ENOENT (No such file or directory)
open("/home/tcmichals/ti/ccsv7/eclipse/jre/lib/amd64/tls/libjsig.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tcmichals/ti/ccsv7/eclipse/jre/lib/amd64/tls", 0x7fffe0834ce0) = -1 ENOENT (No such file or directory)
open("/home/tcmichals/ti/ccsv7/eclipse/jre/lib/amd64/x86_64/libjsig.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tcmichals/ti/ccsv7/eclipse/jre/lib/amd64/x86_64", 0x7fffe0834ce0) = -1 ENOENT (No such file or directory)
open("/home/tcmichals/ti/ccsv7/eclipse/jre/lib/amd64/libjsig.so", O_RDONLY|O_CLOEXEC) = 3
....
futex(0x80d054, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x80d050, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
futex(0x80d028, FUTEX_WAKE_PRIVATE, 1)  = 1
futex(0x797254, FUTEX_WAIT_PRIVATE, 3, NULL) = 0
futex(0x797228, FUTEX_WAKE_PRIVATE, 1)  = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7fffbf6074a0} ---
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], ~[KILL STOP RTMIN RT_1], 8) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7fffbf607fe0} ---
+++ killed by SIGSEGV (core dumped) +++

  • Hi Tim,

    Thank you for providing the details of your troubleshooting.  Would you be able to provide me with the output of   java -version  for the java version in /usr/lib/jvm/java-8-oracle on your system.

    Thank you in advance.

    Martin

  • Follow-up: with fix @processors.wiki.ti.com/.../Download_CCS
    ./ccstudio does work. But, xdctools /home/tcmichals/ti/xdctools_3_50_02_20_core/xs does not work.
  • java -version
    java version "1.8.0_131"
    Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
  • set | grep -i java
    DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
    J2REDIR=/usr/lib/jvm/java-8-oracle/jre
    J2SDKDIR=/usr/lib/jvm/java-8-oracle
    JAVA_HOME=/usr/lib/jvm/java-8-oracle
    NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
  • OK, this might be helpful:

    ltrace "/home/tcmichals/ti/xdctools_3_50_02_20_core/xs.x86_64U" --xdcpath="/home/tcmichals/ti/bios_6_46_04_53/packages;/home/tcmichals/ti/pdk_am437x_1_0_6/packages;/home/tcmichals/ti/uia_2_20_00_02/packages;/home/tcmichals/ti/edma3_lld_2_12_03_27/packages;/home/tcmichals/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A9F -p ti.platforms.evmAM437X -r release -c "/home/tcmichals/ti/gcc-arm-none-eabi-4_9-2015q3" "$<"
    __libc_start_main(0x401944, 14, 0x7ffdb950c6c8, 0x408910 <unfinished ...>
    ftime(0x7ffdb950c4e0, 0x7ffdb950c6c8, 0, 160)
    ....
    __xstat(1, "/home/tcmichals/ti/xdctools_3_50"..., 0x7ffdb950a520) = -1
    strlen("/usr/lib/jvm/java-8-oracle") = 26
    strlen("jre/lib/amd64/server/libjvm.so") = 30
    sprintf("/usr/lib/jvm/java-8-oracle/jre/l"..., "%s%s%s", "/usr/lib/jvm/java-8-oracle", "/", "jre/lib/amd64/server/libjvm.so") = 57
    __xstat(1, "/usr/lib/jvm/java-8-oracle/jre/l"..., 0x7ffdb950a550) = 0
    memset(0x7ffdb950a5c0, '\0', 24) = 0x7ffdb950a5c0
    strrchr("/usr/lib/jvm/java-8-oracle/jre/l"..., '.') = ".so"
    dlopen("/usr/lib/jvm/java-8-oracle/jre/l"..., 1) = 0xf34600
    dlsym(0xf34600, "JNI_CreateJavaVM") = 0x7f686b5d9c70
    --- SIGSEGV (Segmentation fault) ---
    --- SIGSEGV (Segmentation fault) ---


    So, there is no JNI_CreateJavaVM function.
  • Hi Tim,
    Can you try the workaround I recently posted in the below thread?
    e2e.ti.com/.../2226461

    Thanks
    ki
  • export JAVA_TOOL_OPTIONS=-Xss1280k
    Works...