Skip to content

Invalid pointer when accessing ArrayLV values #4

@JosefSchaeffer

Description

@JosefSchaeffer

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: =========
...

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions