Segfaults when staging into destroot

William Davis frstan at bellsouth.net
Sun Sep 30 11:18:36 PDT 2007


On Sep 22, 2007, at 2:59 PM, Dave Murray-Rust wrote:

> Hi All,
>
> I'm having real hassles with port - most packages fail to install,  
> with a segfault, e.g.:
>
> groke:503:dave>port install tiff
> --->  Fetching zlib
> --->  Verifying checksum(s) for zlib
> --->  Extracting zlib
> --->  Applying patches to zlib
> --->  Configuring zlib
> --->  Building zlib with target all
> --->  Staging zlib into destroot
> tclsh(394) malloc: *** error for object 0x312770: double free
> tclsh(394) malloc: *** set a breakpoint in szone_error to debug
> tclsh(394) malloc: *** error for object 0x312770: double free
> tclsh(394) malloc: *** set a breakpoint in szone_error to debug
> tclsh(394) malloc: *** error for object 0x312770: double free
> tclsh(394) malloc: *** set a breakpoint in szone_error to debug
> --->  Installing zlib 1.2.3_1
> tclsh(394) malloc: *** error for object 0x313760: double free
> tclsh(394) malloc: *** set a breakpoint in szone_error to debug
> tclsh(394) malloc: *** error for object 0x313790: double free
> tclsh(394) malloc: *** set a breakpoint in szone_error to debug
> tclsh(394) malloc: *** error for object 0x3137f0: double free
> tclsh(394) malloc: *** set a breakpoint in szone_error to debug
> Segmentation fault
>
>
> At other times, I get a bus error but I didn't save a copy/paste of  
> that, and it's not reproducible.
>
> I've tried using a different tclsh, but the same problem persists.  
> I'm not certain whether port is using the new one... I've exported  
> PATH=/usr/local/bin, and which tclsh points to the newly installed  
> ActiveState tclsh, but I don't know if port uses its own internal  
> version or something?
>
> Any suggestions on where to start debugging this?
>
> So far I've tried uninstalling and reinstalling, selfupgrade,  
> moving fink (/sw) out of the way in case it was causing a conflict,  
> but with no luck. I get this problem on almost all packages.  
> Interestingly, it was not there originally - at least, there are  
> some packages which I had installed before I removed and  
> reinstalled port, which now fail to install.
>
> Thanks for any help,
> dave
>

did you do all the folowing when removing macports?

MacPorts can be removed by issuing the following command from within  
Terminal:

sudo rm -rf \
/opt/local \
/Applications/MacPorts \
/Library/Tcl/macports1.0 \
/Library/LaunchDaemons/org.macports.* \
/Library/StartupItems/DarwinPortsStartup

On a previous occasion, I had failed to remove the LaunchDeaemons and  
Tcl items and got problems.


and btw you know your PATH has to include /opt/local/bin and /opt/ 
local/sbin do you not?

good luck!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070930/3a585d4a/attachment.html


More information about the macports-users mailing list