You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jesse99 opened this issue
Oct 26, 2012
· 3 comments
Labels
A-codegenArea: Code generationA-traitsArea: Trait systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Tried to use operator overloading in my rparse library and it worked fine until the end when it began segfaulting. Finally tracked it down to the everything method which looks like this:
If my test calls that method it segfaults. If my test manually inlines the body of the method it passes. If you add some logging to the shl method pass1 winds up with a garbage integer value instead of an Xml struct (assuming you use the %? specifier and make check1).
The text was updated successfully, but these errors were encountered:
git clone [email protected]:jesse99/rparse.git
cd rparse
git checkout ops
make check1 # should seg fault
uncomment src/tests/test_xml.rs line 170
comment out src/tests/test_xml.rs line 171
make check1 # should pass
Note that I can work around this particular crash, but it seems symptomatic of a deeper problem: I tried updating one of my projects which uses rparse and that also started segfaulting.
�While the bug report is certainly appreciated, it seems like it will take a considerable amount of effort to forward-port the state of the repository referenced in the comment above. Jesse, if you get the chance to forward-port your work to see if this bug persists, that would be great.
In the meantime, I am going to follow @catamorphism's lead from #4260 and close this ticket as unreproducible.
A-codegenArea: Code generationA-traitsArea: Trait systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Tried to use operator overloading in my rparse library and it worked fine until the end when it began segfaulting. Finally tracked it down to the everything method which looks like this:
If my test calls that method it segfaults. If my test manually inlines the body of the method it passes. If you add some logging to the shl method pass1 winds up with a garbage integer value instead of an Xml struct (assuming you use the %? specifier and make check1).
The text was updated successfully, but these errors were encountered: