Skip to content

xsd2ttcn segfault on Cygwin

Summary

Running our reg tests on Cygwin, the following test cases in /titan.core/regression_test/XML/XmlWorkflow/src/xmlTest_Testcases.ttcn resulted in segmentation fault:

tc_decimal_withMinMaxInclusive
tc_decimal_withMinMaxExclusive
tc_decimal_fractiondigits
tc_ranges_float

Steps and/or TTCN-3 code to reproduce

E.g.:

$ ~/ttcn3-8.0.0-cygwin3.1.7-gcc10.2.0/bin/xsd2ttcn.exe -p -t XmlTest_decimal_withMinMaxInclusive.xsd
Notify: Checking documents...
Notify: Parsing XML schema document `XmlTest_decimal_withMinMaxInclusive.xsd'...
Notify: Generating TTCN-3 modules...
Segmentation fault (core dumped)

What is the expected correct behavior?

E.g.:

$ ../../../../Install/bin/xsd2ttcn -p -t XmlTest_decimal_withMinMaxInclusive.xsd
Notify: Checking documents...
Notify: Parsing XML schema document `XmlTest_decimal_withMinMaxInclusive.xsd'...
Notify: Generating TTCN-3 modules...
Notify: File 'www_XmlTest_org_decimal_withMinMaxInclusive.ttcn' was generated.

Titan version

8.0.0

Platform details (OS type and version)

Only Windows10 + Cygwin

/cc @aknappqwt