From owner-freebsd-current Mon Sep 17 13: 4: 1 2001 Delivered-To: freebsd-current@freebsd.org Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [195.37.179.254]) by hub.freebsd.org (Postfix) with ESMTP id DA94C37B407 for ; Mon, 17 Sep 2001 13:03:56 -0700 (PDT) Received: from saturn.UUCP (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id VAA27630; Mon, 17 Sep 2001 21:59:04 +0200 Received: (from nox@localhost) by saturn (8.11.4/8.8.5) id f8HK0Ss36706; Mon, 17 Sep 2001 22:00:28 +0200 (CEST) Date: Mon, 17 Sep 2001 22:00:28 +0200 (CEST) From: Juergen Lock Message-Id: <200109172000.f8HK0Ss36706@saturn> To: iatohm@xntrick.daemon.sh Subject: Re: pkg_add problems, and garbage at end of dist tarballs X-Newsgroups: local.list.freebsd.current In-Reply-To: <20010912124713.Q1961-100000@xntrick.daemon.sh> Organization: home Cc: freebsd-current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <20010912124713.Q1961-100000@xntrick.daemon.sh> you write: > >Core was generated by `pkg_add'. >Program terminated with signal 10, Bus error. >Reading symbols from /usr/lib/libfetch.so.3...(no debugging symbols >found)... >done. >Reading symbols from /usr/lib/libmd.so.2...(no debugging symbols >found)...done. >Reading symbols from /usr/lib/libc.so.5...(no debugging symbols >found)...done. >Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols >found)... >done. >#0 0x8049b24 in free () >(gdb) bt >#0 0x8049b24 in free () >#1 0x3 in ?? () >#2 0x8049695 in free () >(gdb) > >[...] Here is the backtrace built with -g: (gdb) r foo Starting program: /usr/src/usr.sbin/pkg_install/add/./pkg_add foo Program received signal SIGBUS, Bus error. 0x8049b24 in main (argc=2, argv=0xbfbffb8c) at main.c:192 192 packagesite[0] = '\0'; (gdb) bt #0 0x8049b24 in main (argc=2, argv=0xbfbffb8c) at main.c:192 #1 0x8049695 in _start () (gdb) And this fixes it (packagesite was used unitialized): Index: /usr/src/usr.sbin/pkg_install/add/main.c @@ -78,6 +78,7 @@ char *cp, *packagesite, *remotepkg = NULL, *ptr; static char temppackageroot[MAXPATHLEN]; + packagesite = temppackageroot; start = argv; while ((ch = getopt(argc, argv, Options)) != -1) { switch(ch) { The second thing, while unpacking the srcdist i got: bash# cat /mnt/home/ftp/pub/FreeBSD/5.0-20010909-CURRENT/src/susbin.* |(cd /usr/src && tar xfvzk - ) ... usr.sbin/zic/WWW.htm usr.sbin/zic/ialloc.c usr.sbin/zic/private.h usr.sbin/zic/scheck.c usr.sbin/zic/zdump.8 usr.sbin/zic/zdump.c usr.sbin/zic/zic.8 usr.sbin/zic/zic.c usr.sbin/zic/zdump/ gzip: stdin: decompression OK, trailing garbage ignored usr.sbin/zic/zdump/Makefile usr.sbin/zic/zic/ usr.sbin/zic/zic/Makefile tar: child returned status 2 which might explain sysinstall giving an error after every dist: DEBUG: wait for gunzip returned status of -1 (and so it asked whether it should retry loading the dist every time) That was during the (ftp) install of 5.0-20010909-CURRENT. Greetings, Juergen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message