-
Notifications
You must be signed in to change notification settings - Fork 425
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
Access violation in cc65 #1320
Comments
Line that causes the error: D:\cc6529\bin\cl65 -c --cpu 6502 -Oi -t none -I .\javavm -I .\platform\c64 -I .\util javavm\interpreter.c |
The issue at hand is caused by an access violation in cc65. It can be reproduced by compiling char *var;
void foo(char, char);
char bar(void);
void main(void)
{
foo(*var++, bar());
} without any options. The access violation happens in https://github.com/cc65/cc65/blob/master/src/cc65/datatype.c#L706 because In the VC++ debug build, the callstack looks like this:
|
@acqn Possibly related to your enum or prototype changes? |
I already stretched my time budget to analyze the issue so far and come up with a minimal reproduction scenario. Therefore I explicitly asks others to pick up from where I left off! @acqn, @jmr: It's almost certain that one of your recent changes caused this regression - which unfortunately wasn't detected by our exsisting tests. I'd appreciate if you would analyze the issue further based on the info provided above. @mrdudz: You seem to both have experience and time budget for git-bisect. I'd appreciate if you could help to isolate the actual git change causing the regression. And it would of course be great to have an automated regression test for the issue. Thanks in advance, Oliver |
I will add a test case and bisect it. |
5c43d1e is the first bad commit
|
shouldnt this testcase go to test/todo ? or at least test/misc ? test/err is for tests that are supposed to not compile... |
You're right. I'd be happy if you would adjust it. |
cl65: Cannot execute 'D:\cc6529\bin\cc65': No error
This error appeared in Windows snapshot I downloaded on Oct. 29th and later, but NOT in the snapshot I downloaded on Oct 19th.
It happens compiling javavm\interpreter.c in the attached sources. It sucessfully compiles other files.
Verions from Oct. 19th compiles the whole solution without issues.
src.zip
The text was updated successfully, but these errors were encountered: