Re: [OMPI users] Signal code: Address not mapped (1) error

2010-03-18 Thread alev mutlu
Oh yes Dorian, now it works! On Thu, Mar 18, 2010 at 11:57 AM, Dorian Krause wrote: > Hi, > > Since you are using std::string in your structure you should allocate the > memory with "new" instead of "malloc". Otherwise the constructor of > std::string is not called and things like the length() o

Re: [OMPI users] Signal code: Address not mapped (1) error

2010-03-18 Thread Dorian Krause
Hi, Since you are using std::string in your structure you should allocate the memory with "new" instead of "malloc". Otherwise the constructor of std::string is not called and things like the length() of a string might not give the desired result leading boost to iterate over too many chars.

Re: [OMPI users] Signal code: Address not mapped (1) error

2010-03-17 Thread Jeff Squyres
>From the stack trace, it looks like the error is somewhere inside Boost. I'm >unfamiliar with the details of Boost -- you might want to ask them about it. On Mar 17, 2010, at 6:11 AM, alev mutlu wrote: > Hi the following codes compiles fine but gives some run time errors. > Ant suggestions to

[OMPI users] Signal code: Address not mapped (1) error

2010-03-17 Thread alev mutlu
Hi the following codes compiles fine but gives some run time errors. Ant suggestions to fix the problem. cheers Code #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include