Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2000:
[Freeciv-Dev] Startup readline segfault (PR#491)
Home

[Freeciv-Dev] Startup readline segfault (PR#491)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Startup readline segfault (PR#491)
From: Jacob Luna Lundberg <jacob@xxxxxxxxxxxxxxxxx>
Date: Fri, 4 Aug 2000 00:57:38 -0700 (PDT)

On my redhat box civserver seems fine with readline.  However, on my corel
linux (heh) box readline is detected but if the server is compiled to use
it there's a segfault during startup.  I'm not sure this is a freeciv bug;
it might be an ``upgrade your readline'' bug, but if so it might be nice
to have the configure script look for that somehow.

The readline on the corel box calls itself libreadline.so.2.1.
This appears to be debian package ``libreadline 2.1-12''.

On the redhat box it's libreadline.so.3.0.

The offending call to readline is on line 214 of server/sernet.c:
      rl_callback_handler_install("> ", handle_readline_input_callback);

I snagged a backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x400a54af in _IO_fflush (fp=0x40140f40) at iofflush.c:41
iofflush.c:41: Permission denied.
(gdb) bt
#0  0x400a54af in _IO_fflush (fp=0x40140f40) at iofflush.c:41
#1  0x4002a483 in rl_prep_terminal ()
#2  0x40037900 in rl_getc ()
#3  0x40037984 in rl_callback_handler_install ()
#4  0x8071436 in sniff_packets ()
#5  0x8052f25 in main ()
#6  0x4006c1eb in __libc_start_main (main=0x8052500 <main>, argc=1, 
argv=0xbffffb54, init=0x8049108 < >,
    fini=0x80afa08 < >, rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffb4c)
    at ../sysdeps/generic/libc-start.c:90

-Jacob

-- 

<0>Kernel panic: Attempted to kill the idle task!







[Prev in Thread] Current Thread [Next in Thread]