problems with File IO

Asked by L Olson on 2013-04-20

When I make two File streams either in Python or C++, Dolfin crashes. For example, in Python:

from dolfin import *
f = File('f.pvd')
g = File('g.pvd')

results in:

====
Python(63708,0x7fff77f0a180) malloc: *** error for object 0x7fff78ff2570: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[LMBA:63708] *** Process received signal ***
[LMBA:63708] Signal: Abort trap: 6 (6)
[LMBA:63708] Signal code: (0)
[LMBA:63708] [ 0] 2 libsystem_c.dylib 0x00007fff88de694a _sigtramp + 26
[LMBA:63708] [ 1] 3 libsystem_c.dylib 0x00007fff88e17836 szone_free_definite_size + 2013
[LMBA:63708] [ 2] 4 libsystem_c.dylib 0x00007fff88e3ddce abort + 143
[LMBA:63708] [ 3] 5 libsystem_c.dylib 0x00007fff88e119b9 free + 392
[LMBA:63708] [ 4] 6 libdolfin.1.2.dylib 0x000000010f4accbe _ZN6dolfin4File18create_parent_pathESs + 526
[LMBA:63708] *** End of error message ***
[1] 63708 abort python test.py
====

As a result, demos like stokes-iterative fail.

Installed using modified Dorsal (unstable). Mac. Dolfin 1.2.0+

Any ideas on where to look to fix this?

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
L Olson
Solved:
2013-05-03
Last query:
2013-05-03
Last reply:
L Olson (l-olson) said : #1

This one is still stumping me. Does anyone have any ideas?

L Olson (l-olson) said : #2

Ok, I think I've narrowed this to a boost issue. It seems that boost was built with macports gcc, but links to the system libstdc++. This is causing issues. I'll mark this closed.