Segfault in csup(1)

From: Maxim Sobolev <sobomax_at_FreeBSD.org>
Date: Wed, 04 Jun 2008 13:54:10 -0700
  Edit ports/lang/sdcc-devel/pkg-descr
   Add delta 1.2 2008.06.03.11.49.24 miwi
  Edit ports/lang/sdcc-devel/pkg-plist
   Add delta 1.13 2008.06.03.11.49.24 miwi
  Edit ports/mail/claws-mail/Makefile
   Add delta 1.140 2008.06.02.23.51.35 miwi
  Checkout ports/mail/claws-mail/files/patch-src_compose.c
  Checkout ports/mail/claws-mail/files/patch-src_prefs_common.c
Receiver: Connection reset by peer
Will retry at 09:02:22
Retrying
Connected to 216.87.87.128
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Segmentation fault: 11 (core dumped)
[ssp-root_at_devel ~]$ uname -a
FreeBSD devel.sippysoft.com 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #0:
Mon May 12 11:16:10 HADT 2008
root_at_devel.sippysoft.com:/usr/obj/usr/src/sys/SSP-PRODUCTION  i386
[ssp-root_at_devel /usr/src/usr.bin/csup]$ sudo gdb
/usr/obj/usr/src/usr.bin/csup/csup /var/tmp/csup.28402.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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-marcel-freebsd"...

warning: exec file is newer than core file.
Core was generated by `csup'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x481ae5b3 in pthread_testcancel () from /lib/libpthread.so.2
[New Thread 0x8066600 (LWP 100228)]
[New Thread 0x8066000 (runnable)]
[New LWP 100282]
(gdb) info threads
* 3 LWP 100282  0x481ae5b3 in pthread_testcancel () from
/lib/libpthread.so.2
   2 Thread 0x8066000 (runnable)  0x08050af2 in pattlist_size (p=0x0) at
/usr/src/usr.bin/csup/../../contrib/csup/misc.c:449
   1 Thread 0x8066600 (LWP 100228)  0x481ae573 in pthread_testcancel ()
from /lib/libpthread.so.2
(gdb) thread 2
[Switching to thread 2 (Thread 0x8066000 (runnable))]#0  0x08050af2 in
pattlist_size (p=0x0) at /usr/src/usr.bin/csup/../../contrib/csup/misc.c:449
449             return (p->in);
(gdb) bt
#0  0x08050af2 in pattlist_size (p=0x0) at
/usr/src/usr.bin/csup/../../contrib/csup/misc.c:449
#1  0x080533d3 in proto_run (config=0x805e580) at
/usr/src/usr.bin/csup/../../contrib/csup/proto.c:370
#2  0x080502f3 in main (argc=1, argv=0xbfbfeda4) at
/usr/src/usr.bin/csup/../../contrib/csup/main.c:314
(gdb) up
#1  0x080533d3 in proto_run (config=0x805e580) at
/usr/src/usr.bin/csup/../../contrib/csup/proto.c:370
370                     for (i = 0; i < pattlist_size(coll->co_accepts);
i++) {
(gdb) print coll
No symbol "coll" in current context.
(gdb) print i
$1 = 1208362748
(gdb) print coll
No symbol "coll" in current context.
(gdb) l
365             s = config->server;
366             lprintf(2, "Exchanging collection information\n");
367             STAILQ_FOREACH(coll, &config->colls, co_next) {
368                     proto_printf(s, "COLL %s %s %o %d\n", coll->co_name,
369                         coll->co_release, coll->co_umask,
coll->co_options);
370                     for (i = 0; i < pattlist_size(coll->co_accepts);
i++) {
371                         proto_printf(s, "ACC %s\n",
372                             pattlist_get(coll->co_accepts, i));
373                     }
374                     for (i = 0; i <
pattlist_size(coll->co_refusals); i++) {
(gdb) print config
$2 = (struct config *) 0x805e580
(gdb) print *config
$3 = {colls = {stqh_first = 0x805e680, stqh_last = 0x805e6d4}, fixups =
0x805d180, host = 0x805d0e0 "cvsup14.freebsd.org", laddr = 0x0, laddrlen
= 0,
   deletelim = -1, socket = 4, chan0 = 0x806b580, chan1 = 0x806b640,
server = 0x806b440, fasupport = {0, 3815, 225, 3825, 3825, 9}}
(gdb) print *config->colls
Structure has no component named operator*.
(gdb) print config->colls
$4 = {stqh_first = 0x805e680, stqh_last = 0x805e6d4}
(gdb) print config->colls->stqh_first
$5 = (struct coll *) 0x805e680
(gdb) print *config->colls->stqh_first
$6 = {co_name = 0x805f820 "ports-all", co_host = 0x805d0e0
"cvsup14.freebsd.org", co_base = 0x805f410 "/usr", co_date = 0x805f5d0 ".",
   co_prefix = 0x805f5e0 "/usr", co_prefixlen = 4, co_release =
0x805f5f0 "cvs", co_tag = 0x805f600 ".", co_cvsroot = 0x805f360
"/home/ncvs",
   co_attrignore = 3424, co_accepts = 0x0, co_refusals = 0x0,
co_dirfilter = 0x805d220, co_filefilter = 0x805d1e0, co_norsync = 0x805d1c0,
   co_colldir = 0x8059862 "sup", co_listsuffix = 0x0, co_scantime =
1212602109, co_options = 72642, co_umask = 18, co_keyword = 0x805f610,
co_next = {
     stqe_next = 0x0}}
(gdb)
Received on Wed Jun 04 2008 - 18:54:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:31 UTC