ID: 9766
Updated by: dickmeiss
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Closed.

Previous Comments:
---------------------------------------------------------------------------

[2001-03-19 07:35:49] [EMAIL PROTECTED]
Crash was due to stack overflow. The initial stack size
was set to 4000 bytes in call to st_thread_create in
irc_connect in line 104 of IRCG-2.1/src/irc_connect.c

Increasing the stack size to 8000 solves the problem.

---------------------------------------------------------------------------

[2001-03-15 17:21:09] [EMAIL PROTECTED]

Optimization flags:
php4: -O2
thttpd: -O
st-1.0: <none>
IRCG: -O2

Versions and session:

[root@muffin thttpd]# gcc -v
Reading specs from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
[root@muffin thttpd]# rpm -qf /lib/libc-2.1.1.so 
glibc-2.1.1-6
[root@muffin thttpd]# export IRCG_OPTIONS=E
[root@muffin thttpd]# /usr/local/sbin/thttpd -D -C config
nick(),cmd(NOTICE),para0(AUTH),para1(*** Looking up your
hostname...)
nick(),cmd(NOTICE),para0(AUTH),para1(*** Found your
hostname, cached)
nick(),cmd(NOTICE),para0(AUTH),para1(*** Checking Ident)
nick(),cmd(001),para0(adam),para1(Welcome to the Internet
Relay Network adam)
nick(),cmd(002),para0(adam),para1(Your host is
muffin.indexdata.dk[muffin.indexdata.dk/6667], running
version 2.8/hybrid-6.0)
nick(),cmd(NOTICE),para0(adam),para1(*** Your host is
muffin.indexdata.dk[muffin.indexdata.dk/6667], running
version 2.8/hybrid-6.0)
nick(),cmd(003),para0(adam),para1(This server was created
Thu Feb 8 2001 at 11:11:29 CET)
nick(),cmd(004),para0(adam),para1(muffin.indexdata.dk),para2(2.8/hybrid-6.0),para3(oiwszcrkfydnxb),para4(biklmnopstved)

nick(),cmd(251),para0(adam),para1(There are 1 users and 0
invisible on 1 servers)
nick(),cmd(255),para0(adam),para1(I have 1 clients and 0
servers)
nick(),cmd(265),para0(adam),para1(Current local  users: 1 
Max: 4)
nick(),cmd(266),para0(adam),para1(Current global users: 1 
Max: 4)
nick(),cmd(250),para0(adam),para1(Highest connection count:
4 (4 clients) (47 since server was (re)started))
nick(),cmd(375),para0(adam),para1(- muffin.indexdata.dk
Message of the Day - )
nick(),cmd(372),para0(adam),para1(- Index Data, Test irc
server!)
nick(),cmd(372),para0(adam),para1(- -Anders Moeller )
nick(),cmd(372),para0(adam),para1(- )
nick(),cmd(372),para0(adam),para1(- Some day I will replace
it with something better.)
nick(),cmd(376),para0(adam),para1(End of /MOTD command.)
nick(adam),cmd(JOIN),para0(#humm)
nick(muffin.indexdata.dk MODE),cmd(MODE),para0(#humm),para1(+nt)
nick(muffin.indexdata.dk
353),cmd(353),para0(adam),para1(=),para2(#humm),para3(@adam )
Segmentation fault


---------------------------------------------------------------------------

[2001-03-15 10:03:58] [EMAIL PROTECTED]
Crash in either ircg_set_current or ircg_join when
running the IRCG sample scripts as produced by Sasha.

We've installed
  latest php4 CVS (as of 15 march)
  thttpd 2.20b
  st 1.0 and st 1.1
  IRCG 2.1
  hybrid ircd (on localhost port 6667)

The trace below may be misleading because of the threads
involved.

Program received signal SIGSEGV, Segmentation fault.
0x80ef6e5 in irc_cmd_RPL_NAMREPLY (conn=0x8189bb0, msg=0x401f591c)
    at irc_dispatcher.c:181
181     {
(gdb) bt
#0  0x80ef6e5 in irc_cmd_RPL_NAMREPLY (conn=0x8189bb0, msg=0x401f591c)
    at irc_dispatcher.c:181
#1  0x80efde1 in dispatch_message (conn=0x8189bb0, msg=0x401f591c)
    at irc_dispatcher.c:459
#2  0x80f01e3 in irc_dispatcher (dummy=0x8189bb0) at irc_dispatcher.c:587
#3  0x400bdd36 in _st_thread_main () at sched.c:500

The following, perhaps, helps:

(gdb) print *conn
$4 = {username = "ada

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to