-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c4test
segfaults with basic11.c4m
#41
Comments
As of f7752b2, a reduction: $ cat tests/foo.c4m
"""
Test of initializing a list after a variable, then printing both.
"""
"""
$output:
1
[2]
"""
x = 1
l = [2]
print(x)
print(l) prints incorrect value of $ ./debug/c4test tests/foo.c4m
[...]
FAIL: test foo.c4m: output mismatch.
Expected output
1
[2]
Actual
120304245453328
[2] and initializing
produces a segfault:
With ASan:
|
This was referenced Jun 24, 2024
I can confirm that switching to clang 17.0.6 makes But with UBSan:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to the previous #37.
With:
if we fetch the latest libcon4m commit on
main
(8333004) and run./dev debug
:then run
c4test
withbasic11.c4m
:libcon4m/tests/basic11.c4m
Lines 1 to 14 in 8333004
we see a segfault:
The stack trace:
c4m_get_my_type()
intype.h
is:libcon4m/include/con4m/type.h
Lines 159 to 165 in 8333004
The text was updated successfully, but these errors were encountered: