Skip to content

Chromium crash in loop with trigonometric functions #16606

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


I have got following code:

Timer timer = new Timer.periodic(Duration.ZERO, (Timer t) {
      num d = 5161;

      num N = 125.1228 - 0.0529538083 * d;
      num i = 5.1454;
      num w = 318.0634 + 0.1643573223 * d;
      num a = 60.2666;
      num e = 0.054900;
      num m = 115.3654 + 13.0649929509 * d;

      N = 2.0;
      i = 2.0;
      w = 2.0;
      m = 2.0;

      num ea = 23.0;
      num xv = 33.0;
      num yv = 12.3;
      num v = 34.2;
      num r = sqrt(xvxv + yvyv);

      print(sin(N) * cos(v+w) + cos(N) * sin(v+w) * cos(i));
      print(sin(N) * cos(v+w) + cos(N) * sin(v+w) * cos(i));
      print(r * ( sin(v+w) * sin(i) ));
});

When I run it, it's ok - let's say - for 180 iteration of this loop. However than Chromium just crush. It's every time. With more calculations, it's crash earliear.

I'm using Dart SDK version 1.1.1 and build 31822, Ubuntu 13.04 (I tried it on Windows 7 too - same problem), 64bit arch.
I think, in previous build it was ok, but I'm not sure.

chrome://version
Chromium 31.0.1650.48 (Vývojářské sestavení 240209) custom
Operační systém Linux
Blink 537.36 (@­164190)
JavaScript V8 3.21.18.2
Dart 1.1.1
Flash 11.2 r202
User agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.48 (Dart) Safari/537.36
Příkazový řádek /opt/google/dartium/dartium --user-data-dir=/home/jirka/.config/dartium --remote-debugging-port=36967 --user-data-dir=/home/jirka/.dartium --enable-experimental-webkit-features --enable-devtools-experiments --no-first-run --no-default-browser-check --no-process-singleton-dialog --user-data-dir=/home/jirka/.config/dartium --flag-switches-begin --flag-switches-end chrome://version/
Spustitelná cesta /opt/google/dartium/dartium
Cesta k profilu /home/jirka/.config/dartium/Default
Varianty b178bdde-5ee54a71
b03ddc1f-2d9ef0cc
f9b252d0-fd526c81
262f996f-42d3ce07
24dca50e-837c4893
ca65a9fe-bf3100d4
5e29d81-f23d1dea
246fb659-a5822863
f296190c-17e37270
4442aae2-6bdfffe7
ed1d377-e1cc0f14
75f0f0a0-e1cc0f14
e2b18481-6e597ede
e7e71889-e1cc0f14

Should I add some more information about the environment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.closed-duplicateClosed in favor of an existing report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions