-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
Another way to crash ponyc #3529
Comments
I'm unable to verify on Ubuntu 18.04 with 0.33.1. I get the correct syntax error message. |
Can't replicate on Ubuntu 18.04 with latest master. I get the correct syntax error message. |
@damon-kwok you'll need to provide more detailed replication instructions. |
@SeanTAllen ponyc --version
0.34.1-87b473d [release]
Compiled with: LLVM 9.0.1 -- MSVC-19.26.28803.1-x64 1926 ponyc
Building builtin -> D:\msys64\home\damon\.ome_local\repo\ponyc-git\build\install\packages\builtin
Building . -> d:\msys64\home\damon\workspace\projects\pony\crash_ast
Building collections -> D:\msys64\home\damon\.ome_local\repo\ponyc-git\build\install\packages\collections
Building ponytest -> D:\msys64\home\damon\.ome_local\repo\ponyc-git\build\install\packages\ponytest
Building time -> D:\msys64\home\damon\.ome_local\repo\ponyc-git\build\install\packages\time
Building random -> D:\msys64\home\damon\.ome_local\repo\ponyc-git\build\install\packages\random
D:\msys64\home\damon\.ome_local\repo\ponyc-git\src\libponyc\ast\ast.c:901: ast_has_annotation: Assertion `ast != NULL` failed.
Backtrace:
() [00007FF616C70394]
() [00007FF616BC0515]
() [00007FF616C22D6A]
() [00007FF616C2C00A]
() [00007FF616BE0A28]
() [00007FF616BC4935]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC48D7]
() [00007FF616BC426E]
() [00007FF616BC4679]
() [00007FF616BC7E81]
() [00007FF616BBC4E4]
() [00007FF616BBC6E1]
(pony_asio_event_set_writeable) [00007FF61782DEC4]
(BaseThreadInitThunk) [00007FFE9E167BD4]
(RtlUserThreadStart) [00007FFE9E68CE51]
This is an optimised version of ponyc: the backtrace may be imprecise or incorrect.
Use a debug version to get more meaningful information.
Compilation exited abnormally with code 9 at Fri May 8 10:58:18 |
@kulibali can you see if you get an error with a windows build? |
Yeah, I can repro this on Windows. |
@kulibali what's a better title for this issue? |
Given that this is in Sylvan also noted in today's sync call that the reference to asio in the backtrace is probably a red herring because it isn't involved in ponyc - probably the backtrace addresses being totally bogus and just happening to match a function or two by coincidence. |
Here's a debug backtrace:
|
Thanks, Gordon. |
You may (or may not) be able to fix this crash by modifying this line: ponyc/src/libponyc/type/reify.c Line 380 in e55db85
To look like: if(typearg && is_bare(typearg)) |
main.pony
any_map.pony:
any_set.pony:
The text was updated successfully, but these errors were encountered: