Segfaults when staging into destroot
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
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!
On 9/22/07, Dave Murray-Rust <D.S.Murray-Rust@sms.ed.ac.uk> 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.
what version of port do you have installed? is your ports tree up to date? is all your XCode stuff up to date? try installing zlib with the -dv switches to see what output you get. And send along the results of port -v as well. -- Paul Beard / www.paulbeard.org/ <paulbeard@gmail.com/paulbeard@mac.com>
On Sep 22, 2007, at 13:59, Dave Murray-Rust wrote:
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
That should not happen (obviously). Never seen this problem before.
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.
Make sure you have the latest OS and all updates (10.4.10 or 10.3.9). Make sure you have the latest Xcode (2.4.1 for 10.4.10; 1.5 for 10.3.9). Make sure you have the latest MacPorts (1.5.2). Make sure you do NOT have anything at all installed in /sw, /usr/local or any other place referenced in your PATH. Just have MacPorts, which is usually in /opt/local. It works great by itself, but other software installed in other locations can cause unpredictable problems.
On 30 Sep 2007, at 19:18, William Davis wrote:
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.:
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
Yup - I did copy/paste from the macports wiki
and btw you know your PATH has to include /opt/local/bin and /opt/ local/sbin do you not?
Yup. Cheers, dave
participants (4)
-
Dave Murray-Rust
-
paul beard
-
Ryan Schmidt
-
William Davis