Segfaults when staging into destroot

Dave Murray-Rust D.S.Murray-Rust at sms.ed.ac.uk
Mon Oct 1 03:41:04 PDT 2007


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




More information about the macports-users mailing list