Skip to content
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

recursive-fibonacci demo errors #95

Closed
welefen opened this issue Oct 23, 2017 · 3 comments
Closed

recursive-fibonacci demo errors #95

welefen opened this issue Oct 23, 2017 · 3 comments

Comments

@welefen
Copy link

welefen commented Oct 23, 2017

I try to run code in https://github.com/Microsoft/napajs/blob/master/examples/tutorial/recursive-fibonacci/recursive-fibonacci.js. When is change to run run(20), it has errors in below:

node(10345,0x7fffb809e3c0) malloc: *** error for object 0x103417b50: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1]    10345 abort      node napa.js
@vaibhav93
Copy link

vaibhav93 commented Oct 28, 2017

I get this error. Not creating a separate issue since it might be related.
node recursive-fibonacci.js

    Nth     Fibonacci       # of workers    latency in MS
    -----------------------------------------------------------
    10      55              4               22
    11      89              4               20
    12      144             4               30
    13      233             4               40
    14      377             4               86

*** Error in node': free(): corrupted unsorted chunks: 0x00007f7a6c0d7410 *** Segmentation fault (core dumped)
OS: Manjaro Linux x86_64
Kernel: 4.13.5-1-MANJARO
CPU: Intel i5-7200U (4) @ 2.500GHz
Node: v8.8.0

@vaibhav93
Copy link

Estimate pi example failing too
node estimate-pi-in-parallel.js

    # of points     # of batches    # of workers    latency in MS   estimated π     deviation
    ---------------------------------------------------------------------------------------
    4000000         1               4               107             3.140193        0.001399654
    4000000         2               4               82              3.141261        0.0003316536

*** Error in `node': double free or corruption (out): 0x00007fb9a8072020 ***
Aborted (core dumped)

@helloshuangzi
Copy link
Contributor

@welefen @vaibhav93 We just verified it works well by node <= v8.4.0 on linux, and it will fail with random callstacks by node >=v8.5.0
this issue is duplicated with #96. I am closing it, and let's track it by #96

@daiyip daiyip added duplicate and removed P1 labels Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants