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/CC3220SF-LAUNCHXL: CCS 8.2.0.00007 installer crashes on Linux Fedora 28 64-bit

Part Number: CC3220SF-LAUNCHXL

Tool/software: Code Composer Studio

The CCS GUI installer crashes while showing the dialog asking to create a desktop shortcut, and also the message to run some driver install script later, after a few seconds without any notice.

Looking at the install logs I can see this:

$ less ~/ti/ccsv8/install_logs/20180921103304/ccs_8.2.0.00007.log
Error running /tmp/ccs_7db48200-3388-4812-7ac7-634e0311bb27/tcl/bin/tclsh.sh "/tmp/ccs_7db48200-3388-4812-7ac7-634e0311bb27/installer_tcl/main_frontend/main.tcl" --installersrc "/home/david.fernandez/Downloads/TI/CCS8.2.0.00007_linux-x64" --installertmp "/tmp/ccs_7db48200-3388-4812-7ac7-634e0311bb27"  --buildid 8.2.0.00007 --installer "/home/david.fernandez/Downloads/TI/CCS8.2.0.00007_linux-x64/ccs_setup_linux64_8.2.0.00007.bin" --bitness 64-bit --os linux-x64 --osname "Fedora Core" --spversion "" --timestamp 20180921114415 --AVon false --tl false: child killed: segmentation violation
[11:48:09] CCS_ERROR: Install exited with error code
[11:48:09]
[11:48:09] child killed: segmentation violation
[11:48:09]
                                    launchCCS:0
                                    createDesktopShortcut:0
                                    createStartMenuShortcut:0
                                    eclipsedir:/home/david.fernandez/ti/ccsv8/eclipse



Any way to fix this?

  • By the way... in $HOME/ti/ccsv8/install_scripts/ti_permissions_install.sh there is an error selecting the udev restart:

    The file says:

    # For Redhat use the start_udev script
    RESTARTUDEV="/sbin/start_udev"
    
    # For CentOS 7 use a specific command
    if [ ! -e "${RESTARTUDEV}" ]; then
    	RESTARTUDEV="systemctl restart systemd-udevd"
    fi
    
    # For others use "System V" service command
    if [ ! -e "${RESTARTUDEV}" ]; then
    	RESTARTUDEV="service udev restart"
    fi
    

    The first condition is true, and the right command is selected, but then the second condition will also be true, as it won't work like that at all... probably what you want is:

    # For Redhat use the start_udev script
    RESTARTUDEV="/sbin/start_udev"
    
    # For CentOS 7 use a specific command
    if [ ! -e "${RESTARTUDEV}" ]; then
        RESTARTUDEV="`which systemctl` restart systemd-udevd"
    fi
    
    # For others use "System V" service command
    if [ ! -e "`expr "${RESTARTUDEV}" : '\([^ ]\+\)'`" ]; then
    	RESTARTUDEV="service udev restart"
    fi
    

    With the latest bash versions the above can be done quite easier and compact, but this should be compatible with old versions.

  • Hi David,

    Your installation should be working fine, just doesn't have the shortcut. You can create that by rerunning the installer in the same directory, selecting nothing, except for the shortcut on the last pane. Please let me know if it crashes again. I'll forward the script error to the right people.

    Thank you,

    Danish

  • Hi Danish,

    Thanks for the answer... I am out during next week, but I will look into that straight away on my return.

    Regards
  • danishinnis said:
    Your installation should be working fine, just doesn't have the shortcut. You can create that by rerunning the installer in the same directory, selecting nothing, except for the shortcut on the last pane. Please let me know if it crashes again.

    I had the same issue with the CCS 8.2.0.00007 offline installer crashing on Ubuntu 16.04 LTS on the final screen before the shortcut had been created. The log file for that installation is attached.

    In my case re-running the installer in the same directory then caused the shortcut to be created without the installer crashing.

    ccs_8.2.0.00007.log
    Log started 09/22/2018 at 13:47:25
    Preferred installation mode : unattended
    Trying to init installer in mode unattended
    Mode unattended successfully initialized
    [13:47:25] Found mode 
    [13:47:25] Ubuntu 16.04.5 LTS 
    [13:47:25] installer_command_line_arguments : 
            
    [13:47:25] installer_command_line_arguments : 
    [13:47:25] Product Name Code Composer Studio 8.2.0
    [13:47:25] Product Version 8.2.0.00007
    [13:47:25] 
    Preparing to Install
    Preparing to Install
    Unpacking files
    Unpacking files
    Unpacking files
    Unpacking files
    Unpacking files
    Unpacking files
    Unpacking files
    [13:47:26] admin = 0
    [13:47:26] installertype = setup
    [13:47:26] ccsinstaller_name ccs_setup_linux64_8.2.0.00007.bin
    [13:47:26] Installer: /home/mr_halfword/Downloads/CCS8.2.0.00007_linux-x64/ccs_setup_linux64_8.2.0.00007.bin
    Executing chmod -R 777 "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/tcl"
    Script exit code: 0
    
    Script output:
     
    
    Script stderr:
     
    
    Executing chmod -R 777 "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/util"
    Script exit code: 0
    
    Script output:
     
    
    Script stderr:
     
    
    Executing chmod -R 777 "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/dependency-checker"
    Script exit code: 0
    
    Script output:
     
    
    Script stderr:
     
    
    [13:47:28]  
    [13:47:28] running /tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/tcl/bin/tclsh.sh  "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/installer_tcl/main_frontend/main.tcl" --installersrc "/home/mr_halfword/Downloads/CCS8.2.0.00007_linux-x64" --installertmp "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968"  --buildid 8.2.0.00007 --installer "/home/mr_halfword/Downloads/CCS8.2.0.00007_linux-x64/ccs_setup_linux64_8.2.0.00007.bin" --bitness 64-bit --os linux-x64 --osname "Ubuntu 16.04.5 LTS" --spversion "" --timestamp 20180922134725 --AVon false --tl false
    Executing /tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/tcl/bin/tclsh.sh "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/installer_tcl/main_frontend/main.tcl" --installersrc "/home/mr_halfword/Downloads/CCS8.2.0.00007_linux-x64" --installertmp "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968"  --buildid 8.2.0.00007 --installer "/home/mr_halfword/Downloads/CCS8.2.0.00007_linux-x64/ccs_setup_linux64_8.2.0.00007.bin" --bitness 64-bit --os linux-x64 --osname "Ubuntu 16.04.5 LTS" --spversion "" --timestamp 20180922134725 --AVon false --tl false
    Script exit code: 139
    
    Script output:
     
    
    Script stderr:
     Segmentation fault (core dumped)
    
    Error running /tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/tcl/bin/tclsh.sh "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/installer_tcl/main_frontend/main.tcl" --installersrc "/home/mr_halfword/Downloads/CCS8.2.0.00007_linux-x64" --installertmp "/tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968"  --buildid 8.2.0.00007 --installer "/home/mr_halfword/Downloads/CCS8.2.0.00007_linux-x64/ccs_setup_linux64_8.2.0.00007.bin" --bitness 64-bit --os linux-x64 --osname "Ubuntu 16.04.5 LTS" --spversion "" --timestamp 20180922134725 --AVon false --tl false: Segmentation fault (core dumped)
    [13:54:12] CCS_ERROR: Install exited with error code
    [13:54:12] 
    [13:54:12] Segmentation fault (core dumped)
    [13:54:12] 
                                        launchCCS:0
                                        createDesktopShortcut:0
                                        createStartMenuShortcut:0
                                        eclipsedir:/home/mr_halfword/ti/ccs820/ccsv8/eclipse
                                    
    [13:54:12] ccsdir = /home/mr_halfword/ti/ccs820/ccsv8
    Executing chmod -R 666 "/tmp/bitrock_installer.log"
    Script exit code: 0
    
    Script output:
     
    
    Script stderr:
     
    
    [13:54:12] Found /tmp/ccs_b3cabdc5-67e8-417a-79e3-5914d9772968/finish.txt
    Creating Uninstaller
    Creating uninstaller 25%
    Creating uninstaller 50%
    Creating uninstaller 75%
    Creating uninstaller 100%
    Installation completed
    [13:54:15] ccsdir = /home/mr_halfword/ti/ccs820/ccsv8
    

  • Hi Danish,

    I did re-run the installer with the same install folder... If I am quick in clicking all through to the end, it does not crash, but if I wait at the last dialog scree, it crashes all by itself after a few seconds (same as the first time I run it).

    The desktop shortcut is not created at all in any case, so I have done it manually by running:

    $ ln -ns ~/ti/Code\ Composer\ Studio\ 8.2.0.desktop ~/.local/share/applications/

    Then [Alt]+[F2] and [r][CR] (in a Gnome desktop running in Xorg).

  • Thanks Chester, David.

    I see the same behavior on mu Ubuntu 16.04 target. As Chester mentioned, if I re-run the installer over the existing installation, the installer will not crash and the shortcut will be created.

    I filed a bug for this. Tracking ID: CCDSK-3354

    Thanks
    ki