sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.
Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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)

dirent.patch (591 bytes) - added by David Hall <David.Hall@physics.ox.ac.uk> 11 years ago.
Patch fixes DIRENT_TYPE macro for OS X 10.8 and later

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by David Hall <David.Hall@physics.ox.ac.uk>

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"

Changed 11 years ago by David Hall <David.Hall@physics.ox.ac.uk>

Attachment: dirent.patch added

Patch fixes DIRENT_TYPE macro for OS X 10.8 and later

comment:2 Changed 11 years ago by David Hall <David.Hall@physics.ox.ac.uk>

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:3 Changed 11 years ago by hoeth

Resolution: fixed
Status: newclosed

Thanks, it's in svn now!

comment:4 Changed 11 years ago by David Hall <David.Hall@physics.ox.ac.uk>

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 hoeth

Are you using svn export or svn checkout? With checkout it should work.

comment:6 Changed 11 years ago by hoeth

BTW, the 1.4.4 release will happen in the next few days.

Modify Ticket

Change Properties
Action
as closed The owner will remain support@sherpa-mc.de.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.