In article <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message