Mailing List Archive

bug in os/x version of conserver
This might actually break on other versions, I don't know.

Given this snippet of (incorrect) config file:


default csrvcs5 {
type exec;
host aconsole.com;
# initcmd '/opt/test/etc/shiva-chat';
# exec /usr/bin/telnet -E H P;
execsubst H=hs,P=Pd;
portbase 3000;
portinc 1;
}

conserver crashes with a bus error

kremer:~/code/conserver $ sudo ./conserver.init
Password:
[Tue Oct 25 15:42:35 2005] conserver (17317): conserver.com version
8.1.12
[Tue Oct 25 15:42:35 2005] conserver (17317): started as `root' by
`arthur'
[Tue Oct 25 15:42:35 2005] conserver (17317): INFO: interface address
127.0.0.1 (-M option)
./conserver.init: line 3: 17317 Bus error /opt/test/
sbin//conserver -M127.0.0.1 -p 6666 -U /opt/test/var/log/consoles/
unified -v
kremer:~/code/conserver $


Machine details:

kremer:~/code/conserver $ uname -a
Darwin kremer.york.ac.uk 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun
24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power
Macintosh powerpc
kremer:~/code/conserver $ gcc --version
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer,
Inc. build 4061)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

kremer:~/code/conserver $



--
Dr. A. Clune, Systems Security Advisor
The Computing Service, University of York
ajc22@york.ac.uk 01904 433129

_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: bug in os/x version of conserver [ In reply to ]
yikers. i took the chunk of config file and included it in a normal
config file, trying to include it in a console definition and not.
nothing bad happened. is there a full config file you can share that
tickles the problem?

btw, thanks for the OS X notes for compilation, etc you sent directly to
me. i'll work on integrating them to make it easier in the next
release.

Bryan

On Tue, Oct 25, 2005 at 03:43:52PM +0100, Arthur Clune wrote:
> Given this snippet of (incorrect) config file:
>
>
> default csrvcs5 {
> type exec;
> host aconsole.com;
> # initcmd '/opt/test/etc/shiva-chat';
> # exec /usr/bin/telnet -E H P;
> execsubst H=hs,P=Pd;
> portbase 3000;
> portinc 1;
> }
>
> conserver crashes with a bus error
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: bug in os/x version of conserver [ In reply to ]
On Wed, Oct 26, 2005 at 07:57:38PM +0100, Arthur Clune wrote:
> See attached files, including my ./configure. Just took me a few
> minutes to recreate it since I'd replaced the config file with a
> working version.

thanks for sending the config file. yep...there's a bug. here's a fix
to get around it (might not be my final fix, but perhaps). figured
everyone might want it, just in case...

*** cutil.c.old Wed Oct 26 12:18:39 2005
--- cutil.c Wed Oct 26 12:17:23 2005
***************
*** 3187,3193 ****
OutOfMem();
}

! if (s != (SUBST *)0 && repl != (char **)0) {
static STRING *result = (STRING *)0;

if (result == (STRING *)0)
--- 3187,3193 ----
OutOfMem();
}

! if (s != (SUBST *)0 && repl != (char **)0 && *repl != (char *)0) {
static STRING *result = (STRING *)0;

if (result == (STRING *)0)

Bryan
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users