[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Error message 'std::bad_alloc'



++++++++ Francesco Pietra 15:29 Wed 16 Apr      ++++++++

>The std:: would to me make me think C++ namespace
'std' function
>'bad_alloc'.  So probably a bad_alloc function
exists in C++ and is
>returning an error.

It is a standard exception thrown when the new() operator
fails.

Your running out of RAM, perhaps.

Do you build this program yourself from source?

Yes (g77-3.4 g++ 4.1.2 lib2c0-dev) from the configure file provided by
developers. No errors in either the serial or parallel compilations
(openmpi). Also, there is a very long test for both the serial and
parallel execution. All passed with a few marginal warnings for
different precision on different machines. Finally, docking of a
slightly smaller ligands occurs with no errors.

I'd build with debug info and run it under gdb and/or valgrind.  Might
tell you where it is messing up.

--
I develop for Linux for a living, I used to develop for DOS.
Going from DOS to Linux is like trading a glider for an F117.
(By entropy@world.std.com, Lawrence Foard)


Reply to: