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

Invalid pointer when accessing ArrayLV values #4

Open
JosefSchaeffer opened this issue May 22, 2017 · 1 comment
Open

Invalid pointer when accessing ArrayLV values #4

JosefSchaeffer opened this issue May 22, 2017 · 1 comment

Comments

@JosefSchaeffer
Copy link
Member

JosefSchaeffer commented May 22, 2017

Executing the following program will cause a invalid pointer:

import pydash

pydash.initialize(0, "")

value_a = pydash.LV(0, "a")
value_b = pydash.LV(1, "b")

pydash.barrier()

array  = pydash.ArrayLV(2)

array[0] = value_a
array[1] = value_b

print("Hello!")

pydash.barrier()

array[0]

pydash.finalize()

If it is run with python3.5m test_crash.py or mpirun -n 2 test_crash.py, we get the following error message:

...
[    0 DEBUG ] [ 11362 ] dart_communication.c     :764   DART: dart_put_blocking: memcpy 40 bytes
Hello!
[    0 DEBUG ] [ 11362 ] dart_communication.c     :1550  DART: dart_barrier() barrier count: 5
[    0 DEBUG ] [ 11362 ] dart_communication.c     :1566  DART: dart_barrier > finished
[    0 DEBUG ] [ 11362 ] dart_communication.c     :889   DART: dart_get_blocking() uid:0 o:0 s:1 t:0, nelem:40
[    0 DEBUG ] [ 11362 ] dart_communication.c     :892   DART: dart_get_blocking: shared windows enabled
[    0 DEBUG ] [ 11362 ] dart_communication.c     :59    DART: dart_get: shared windows enabled
[    0 DEBUG ] [ 11362 ] dart_communication.c     :66    DART: dart_get: shared memory segment, seg_id:1
[    0 DEBUG ] [ 11362 ] dart_communication.c     :79    DART: dart_get: memcpy 40 bytes
*** Error in `python3.5m': free(): invalid pointer: 0x00007ffd73c142e8 ***
======= Backtrace: =========
...
@JosefSchaeffer
Copy link
Member Author

The change of the binding sequence (first logged value binding, then binding of array) does not solve the issue @fuchsto

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

2 participants