-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[llvm-gcc] segfault on the following code #572
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
Comments
Can you include an assertion or something that will keep #571 a compile-fail
It would be very good to write a testcase that triggers this code to find out.
You should use xrealloc instead of hand coding it. Also, generally, please use
There are many optimizations that could be done in the C frontend. It is
Please change the code to use xrealloc, and address the #1 issue above, then -Chris |
Just marking bugs that should be fixed for 1.2 |
Unless someone looks at this, it's not gunna be a 1.2 bug. |
This fix has actually been cleaned up and checked in, but the code to reproduce Should I leave this bug open or should I close it? |
Ok, this bug is confusing. Please make sure that your "fix" for this bug didn't Additionally, please file a new bug with a reduced testcase from this bug so Thanks John, -Chris |
I'll attempt to remove the confusion: The attached code to reproduce this bug (PR#200) used to reproduce the problem However, I never committed the proposed fix for PR#199 because it miscompiled The llvm-gcc code pertaining to this bug was still incorrect and could have The problem, then, is that I don't have a way to reproduce this bug in our Since I'm pretty sure PR#200 is fixed, I'll close this bug as there's nothing |
This commit extends the support for floating point attributes parsing by using the new `AsmParser::parseFloat(fltSemnatics, APFloat&)` interface. As a drive-by, this commit also harmonizes the cir.fp print/parse namespace usage, and adds the constraint of supporting only "CIRFPType"s for cir.fp in tablegen instead of verifying it manually in the parsing logic. --- This commit is based on top of a to-be-upstreamed commit which extends the upstream MLIR float type parsing. Upstream parsing of float type has full capability only through parsing the Builtin Dialect's `FloatAttr`. Thos commit exposes the same capabilities to downstream users. --- This PR should resolve (at least) `GCC-C-execute-ieee-fp-cmp-2` and `GCC-C-execute-ieee-fp-cmp-4`, paving the way to other `GCC-C-execute-ieee-*` tests passing from the SingleSource suite. It resolves llvm#559 .
Extended Description
llvm-gcc segfaults on the attached pre-processed code:
I've been chasing this one awhile, and it occurs because of a write to invalid
memory. The write, in turn, occurs because we are trying to initialize the
first element of an array that we think has zero length. However, I haven't
figured out why llvm-gcc thinks the array's length is zero.
I'm assigning this to myself as I'm tracking it and making progress.
The text was updated successfully, but these errors were encountered: