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.

BUG armasm improperly handles a syntax error inside thumb it blocks quitting with segmentation fault

On assembly source files, armasm improperly handles a syntax error inside thumb it blocks quitting with segmentation fault
test case:

main:
    it eq
    moveq R0 #0

expected behaviour: a syntax error like "Unexpected trailing operand(s)"

observed behaviour: INTERNAL ERROR armasm experienced a segmentation fault

This doesn't happen outside it blocks, tested with versions TI 5.2.5 and TI 5.2.7

A copy of the error message follows:

**** Build of configuration Debug for project AssemblerBug ****

/home/vxf/ti/ccsv6/utils/bin/gmake -k all 
Building file: ../main.s
Invoking: ARM Compiler
"/home/vxf/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="/home/vxf/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include" -g --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PM --diag_wrap=off --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp"  "../main.s"

INTERNAL ERROR: /home/vxf/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armasm experienced a segmentation fault
                  while processing section .text file ../main.s line 10


>> Compilation failure
This is caused by a defect in the compiler itself. TI Customer
Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue". Include this ENTIRE error message and a
copy of the .pp file created when option --preproc_with_comment
(-ppc) is used.

gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • Thank you for submitting a test case.  I can reproduce the same results.  I filed SDSCM00052888 in the SDOWP system to have this investigated.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George