Opened 13 years ago
Closed 13 years ago
#1870 closed defect (fixed)
Using fail() outside a match/matchcontinue causes a crash
| Reported by: | Owned by: | somebody | |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.0 |
| Component: | Code Generation | Version: | trunk |
| Keywords: | Cc: |
Description
If you call a function that fails If instead of calling fail() then the problem does not occur.
Example output:
Error: Error building simulator. Buildlog: gmake[2]: Entering directory `/Users/adam/exjobb/code/build/tests'
perl /Users/adam/exjobb/trunk/build/share/omc/scripts/convert_lines.pl List_intRangeStep.c List_intRangeStep.conv.c.tmp
gcc -I"/Users/adam/exjobb/trunk/build/include/omc" -O0 -g -falign-functions -msse2 -mfpmath=sse -c -o List_intRangeStep.o List_intRangeStep.conv.c
gcc -I"/Users/adam/exjobb/trunk/build/include/omc" -O0 -g -falign-functions -msse2 -mfpmath=sse -c -o List_intRangeStep_records.o List_intRangeStep_records.c
gcc -single_module -dynamiclib -flat_namespace -o List_intRangeStep.so List_intRangeStep.o List_intRangeStep_records.o -I"/Users/adam/exjobb/trunk/build/include/omc" -O0 -g -falign-functions -msse2 -mfpmath=sse -L"/Users/adam/exjobb/trunk/build/lib/omc" -lOpenModelicaRuntimeC -lexpat -L/opt/local/lib -lintl -liconv -fopenmp -lpthread -lm
Undefined symbols for architecture x86_64:
"_fail", referenced from:
_omc_List_intRangeStep in List_intRangeStep.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
gmake[2]: *** [List_intRangeStep] Error 1
gmake[2]: Leaving directory `/Users/adam/exjobb/code/build/tests'
Change History (1)
comment:1 by , 13 years ago
| Component: | Backend → Code Generation |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed in r13254.