|
[Rivet] Problem with AGILe and FHerwigAdam Davison adamd at hep.ucl.ac.ukMon Jun 21 12:51:16 BST 2010
Hi, I've been trying to set up and run FORTRAN Herwig via AGILe on a 64-bit Intel Macbook. Every time I run agile-runmc Herwig:6.510 I get a crash with an error like: AGILe.Loader: TRACE Successfully loaded /Users/adamd/local/x86_64/build/genser/herwig/6.510.2/x86_64-Darwin-gcc42-opt/lib/libherwig_dummy.dylib (0x1002d4770) python(58746) malloc: *** error for object 0x7fff70bb0500: pointer being freed was not allocated I dug into the code and with the aid of some printfs determined that agile is causing this malloc fault in FHerwig::FHerwig() on, of all things, this line: _particleNames[ELECTRON] = "E- "; Now that seemed rather strange, I tried some stuff, and in the end I get to the point where I have inserted this code above that crash: std::map<int, std::string> b; // b[1] = std::string("hi"); b[2] = std::string("hi2"); Uncommenting the middle line, causes agile-runmc to crash on the second line. All of this makes me think there's some kind of memory corruption, probably heap, given the fact that it's a malloc error ultimately. Does anyone have any ideas what could be going wrong here? I'm using gcc4.2 from the Apple developer tools, let me know if anything else would help. Thanks, any help much appreciated, Adam
More information about the Rivet mailing list |