#260 closed defect (fixed)
Sherpa crashes on OS X 10.8
Reported by: | anonymous | Owned by: | support@sherpa-mc.de |
---|---|---|---|
Priority: | major | Milestone: | rel-2.0.0 |
Component: | Unknown | Version: | 2.0.beta2 |
Keywords: | Mac OSX malloc | Cc: | David.Hall@physics.ox.ac.uk |
Description
I have built Sherpa 2.0.b2 on OS X with clang, but find that it fails even with the simplest command (Sherpa --version). The error message is: Sherpa(17490) malloc: * error for object 0x7fff75f4e570: pointer being freed was not allocated
I am using clang from Xcode command line tools, and gfortran 4.8 from homebrew. I have noticed from "otool -L Sherpa" that it is not linked to libstdc++ which I believe my previous installation was. Could this be involved?
Please let me know what kind of information I can supply to try to sort this. I am trying to write a package installer for sherpa to make it easier for others to install it on a Mac (it handles all dependencies too).
Attachments (1)
Change History (7)
comment:1 Changed 11 years ago by
Changed 11 years ago by
Attachment: | dirent.patch added |
---|
Patch fixes DIRENT_TYPE macro for OS X 10.8 and later
comment:2 Changed 11 years ago by
I have added a patch which fixes this problem. This works on Macs, I hope you can test the build process on Linux.
Cheers, David
comment:4 Changed 11 years ago by
Hi Hendrik,
Do you happen to know when these changes will make it into the tarballed versions? I'm struggling to build from the SVN repo. I do "autoreconf -f -i" and then follow the usual install procedure, but it complains: *
- Incomplete sources and no SVN information *
- This copy of Sherpa will not be supported *
- Please contact info@sherpa-mc.de for help *
*
Cheers, David
comment:5 Changed 11 years ago by
Are you using svn export or svn checkout? With checkout it should work.
I have solved this problem now. It was because Sherpa was finding the libstdc++ installed with gfortran, rather than the one with clang.
It presented another problem when I tried to build with lhapdf though. It seems Mountain Lion (OS X 10.8) is now POSIX compatible, so I needed to make the following change: inreplace 'PDF/LHAPDF/LHAPDF_Fortran_Interface.C', "#define DIRENT_TYPE dirent", "#define DIRENT_TYPE const dirent"