From owner-freebsd-questions Thu Mar 21 03:47:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA20910 for questions-outgoing; Thu, 21 Mar 1996 03:47:47 -0800 (PST) Received: from kanto.cc.jyu.fi (kallio@kanto.cc.jyu.fi [130.234.1.2]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id DAA20897 Thu, 21 Mar 1996 03:47:15 -0800 (PST) Received: (from kallio@localhost) by kanto.cc.jyu.fi (8.7.2/8.7.2) id NAA04213; Thu, 21 Mar 1996 13:46:56 +0200 (EET) Date: Thu, 21 Mar 1996 13:46:56 +0200 (EET) From: Seppo Kallio To: questions@freebsd.org cc: gpalmer@freebsd.org Subject: * Amanda 2.2.6 - huge problem, it cannot read sample amanda.conf * In-Reply-To: <199603210706.XAA10638@rainfall.mwd.dst.ca.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk FreeBSD 2.1R: itu: {169} /usr/local/sbin/amcheck csd "amanda.conf", line 166: configuration keyword expected Segmentation fault I did compile amanda with -g seg.fault is somwhere in get_conf The line 166 is the last one. Amanda.conf is the one axample in amanda 2.2.6 ports-2.1. Same error with my own config running OK in anouther system (2.2 SNAP 960303). I got same error ins SNAP 960303 first, then it disappeared, I do not know how. I got same error in 2.2-SNAP-960303 few times but reinstallin amanda did help. Now it does not help! Seppo PS. I did compile it using -g and got these lines out: Seems the error is in conf file reading. % gdb /usr/local/sbin/amcheck GDB is free software and you are welcome to 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. GDB 4.13 (i386-unknown-freebsd), Copyright 1994 Free Software Foundation, Inc... (gdb) run csd Starting program: /usr/local/sbin/amcheck csd "amanda.conf", line 166: configuration keyword expected Program received signal SIGSEGV, Segmentation fault. 0x6129 in get_conftoken (exp=ANY) at /usr/include/ctype.h:146 146 return((((_c & _CRMASK) ? ___runetype(_c) : (gdb) bt #0 0x6129 in get_conftoken (exp=ANY) at /usr/include/ctype.h:146 #1 0x4c89 in read_confline () at conffile.c:276 #2 0x4849 in read_conffile (filename=0x16d5 "amanda.conf") at conffile.c:181 #3 0x1a18 in main (argc=2, argv=0xefbfd928) at amcheck.c:136 (gdb) list 141 static __inline int 142 __istype(_BSD_RUNE_T_ _c, unsigned long _f) 143 { 144 if (_c < 0) 145 _c = (unsigned char) _c; 146 return((((_c & _CRMASK) ? ___runetype(_c) : 147 _CurrentRuneLocale->runetype[_c]) & _f) ? 1 : 0); 148 } 149 150 static __inline int