Re: Segfaults when staging into destroot
On Oct 1, 2007, at 04:45, Dave Murray-Rust wrote:
On 1 Oct 2007, at 07:28, Ryan Schmidt wrote:
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.
OSX == 10.4.10, Xcode == 2.4.1 OK, I've moved everything which was installed (temporarily):
dhcp-2-178:508:dave>echo $PATH /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/ local/bin:/usr/texbin dhcp-2-178:509:dave>ls /sw ls: /sw: No such file or directory dhcp-2-178:510:dave>ls /usr/local/bin ls: /usr/local/bin: No such file or directory dhcp-2-178:511:dave>port --version MacPorts 1.520 Entering interactive mode... ("help" for help, "quit" to quit) [Users/dave] > ^D Goodbye dhcp-2-178:512:dave>sudo port install tiff ---> Installing zlib 1.2.3_1 tclsh(8332) malloc: *** error for object 0x311fc0: double free tclsh(8332) malloc: *** set a breakpoint in szone_error to debug tclsh(8332) malloc: *** error for object 0x312020: double free tclsh(8332) malloc: *** set a breakpoint in szone_error to debug tclsh(8332) malloc: *** error for object 0x311e20: double free tclsh(8332) malloc: *** set a breakpoint in szone_error to debug tclsh(8332) malloc: *** error for object 0x312020: double free tclsh(8332) malloc: *** set a breakpoint in szone_error to debug Segmentation fault
Don't know what's going on. I agree with Paul -- can we see some debug output please? sudo port clean --work zlib sudo port -dv install zlib Don't forget to Reply To All so that everyone gets the reply, not just me.
On 1 Oct 2007, at 10:51, Ryan Schmidt wrote:
On Oct 1, 2007, at 04:45, Dave Murray-Rust wrote:
On 1 Oct 2007, at 07:28, Ryan Schmidt wrote:
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.: 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.
OSX == 10.4.10, Xcode == 2.4.1 OK, I've moved everything which was installed (temporarily):
Don't know what's going on. I agree with Paul -- can we see some debug output please?
sudo port clean --work zlib sudo port -dv install zlib
dhcp-2-178:513:dave>sudo port clean --work zlib Password: ---> Cleaning zlib dhcp-2-178:514:dave>sudo port -dv install zlib DEBUG: Found port in file:///opt/local/var/macports/sources/ rsync.macports.org/release/ports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/macports/sources/ rsync.macports.org/release/ports/archivers/zlib DEBUG: Requested variant powerpc is not provided by port zlib. DEBUG: Requested variant darwin is not provided by port zlib. DEBUG: Requested variant macosx is not provided by port zlib. DEBUG: Executing org.macports.main (zlib) ---> Fetching zlib DEBUG: Executing org.macports.fetch (zlib) ---> Verifying checksum(s) for zlib DEBUG: Executing org.macports.checksum (zlib) ---> Checksumming zlib-1.2.3.tar.bz2 DEBUG: Correct (md5) checksum for zlib-1.2.3.tar.bz2 DEBUG: Correct (sha1) checksum for zlib-1.2.3.tar.bz2 DEBUG: Correct (rmd160) checksum for zlib-1.2.3.tar.bz2 DEBUG: setting option extract.cmd to /usr/bin/bzip2 ---> Extracting zlib DEBUG: Executing org.macports.extract (zlib) ---> Extracting zlib-1.2.3.tar.bz2 DEBUG: setting option extract.args to /opt/local/var/macports/ distfiles/zlib/zlib-1.2.3.tar.bz2 DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work" && /usr/bin/bzip2 -dc /opt/local/var/macports/distfiles/ zlib/zlib-1.2.3.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -' DEBUG: Executing org.macports.patch (zlib) ---> Applying patches to zlib ---> Applying /opt/local/var/macports/sources/rsync.macports.org/ release/ports/archivers/zlib/files/patch-Makefile-static DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/zlib-1.2.3" && patch -p0' patching file Makefile.in ---> Configuring zlib DEBUG: Executing org.macports.configure (zlib) DEBUG: No compiler collection selected explicitly DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CFLAGS='-O2' LDFLAGS='-L/opt/local/lib' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/zlib-1.2.3" && ./configure --prefix=/opt/local --shared' Checking for gcc... Checking for shared library support... Building shared library libz.1.2.3.dylib with gcc. Checking for unistd.h... Yes. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n] printf() Checking for vsnprintf() in stdio.h... Yes. Checking for return value of vsnprintf()... Yes. Checking for errno.h... Yes. Checking for mmap support... Yes. ---> Building zlib with target all DEBUG: Executing org.macports.build (zlib) DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/zlib-1.2.3" && make all' gcc -O2 -DUSE_MMAP -c -o example.o example.c gcc -O2 -DUSE_MMAP -c -o adler32.o adler32.c gcc -O2 -DUSE_MMAP -c -o compress.o compress.c gcc -O2 -DUSE_MMAP -c -o crc32.o crc32.c gcc -O2 -DUSE_MMAP -c -o gzio.o gzio.c gcc -O2 -DUSE_MMAP -c -o uncompr.o uncompr.c gcc -O2 -DUSE_MMAP -c -o deflate.o deflate.c gcc -O2 -DUSE_MMAP -c -o trees.o trees.c gcc -O2 -DUSE_MMAP -c -o zutil.o zutil.c gcc -O2 -DUSE_MMAP -c -o inflate.o inflate.c gcc -O2 -DUSE_MMAP -c -o infback.o infback.c gcc -O2 -DUSE_MMAP -c -o inftrees.o inftrees.c gcc -O2 -DUSE_MMAP -c -o inffast.o inffast.c ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o gcc -dynamiclib -install_name /opt/local/lib/libz.1.dylib - compatibility_version 1 -current_version 1.2.3 -o libz.1.2.3.dylib adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o rm -f libz.dylib libz.1.dylib ln -s libz.1.2.3.dylib libz.dylib ln -s libz.1.2.3.dylib libz.1.dylib gcc -O2 -DUSE_MMAP -o example example.o -L. libz.1.2.3.dylib gcc -O2 -DUSE_MMAP -c -o minigzip.o minigzip.c gcc -O2 -DUSE_MMAP -o minigzip minigzip.o -L. libz.1.2.3.dylib ---> Staging zlib into destroot . changed gid expected 0 found 80 modified permissions expected 0775 found 0755 modified ./usr missing (created) . missing (directory not created: File exists) ./Applications missing (created) ./Developer missing (created) ./Library missing (created) . changed gid expected 80 found 0 modified permissions expected 0775 found 0755 modified ./bin missing (created) ./etc missing (created) ./include missing (created) ./lib missing (created) ./libexec missing (created) ./sbin missing (created) ./share missing (created) ./share/info missing (created) ./share/man missing (created) ./share/man/cat1 missing (created) ./share/man/cat2 missing (created) ./share/man/cat3 missing (created) ./share/man/cat4 missing (created) ./share/man/cat5 missing (created) ./share/man/cat6 missing (created) ./share/man/cat7 missing (created) ./share/man/cat8 missing (created) ./share/man/cat9 missing (created) ./share/man/catl missing (created) ./share/man/catn missing (created) ./share/man/man1 missing (created) ./share/man/man2 missing (created) ./share/man/man3 missing (created) ./share/man/man4 missing (created) ./share/man/man5 missing (created) ./share/man/man6 missing (created) ./share/man/man7 missing (created) ./share/man/man8 missing (created) ./share/man/man9 missing (created) ./share/man/manl missing (created) ./share/man/mann missing (created) ./share/nls missing (created) ./share/nls/C missing (created) ./share/nls/af_ZA.ISO8859-1 missing (created) ./share/nls/af_ZA.ISO8859-15 missing (created) ./share/nls/bg_BG.CP1251 missing (created) ./share/nls/cs_CZ.ISO8859-2 missing (created) ./share/nls/da_DK.ISO8859-1 missing (created) ./share/nls/da_DK.ISO8859-15 missing (created) ./share/nls/de_AT.ISO8859-1 missing (created) ./share/nls/de_AT.ISO8859-15 missing (created) ./share/nls/de_CH.ISO8859-1 missing (created) ./share/nls/de_CH.ISO8859-15 missing (created) ./share/nls/de_DE.ISO8859-1 missing (created) ./share/nls/de_DE.ISO8859-15 missing (created) ./share/nls/el_GR.ISO8859-7 missing (created) ./share/nls/en_AU.ISO8859-1 missing (created) ./share/nls/en_AU.ISO8859-15 missing (created) ./share/nls/en_AU.US-ASCII missing (created) ./share/nls/en_CA.ISO8859-1 missing (created) ./share/nls/en_CA.ISO8859-15 missing (created) ./share/nls/en_CA.US-ASCII missing (created) ./share/nls/en_GB.ISO8859-1 missing (created) ./share/nls/en_GB.ISO8859-15 missing (created) ./share/nls/en_GB.US-ASCII missing (created) ./share/nls/en_NZ.ISO8859-1 missing (created) ./share/nls/en_NZ.ISO8859-15 missing (created) ./share/nls/en_NZ.US-ASCII missing (created) ./share/nls/en_US.ISO8859-1 missing (created) ./share/nls/en_US.ISO8859-15 missing (created) ./share/nls/es_ES.ISO8859-1 missing (created) ./share/nls/es_ES.ISO8859-15 missing (created) ./share/nls/et_EE.ISO8859-15 missing (created) ./share/nls/fi_FI.ISO8859-1 missing (created) ./share/nls/fi_FI.ISO8859-15 missing (created) ./share/nls/fr_BE.ISO8859-1 missing (created) ./share/nls/fr_BE.ISO8859-15 missing (created) ./share/nls/fr_CA.ISO8859-1 missing (created) ./share/nls/fr_CA.ISO8859-15 missing (created) ./share/nls/fr_CH.ISO8859-1 missing (created) ./share/nls/fr_CH.ISO8859-15 missing (created) ./share/nls/fr_FR.ISO8859-1 missing (created) ./share/nls/fr_FR.ISO8859-15 missing (created) ./share/nls/hi_IN.ISCII-DEV missing (created) ./share/nls/hr_HR.ISO8859-2 missing (created) ./share/nls/hu_HU.ISO8859-2 missing (created) ./share/nls/is_IS.ISO8859-1 missing (created) ./share/nls/is_IS.ISO8859-15 missing (created) ./share/nls/it_CH.ISO8859-1 missing (created) ./share/nls/it_CH.ISO8859-15 missing (created) ./share/nls/it_IT.ISO8859-1 missing (created) ./share/nls/it_IT.ISO8859-15 missing (created) ./share/nls/ja_JP.SJIS missing (created) ./share/nls/ja_JP.eucJP missing (created) ./share/nls/ko_KR.eucKR missing (created) ./share/nls/la_LN.ISO8859-1 missing (created) ./share/nls/la_LN.ISO8859-15 missing (created) ./share/nls/la_LN.ISO8859-2 missing (created) ./share/nls/la_LN.ISO8859-4 missing (created) ./share/nls/la_LN.US-ASCII missing (created) ./share/nls/lt_LT.ISO8859-4 missing (created) ./share/nls/nl_BE.ISO8859-1 missing (created) ./share/nls/nl_BE.ISO8859-15 missing (created) ./share/nls/nl_NL.ISO8859-1 missing (created) ./share/nls/nl_NL.ISO8859-15 missing (created) ./share/nls/no_NO.ISO8859-1 missing (created) ./share/nls/no_NO.ISO8859-15 missing (created) ./share/nls/pl_PL.ISO8859-2 missing (created) ./share/nls/pt_BR.ISO8859-1 missing (created) ./share/nls/pt_PT.ISO8859-1 missing (created) ./share/nls/pt_PT.ISO8859-15 missing (created) ./share/nls/ro_RO.ISO8859-2 missing (created) ./share/nls/ru_RU.CP866 missing (created) ./share/nls/ru_RU.ISO8859-5 missing (created) ./share/nls/ru_RU.KOI8-R missing (created) ./share/nls/sk_SK.ISO8859-2 missing (created) ./share/nls/sl_SI.ISO8859-2 missing (created) ./share/nls/sv_SE.ISO8859-1 missing (created) ./share/nls/sv_SE.ISO8859-15 missing (created) ./share/nls/tr_TR.ISO8859-9 missing (created) ./share/nls/uk_UA.ISO8859-5 missing (created) ./share/nls/uk_UA.KOI8-U missing (created) ./share/nls/zh_CN.eucCN missing (created) ./share/nls/zh_TW.Big5 missing (created) ./share/skel missing (created) ./src missing (created) ./var missing (created) ./var/macports missing (created) ./var/macports/distfiles missing (created) ./var/macports/receipts missing (created) ./www missing (created) DEBUG: Executing org.macports.destroot (zlib) DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/zlib-1.2.3" && make install prefix=/opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local' cp zlib.h zconf.h /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/include chmod 644 /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/include/zlib.h /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/include/zconf.h cp libz.1.2.3.dylib /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/lib cp libz.a /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/lib cd /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/lib; chmod 755 libz.1.2.3.dylib cd /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/lib; if test -f libz.1.2.3.dylib; then \ rm -f libz.dylib libz.1.dylib; \ ln -s libz.1.2.3.dylib libz.dylib; \ ln -s libz.1.2.3.dylib libz.1.dylib; \ (ldconfig || true) >/dev/null 2>&1; \ fi cp zlib.3 /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/share/man/man3 chmod 644 /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/share/man/man3/zlib.3 DEBUG: Executing proc-post-org.macports.destroot-destroot-0 xinstall: mkdir /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/share/doc xinstall: mkdir /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3 xinstall: chdir(/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/zlib-1.2.3) xinstall: ChangeLog -> /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3/ChangeLog tclsh(8352) malloc: *** error for object 0x313390: double free tclsh(8352) malloc: *** set a breakpoint in szone_error to debug xinstall: FAQ -> /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archive rs_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3/FAQ Segmentation fault
On 1 Oct 2007, at 11:41, Dave Murray-Rust wrote:
On 1 Oct 2007, at 10:51, Ryan Schmidt wrote:
On Oct 1, 2007, at 04:45, Dave Murray-Rust wrote:
On 1 Oct 2007, at 07:28, Ryan Schmidt wrote:
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.: 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.
OSX == 10.4.10, Xcode == 2.4.1 OK, I've moved everything which was installed (temporarily):
Don't know what's going on. I agree with Paul -- can we see some debug output please?
sudo port clean --work zlib sudo port -dv install zlib
[output moved to the bottom for readability] Just wondering if there's any more debug output which would be useful to diagnose this? cheers, dave
dhcp-2-178:513:dave>sudo port clean --work zlib Password: ---> Cleaning zlib dhcp-2-178:514:dave>sudo port -dv install zlib DEBUG: Found port in file:///opt/local/var/macports/sources/ rsync.macports.org/release/ports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/macports/sources/ rsync.macports.org/release/ports/archivers/zlib DEBUG: Requested variant powerpc is not provided by port zlib. DEBUG: Requested variant darwin is not provided by port zlib. DEBUG: Requested variant macosx is not provided by port zlib. DEBUG: Executing org.macports.main (zlib) ---> Fetching zlib DEBUG: Executing org.macports.fetch (zlib) ---> Verifying checksum(s) for zlib DEBUG: Executing org.macports.checksum (zlib) ---> Checksumming zlib-1.2.3.tar.bz2 DEBUG: Correct (md5) checksum for zlib-1.2.3.tar.bz2 DEBUG: Correct (sha1) checksum for zlib-1.2.3.tar.bz2 DEBUG: Correct (rmd160) checksum for zlib-1.2.3.tar.bz2 DEBUG: setting option extract.cmd to /usr/bin/bzip2 ---> Extracting zlib DEBUG: Executing org.macports.extract (zlib) ---> Extracting zlib-1.2.3.tar.bz2 DEBUG: setting option extract.args to /opt/local/var/macports/ distfiles/zlib/zlib-1.2.3.tar.bz2 DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work" && /usr/bin/bzip2 -dc /opt/local/var/macports/ distfiles/zlib/zlib-1.2.3.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -' DEBUG: Executing org.macports.patch (zlib) ---> Applying patches to zlib ---> Applying /opt/local/var/macports/sources/rsync.macports.org/ release/ports/archivers/zlib/files/patch-Makefile-static DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/zlib-1.2.3" && patch -p0' patching file Makefile.in ---> Configuring zlib DEBUG: Executing org.macports.configure (zlib) DEBUG: No compiler collection selected explicitly DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/opt/local/include' CFLAGS='-O2' LDFLAGS='-L/opt/local/lib' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/zlib-1.2.3" && ./configure --prefix=/opt/local -- shared' Checking for gcc... Checking for shared library support... Building shared library libz.1.2.3.dylib with gcc. Checking for unistd.h... Yes. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n] printf() Checking for vsnprintf() in stdio.h... Yes. Checking for return value of vsnprintf()... Yes. Checking for errno.h... Yes. Checking for mmap support... Yes. ---> Building zlib with target all DEBUG: Executing org.macports.build (zlib) DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/zlib-1.2.3" && make all' gcc -O2 -DUSE_MMAP -c -o example.o example.c gcc -O2 -DUSE_MMAP -c -o adler32.o adler32.c gcc -O2 -DUSE_MMAP -c -o compress.o compress.c gcc -O2 -DUSE_MMAP -c -o crc32.o crc32.c gcc -O2 -DUSE_MMAP -c -o gzio.o gzio.c gcc -O2 -DUSE_MMAP -c -o uncompr.o uncompr.c gcc -O2 -DUSE_MMAP -c -o deflate.o deflate.c gcc -O2 -DUSE_MMAP -c -o trees.o trees.c gcc -O2 -DUSE_MMAP -c -o zutil.o zutil.c gcc -O2 -DUSE_MMAP -c -o inflate.o inflate.c gcc -O2 -DUSE_MMAP -c -o infback.o infback.c gcc -O2 -DUSE_MMAP -c -o inftrees.o inftrees.c gcc -O2 -DUSE_MMAP -c -o inffast.o inffast.c ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o gcc -dynamiclib -install_name /opt/local/lib/libz.1.dylib - compatibility_version 1 -current_version 1.2.3 -o libz.1.2.3.dylib adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o rm -f libz.dylib libz.1.dylib ln -s libz.1.2.3.dylib libz.dylib ln -s libz.1.2.3.dylib libz.1.dylib gcc -O2 -DUSE_MMAP -o example example.o -L. libz.1.2.3.dylib gcc -O2 -DUSE_MMAP -c -o minigzip.o minigzip.c gcc -O2 -DUSE_MMAP -o minigzip minigzip.o -L. libz.1.2.3.dylib ---> Staging zlib into destroot . changed gid expected 0 found 80 modified permissions expected 0775 found 0755 modified ./usr missing (created) . missing (directory not created: File exists) ./Applications missing (created) ./Developer missing (created) ./Library missing (created) . changed gid expected 80 found 0 modified permissions expected 0775 found 0755 modified ./bin missing (created) ./etc missing (created) ./include missing (created) ./lib missing (created) ./libexec missing (created) ./sbin missing (created) ./share missing (created) ./share/info missing (created) ./share/man missing (created) ./share/man/cat1 missing (created) ./share/man/cat2 missing (created) ./share/man/cat3 missing (created) ./share/man/cat4 missing (created) ./share/man/cat5 missing (created) ./share/man/cat6 missing (created) ./share/man/cat7 missing (created) ./share/man/cat8 missing (created) ./share/man/cat9 missing (created) ./share/man/catl missing (created) ./share/man/catn missing (created) ./share/man/man1 missing (created) ./share/man/man2 missing (created) ./share/man/man3 missing (created) ./share/man/man4 missing (created) ./share/man/man5 missing (created) ./share/man/man6 missing (created) ./share/man/man7 missing (created) ./share/man/man8 missing (created) ./share/man/man9 missing (created) ./share/man/manl missing (created) ./share/man/mann missing (created) ./share/nls missing (created) ./share/nls/C missing (created) ./share/nls/af_ZA.ISO8859-1 missing (created) ./share/nls/af_ZA.ISO8859-15 missing (created) ./share/nls/bg_BG.CP1251 missing (created) ./share/nls/cs_CZ.ISO8859-2 missing (created) ./share/nls/da_DK.ISO8859-1 missing (created) ./share/nls/da_DK.ISO8859-15 missing (created) ./share/nls/de_AT.ISO8859-1 missing (created) ./share/nls/de_AT.ISO8859-15 missing (created) ./share/nls/de_CH.ISO8859-1 missing (created) ./share/nls/de_CH.ISO8859-15 missing (created) ./share/nls/de_DE.ISO8859-1 missing (created) ./share/nls/de_DE.ISO8859-15 missing (created) ./share/nls/el_GR.ISO8859-7 missing (created) ./share/nls/en_AU.ISO8859-1 missing (created) ./share/nls/en_AU.ISO8859-15 missing (created) ./share/nls/en_AU.US-ASCII missing (created) ./share/nls/en_CA.ISO8859-1 missing (created) ./share/nls/en_CA.ISO8859-15 missing (created) ./share/nls/en_CA.US-ASCII missing (created) ./share/nls/en_GB.ISO8859-1 missing (created) ./share/nls/en_GB.ISO8859-15 missing (created) ./share/nls/en_GB.US-ASCII missing (created) ./share/nls/en_NZ.ISO8859-1 missing (created) ./share/nls/en_NZ.ISO8859-15 missing (created) ./share/nls/en_NZ.US-ASCII missing (created) ./share/nls/en_US.ISO8859-1 missing (created) ./share/nls/en_US.ISO8859-15 missing (created) ./share/nls/es_ES.ISO8859-1 missing (created) ./share/nls/es_ES.ISO8859-15 missing (created) ./share/nls/et_EE.ISO8859-15 missing (created) ./share/nls/fi_FI.ISO8859-1 missing (created) ./share/nls/fi_FI.ISO8859-15 missing (created) ./share/nls/fr_BE.ISO8859-1 missing (created) ./share/nls/fr_BE.ISO8859-15 missing (created) ./share/nls/fr_CA.ISO8859-1 missing (created) ./share/nls/fr_CA.ISO8859-15 missing (created) ./share/nls/fr_CH.ISO8859-1 missing (created) ./share/nls/fr_CH.ISO8859-15 missing (created) ./share/nls/fr_FR.ISO8859-1 missing (created) ./share/nls/fr_FR.ISO8859-15 missing (created) ./share/nls/hi_IN.ISCII-DEV missing (created) ./share/nls/hr_HR.ISO8859-2 missing (created) ./share/nls/hu_HU.ISO8859-2 missing (created) ./share/nls/is_IS.ISO8859-1 missing (created) ./share/nls/is_IS.ISO8859-15 missing (created) ./share/nls/it_CH.ISO8859-1 missing (created) ./share/nls/it_CH.ISO8859-15 missing (created) ./share/nls/it_IT.ISO8859-1 missing (created) ./share/nls/it_IT.ISO8859-15 missing (created) ./share/nls/ja_JP.SJIS missing (created) ./share/nls/ja_JP.eucJP missing (created) ./share/nls/ko_KR.eucKR missing (created) ./share/nls/la_LN.ISO8859-1 missing (created) ./share/nls/la_LN.ISO8859-15 missing (created) ./share/nls/la_LN.ISO8859-2 missing (created) ./share/nls/la_LN.ISO8859-4 missing (created) ./share/nls/la_LN.US-ASCII missing (created) ./share/nls/lt_LT.ISO8859-4 missing (created) ./share/nls/nl_BE.ISO8859-1 missing (created) ./share/nls/nl_BE.ISO8859-15 missing (created) ./share/nls/nl_NL.ISO8859-1 missing (created) ./share/nls/nl_NL.ISO8859-15 missing (created) ./share/nls/no_NO.ISO8859-1 missing (created) ./share/nls/no_NO.ISO8859-15 missing (created) ./share/nls/pl_PL.ISO8859-2 missing (created) ./share/nls/pt_BR.ISO8859-1 missing (created) ./share/nls/pt_PT.ISO8859-1 missing (created) ./share/nls/pt_PT.ISO8859-15 missing (created) ./share/nls/ro_RO.ISO8859-2 missing (created) ./share/nls/ru_RU.CP866 missing (created) ./share/nls/ru_RU.ISO8859-5 missing (created) ./share/nls/ru_RU.KOI8-R missing (created) ./share/nls/sk_SK.ISO8859-2 missing (created) ./share/nls/sl_SI.ISO8859-2 missing (created) ./share/nls/sv_SE.ISO8859-1 missing (created) ./share/nls/sv_SE.ISO8859-15 missing (created) ./share/nls/tr_TR.ISO8859-9 missing (created) ./share/nls/uk_UA.ISO8859-5 missing (created) ./share/nls/uk_UA.KOI8-U missing (created) ./share/nls/zh_CN.eucCN missing (created) ./share/nls/zh_TW.Big5 missing (created) ./share/skel missing (created) ./src missing (created) ./var missing (created) ./var/macports missing (created) ./var/macports/distfiles missing (created) ./var/macports/receipts missing (created) ./www missing (created) DEBUG: Executing org.macports.destroot (zlib) DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/zlib-1.2.3" && make install prefix=/opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local' cp zlib.h zconf.h /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/include chmod 644 /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/include/zlib.h /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/include/zconf.h cp libz.1.2.3.dylib /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/lib cp libz.a /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/lib cd /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/lib; chmod 755 libz.1.2.3.dylib cd /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/lib; if test -f libz.1.2.3.dylib; then \ rm -f libz.dylib libz.1.dylib; \ ln -s libz.1.2.3.dylib libz.dylib; \ ln -s libz.1.2.3.dylib libz.1.dylib; \ (ldconfig || true) >/dev/null 2>&1; \ fi cp zlib.3 /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/share/man/man3 chmod 644 /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/share/man/man3/zlib.3 DEBUG: Executing proc-post-org.macports.destroot-destroot-0 xinstall: mkdir /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/share/doc xinstall: mkdir /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3 xinstall: chdir(/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/zlib-1.2.3) xinstall: ChangeLog -> /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3/ChangeLog tclsh(8352) malloc: *** error for object 0x313390: double free tclsh(8352) malloc: *** set a breakpoint in szone_error to debug xinstall: FAQ -> /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_archi vers_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3/FAQ Segmentation fault
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
On Oct 4, 2007, at 04:29, Dave Murray-Rust wrote:
On 1 Oct 2007, at 11:41, Dave Murray-Rust wrote:
On 1 Oct 2007, at 10:51, Ryan Schmidt wrote:
On Oct 1, 2007, at 04:45, Dave Murray-Rust wrote:
On 1 Oct 2007, at 07:28, Ryan Schmidt wrote:
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.: 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.
OSX == 10.4.10, Xcode == 2.4.1 OK, I've moved everything which was installed (temporarily):
Don't know what's going on. I agree with Paul -- can we see some debug output please?
sudo port clean --work zlib sudo port -dv install zlib
[output moved to the bottom for readability]
Just wondering if there's any more debug output which would be useful to diagnose this?
[snip]
DEBUG: Executing proc-post-org.macports.destroot-destroot-0 xinstall: mkdir /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_arch ivers_zlib/work/destroot/opt/local/share/doc xinstall: mkdir /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_arch ivers_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3 xinstall: chdir(/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_arch ivers_zlib/work/zlib-1.2.3) xinstall: ChangeLog -> /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_arch ivers_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3/ChangeLog tclsh(8352) malloc: *** error for object 0x313390: double free tclsh(8352) malloc: *** set a breakpoint in szone_error to debug xinstall: FAQ -> /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_arch ivers_zlib/work/destroot/opt/local/share/doc/zlib-1.2.3/FAQ Segmentation fault
So it's crashing during the post-destroot phase, which is defined thusly in the zlib port: post-destroot { xinstall -m 0755 -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README $ {destroot}${docdir} } I don't see anything unusual there. This is my tclsh on 10.4.10 Intel: $ which tclsh /usr/bin/tclsh $ md5 /usr/bin/tclsh MD5(/usr/bin/tclsh)= 642ea28f28318b817607f17c13570ecc $ ls -l /usr/bin/tclsh lrwxr-xr-x 1 root wheel 8 Jul 13 05:20 /usr/bin/tclsh -> tclsh8.4 $ ls -l /usr/bin/tclsh8.4 -r-xr-xr-x 1 root wheel 29656 Dec 7 2006 /usr/bin/tclsh8.4 $ Are you on Intel or PowerPC, and what does yours look like?
participants (2)
-
Dave Murray-Rust
-
Ryan Schmidt