HaxeFoundation / HaxeFoundation/haxe
Mac HL/C segfault
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Seeing this on some CI runs, e.g. [this one](https://github.com/HaxeFoundation/haxe/actions/runs/20342119287/job/58472399610):
```
Command exited with 0 in 8s: /Users/runner/haxe-ci/hashlink/bin/hl [bin/unit.hl]
Command: haxe [compile-hlc.hxml,-D,github,-D,Mac]
Code generated in bin/hlc/unit.c
Automatic native compilation not yet implemented for ci
Command exited with 0 in 13s: haxe [compile-hlc.hxml,-D,github,-D,Mac]
Command: clang [-o,bin/hlc/unit.exe,bin/hlc/unit.c,-Ibin/hlc,-I/Users/runner/haxe-ci/hashlink/include,-L/Users/runner/haxe-ci/hashlink/lib,/Users/runner/haxe-ci/hashlink/lib/fmt.hdll,/Users/runner/haxe-ci/hashlink/lib/ssl.hdll,/Users/runner/haxe-ci/hashlink/lib/sqlite.hdll,/Users/runner/haxe-ci/hashlink/lib/uv.hdll,-lm,-lhl]
Command exited with 0 in 18s: clang [-o,bin/hlc/unit.exe,bin/hlc/unit.c,-Ibin/hlc,-I/Users/runner/haxe-ci/hashlink/include,-L/Users/runner/haxe-ci/hashlink/lib,/Users/runner/haxe-ci/hashlink/lib/fmt.hdll,/Users/runner/haxe-ci/hashlink/lib/ssl.hdll,/Users/runner/haxe-ci/hashlink/lib/sqlite.hdll,/Users/runner/haxe-ci/hashlink/lib/uv.hdll,-lm,-lhl]
Command: bin/hlc/unit.exe []
src/unit/TestMainNow.hx:6: Generated at: 2025-12-18 20:30:05
src/unit/TestMain.hx:30: START
Command exited with -10 in 6s: bin/hlc/unit.exe []
Cloning into '/Users/runner/haxe-ci/downloads/hashlink'...
test hl failed
CMake Deprecation Warning at /Users/runner/haxe-ci/downloads/hashlink_build/_deps/mbedtls-project-src/CMakeLists.txt:21 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
CMake Deprecation Warning at /Users/runner/haxe-ci/downloads/hashlink_build/_deps/mbedtls-project-src/tf-psa-crypto/CMakeLists.txt:21 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
CMake Warning:
Manually-specified variables were not used by the project:
WITH_DIRECTX
In file included from bin/hlc/unit.c:222:
bin/hlc/unit/TestHL.c:2906:25: warning: result of comparison of constant -1 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare]
2906 | r10 = (r11 == 0 || r11 == -1) ? 0 : r10 % r11;
| ~~~ ^ ~~
bin/hlc/unit/TestHL.c:3129:25: warning: result of comparison of constant -1 with expression of type 'unsigned short' is always false [-Wtautological-constant-out-of-range-compare]
3129 | r16 = (r17 == 0 || r17 == -1) ? 0 : r16 % r17;
| ~~~ ^ ~~
In file included from bin/hlc/unit.c:228:
bin/hlc/unit/TestInt64.c:6317:9: warning: self-comparison always evaluates to false [-Wtautological-compare]
6317 | if( r4 != r4 ) goto label$dabc7fa_53_380;
| ^
bin/hlc/unit/TestInt64.c:6385:9: warning: self-comparison always evaluates to false [-Wtautological-compare]
6385 | if( r4 < r4 ) goto label$dabc7fa_53_440;
| ^
bin/hlc/unit/TestInt64.c:6516:9: warning: self-comparison always evaluates to true [-Wtautological-compare]
6516 | if( r4 >= r4 ) goto label$dabc7fa_53_557;
| ^
bin/hlc/unit/TestInt64.c:6567:9: warning: self-comparison always evaluates to false [-Wtautological-compare]
6567 | if( r4 < r4 ) goto label$dabc7fa_53_602;
| ^
bin/hlc/unit/TestInt64.c:6698:9: warning: self-comparison always evaluates to true [-Wtautological-compare]
6698 | if( r4 >= r4 ) goto label$dabc7fa_53_719;
| ^
In file included from bin/hlc/unit.c:692:
bin/hlc/unit/issues/Issue11468.c:80:7: warning: cast to 'varray *' from smaller integer type 'int' [-Wint-to-pointer-cast]
80 | r7 = (varray*)r5->hasValue ? ((varray* (*)(vdynamic*,int))r5->fun)((vdynamic*)r5->value,r6) : ((varray* (*)(int))r5->fun)(r6);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from bin/hlc/unit.c:1038:
bin/hlc/unit/issues/Issue2698.c:56:9: warning: self-comparison always evaluates to false [-Wtautological-compare]
56 | if( r1 != r1 && (!r1 || !r1 || String___compare(r1,(vdynamic*)r1) != 0) ) goto label$869d422_3_7;
| ^
bin/hlc/unit/issues/Issue2698.c:226:9: warning: self-comparison always evaluates to false [-Wtautological-compare]
226 | if( r4 != r4 && (!r4 || !r4 || String___compare(r4,(vdynamic*)r4) != 0) ) goto label$869d422_3_161;
| ^
10 warnings generated.
Error: Process completed with exit code 246.
```
cc @yuxiaomao and @tobil4sk
Contributor guide
Assessment
This issue has not been assessed yet.