On Sun, Sep 15, 2002 at 07:56:09PM -0700, David O'Brien wrote: > On Sun, Sep 15, 2002 at 09:47:28PM +0000, justin wrote: > > >> SORRY IF THIS IS A REPEAT! > > > > I have recompiled my base the past 2 days now, and pkg_add will segfault > > signal 10 and core dumps after the second file transfer I can still use > > it to install the package, but i have to run the command multiple times > > depending on how many dependancies the port has. If it is only 1 file, > > it works fine and without problems. > > What is the exact outout with `pkg_add -v'. Can you compile pkg_add with > -g debugging and provide a trace?
I can reproduce the problem with pkg_add by doing: pkg_add -v -r cvsupit on a clean system. This happens with the latest sources in /usr/src/usr.sbin/pkg_install/ -- Craig Rodrigues http://www.gis.net/~craigr [EMAIL PROTECTED]
Script started on Wed Sep 18 00:12:02 2002 rincewind# gdb pkg_add GNU gdb 5.2.0 (FreeBSD) 20020627 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-undermydesk-freebsd"... (gdb) r -v -r cvsupit Starting program: /usr/src/usr.sbin/pkg_install/add/pkg_add -v -r cvsupit looking up ftp.freebsd.org connecting to ftp.freebsd.org:21 setting passive mode opening data connection initiating transfer Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/Latest/cvsupit.tbz...+CONTENTS +COMMENT +DESC +INSTALL +REQUIRE +MTREE_DIRS tar command returns 0 status Done. Package 'cvsupit-3.1' depends on 'perl-5.6.1_8'. setting passive mode opening data connection initiating transfer Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/All/perl-5.6.1_8.tbz...+CONTENTS +COMMENT +DESC +INSTALL +DISPLAY +MTREE_DIRS Attempting to record package into /var/db/pkg/perl-5.6.1_8.. Package perl-5.6.1_8 registered in /var/db/pkg/perl-5.6.1_8 Installation of Perl distribution is finished. Please note, that since Perl is also in the base system, this distribution will not be used by default. If you want this version of Perl to be used by default, please type use.perl port Assuming that use.perl script (which was installed with the rest of the Perl distribution) can be found in your PATH (you might have to type `rehash' first, depending upon a shell you use), this action will replace /usr/bin/perl and /usr/bin/suidperl with symbolic links to the versions of these binaries in the Perl distribution. This action will also put some variables into your /etc/make.conf file, so that newly installed ports (not packages!) will use new version of perl, and the system upgrades from the source will not overwrite the changes made. At any time you can also type use.perl system if you wish to revert back to the system version of perl. 'perl-5.6.1_8' loaded successfully. Package 'cvsupit-3.1' depends on 'imake-4.2.0_1'. Program received signal SIGBUS, Bus error. 0x280a0792 in SSL_write () from /usr/lib/libssl.so.2 (gdb) where #0 0x280a0792 in SSL_write () from /usr/lib/libssl.so.2 #1 0x28078129 in _fetch_write () from /usr/lib/libfetch.so.3 #2 0x280781de in _fetch_putln () from /usr/lib/libfetch.so.3 #3 0x28075d61 in fetchListHTTP () from /usr/lib/libfetch.so.3 #4 0x280771c4 in fetchListHTTP () from /usr/lib/libfetch.so.3 #5 0x2807743d in _ftp_request () from /usr/lib/libfetch.so.3 #6 0x28077591 in fetchXGetFTP () from /usr/lib/libfetch.so.3 #7 0x280783b0 in fetchXGet () from /usr/lib/libfetch.so.3 #8 0x280786e5 in fetchXGetURL () from /usr/lib/libfetch.so.3 #9 0x2807871f in fetchGetURL () from /usr/lib/libfetch.so.3 #10 0x0804f5ef in fileGetURL ( base=0x8056860 "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/Latest/cvsupit.tbz", spec=0x808d070 "imake-4.2.0_1") at file.c:199 #11 0x0804aa97 in pkg_do ( pkg=0x8056860 "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-current/Latest/cvsupit.tbz") at perform.c:297 #12 0x0804a24b in pkg_perform (pkgs=0x8088c60) at perform.c:50 #13 0x08049faf in real_main (argc=-1077936975, argv=0xbfbffb9c) at main.c:215 #14 0x0804c96e in main (argc=673297920, argv=0xbfbffb8c) at pkgwrap.c:88 #15 0x08049b29 in _start () (gdb) quit The program is running. Exit anyway? (y or n) y rincewind# ^Dexit Script done on Wed Sep 18 00:13:37 2002