Skip to content

core dump in Dart VM #16103

Closed
Closed

Description

@DartBot

This issue was originally filed by @a14n


Running the attached file I get a "Segmentation fault (core dumped)" with:

> dart --version
Dart VM version: 1.1.0-dev.5.10 (Tue Jan 14 03:42:16 2014) on "linux_x64"

The last outputs I can see are:


start 441
  compute lat:-53 lng:-41, 256758, -53
  lat:-53 lng:-41, 256758, -53
end 441
start 442
  compute lat:-21 lng:171, 140546, -79
Segmentation fault (core dumped)


Running this file in the editor I get "exit code=139"


Attachment:
t.dart (1.14 KB)

Activity

  1. lrhn commented on Jan 15, 2014

    @lrhn
    Member

    Added Area-VM, Triaged labels.

  2. iposva-google commented on Jan 15, 2014

    @iposva-google
    Contributor

    There seems to be something going wrong with the sin/cos merging optimization.

    #­0 0x00235d96 in dart::Instruction::InsertAfter(dart::Instruction*) at /Volumes/Sources/dart-all/dart/runtime/vm/intermediate_language.cc:540
    #­1 0x00194262 in dart::FlowGraph::InsertAfter(dart::Instruction*, dart::Instruction*, dart::Environment*, dart::Definition::UseKind) at /Volumes/Sources/dart-all/dart/runtime/vm/flow_graph.cc:123
    #­2 0x001e016e in dart::FlowGraphOptimizer::AppendLoadIndexedForMerged(dart::Definition*, long, long) at /Volumes/Sources/dart-all/dart/runtime/vm/flow_graph_optimizer.cc:301
    #­3 0x001e081e in dart::FlowGraphOptimizer::TryMergeMathUnary(dart::GrowableArray<dart::MathUnaryInstr*>) at /Volumes/Sources/dart-all/dart/runtime/vm/flow_graph_optimizer.cc:415
    #­4 0x001e0cfe in dart::FlowGraphOptimizer::TryOptimizePatterns() at /Volumes/Sources/dart-all/dart/runtime/vm/flow_graph_optimizer.cc:480
    #­5 0x0015e9c4 in dart::CompileParsedFunctionHelper(dart::ParsedFunction
    , bool, long) at /Volumes/Sources/dart-all/dart/runtime/vm/compiler.cc:349
    #­6 0x0015d619 in dart::CompileFunctionHelper(dart::Function const&, bool, long) at /Volumes/Sources/dart-all/dart/runtime/vm/compiler.cc:766
    #­7 0x0015dab9 in dart::Compiler::CompileOptimizedFunction(dart::Function const&, long) at /Volumes/Sources/dart-all/dart/runtime/vm/compiler.cc:821
    #­8 0x00152a74 in dart::NativeArguments::isolate() const [inlined] at /Volumes/Sources/dart-all/dart/runtime/vm/code_generator.cc:1432
    #­9 0x001528e9 in dart::DRT_OptimizeInvokedFunction(dart::NativeArguments) at /Volumes/Sources/dart-all/dart/runtime/vm/code_generator.cc:1425


    Set owner to @sgmitrovic.
    Removed Priority-Unassigned label.
    Added Priority-High, Accepted labels.

  3. kasperl commented on Jan 17, 2014

    @kasperl

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

  4. DartBot commented on Jan 17, 2014

    @DartBot
    Author

    This comment was originally written by @a14n


    I still see this issue happen on dev channel.

  5. DartBot commented on Jan 17, 2014

    @DartBot
    Author

    This comment was originally written by @a14n


    I used the Dev channel :
    $dart --version
    Dart VM version: 1.1.0-dev.5.11 (Wed Jan 15 00:41:27 2014) on "linux_x64"

    (it seems to be http://gsdview.appspot.com/dart-archive/channels/dev/raw/31818/)

    To grab your fix I have downloaded a raw version on http://gsdview.appspot.com/dart-archive/channels/be/raw/latest/
    $dart --version
    Dart VM version: 1.2.0-edge.31909 (Fri Jan 17 00:23:59 2014) on "linux_x64"

    On this version the sample code works.

  6. iposva-google commented on Feb 6, 2014

    @iposva-google
    Contributor

    Issue #16606 has been merged into this issue.


    cc @sgmitrovic.
    cc @fsc8000.
    cc @a-siva.

  7. kasperl commented on Feb 10, 2014

    @kasperl

    The fix for this issue is now live on the stable channel in Dart SDK version 1.1.3.

  8. kasperl commented on Feb 10, 2014

    @kasperl

    Issue #16606 has been merged into this issue.

  9. added
    P1A high priority bug; for example, a single project is unusable or has many test failures
    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
    on Feb 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failuresarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions