Skip to content

Dart VM gives segmentation fault #16091

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

Closed
DartBot opened this issue Jan 14, 2014 · 6 comments
Closed

Dart VM gives segmentation fault #16091

DartBot opened this issue Jan 14, 2014 · 6 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@DartBot
Copy link

DartBot commented Jan 14, 2014

This issue was originally filed by @tomaskulich


extract the following file and run ./segfault.sh (or run test/segfault.dart)

segfaults on Archlinux (dart SDK 1.0.0.3 and 1.0.0.10) and Linux Mint (dart SDK 1.0.0.3)

this bug happens only when simultaneously using unittest and string interpolation (try to modify lib/src/change_set.dart by replacing print('$x') by print(x.toString()) and everything works fine).

finally, I'm sorry for submitting such a lot of code.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.


Attachment:
segfault.tar.gz (288.97 KB)

@lrhn
Copy link
Member

lrhn commented Jan 15, 2014

No problem about the "lot of code". A reproducible crash is worth a thousand descriptions of what you might have been doing :)


Added Area-VM, Triaged labels.

@ghost
Copy link

ghost commented Jan 15, 2014

Set owner to @sgmitrovic.
Added Accepted label.

@ghost
Copy link

ghost commented Jan 15, 2014

Thanks again for filing the bug!

The test works if --no-use-inlining or --optimization-counter-threshold=-1 (disables optimized code). The crash is caused because optimizing compiler keeps calling the function it is optimizing (StringBase.interpolate)


Added Started label.

@ghost
Copy link

ghost commented Jan 15, 2014

Fixed in r31844


Added Fixed label.

@kasperl
Copy link

kasperl commented Jan 17, 2014

Should the fix be considered for merging to the 1.1 branch?

@ghost
Copy link

ghost commented Jan 17, 2014

Yes, this should be merged to 1.1 branch.

@DartBot DartBot added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Jan 17, 2014
@DartBot DartBot assigned ghost Jan 17, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

4 participants