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

cik_io distfib example seg faults #2

Open
chamibuddhika opened this issue Oct 9, 2014 · 0 comments
Open

cik_io distfib example seg faults #2

chamibuddhika opened this issue Oct 9, 2014 · 0 comments

Comments

@chamibuddhika
Copy link
Contributor

How to reproduce

make and run ./server.exe in a separate command line.
Now ./distfib.exe

gdb ./distfib.exe output

Program received signal SIGSEGV, Segmentation fault.
__cilkrts_ivar_read (ivar=0x60fa48)
at /u/budkahaw/Builds/ccilk/runtime/ivar_full_blocking.c:59
59 w->paused_ctx = &ctx;
(gdb) bt
#0 __cilkrts_ivar_read (ivar=0x60fa48)

at /u/budkahaw/Builds/ccilk/runtime/ivar_full_blocking.c:59

#1 0x00007ffff7ba5a1e in cilk_write (fd=,

buf=<value optimized out>, len=8)
at /u/budkahaw/Builds/ccilk/runtime/io/concurrent_cilk_io.c:246

#2 0x0000000000401a1a in runMap ()
#3 0x0000000000401623 in distPfib ()
#4 0x0000000000401514 in main ()

Valgrind output

==27916== Invalid write of size 8
==27916== at 0x4E7418E: __cilkrts_ivar_read (ivar_full_blocking.c:59)
==27916== by 0x4E74A1D: cilk_write (concurrent_cilk_io.c:246)
==27916== by 0x401A19: runMap (in /nfs/nfs4/home/budkahaw/Builds/ccilk/cilk_tests/cilk_io/distfib/distfib.exe)
==27916== by 0x401622: distPfib (in /nfs/nfs4/home/budkahaw/Builds/ccilk/cilk_tests/cilk_io/distfib/distfib.exe)
==27916== by 0x401513: main (in /nfs/nfs4/home/budkahaw/Builds/ccilk/cilk_tests/cilk_io/distfib/distfib.exe)
==27916== Address 0x70 is not stack'd, malloc'd or (recently) free'd
==27916==
==27916==
==27916== Process terminating with default action of signal 11 (SIGSEGV)
==27916== Access not within mapped region at address 0x70
==27916== at 0x4E7418E: __cilkrts_ivar_read (ivar_full_blocking.c:59)
==27916== by 0x4E74A1D: cilk_write (concurrent_cilk_io.c:246)
==27916== by 0x401A19: runMap (in /nfs/nfs4/home/budkahaw/Builds/ccilk/cilk_tests/cilk_io/distfib/distfib.exe)
==27916== by 0x401622: distPfib (in /nfs/nfs4/home/budkahaw/Builds/ccilk/cilk_tests/cilk_io/distfib/distfib.exe)
==27916== by 0x401513: main (in /nfs/nfs4/home/budkahaw/Builds/ccilk/cilk_tests/cilk_io/distfib/distfib.exe)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant