[IRCServices] ircservices dev
gabriel.baez at solid-ircd.com
gabriel.baez at solid-ircd.com
Tue Oct 31 06:01:15 PST 2006
Using the Development Version I was getting ready to test the solidircd
module which is experimental, services segfaulted when I started services.
[ 07:52:01 ] · · Server : Global -- from services.americhat.net: PANIC!
buffer = :nemesis.dallas.tx.americhat.net SJOIN 1160520197 #latinchat +tnr
:@Sakura-Doki @zoru @Sheik[Work] @BADBOY @CaBiaR @Arena @Sheik @LoBo
[ 07:52:01 ] · · Server : Routing -- from
nemesis.dallas.tx.americhat.net: Received SQUIT services.americhat.net
from services.americhat.net (Services terminating: Segmentation fault)
[ 07:52:01 ] · · Server : Notice -- services.americhat.net was connected
for 0 seconds. 7/4 sendK/recvK.
[ 07:53:36 ] · · Server : Routing -- from
nemesis.dallas.tx.americhat.net: Link with services.americhat.net
established, states: ULined TS
(gdb) run -nofork
Starting program: /home/sheik/ircservices/sbin/ircservices -nofork
[Oct 31 07:53:10 2006] IRC Services 5.1a10 starting up
[Oct 31 07:53:10 2006] (httpd/main) Listening on 127.0.0.1:8080
[Oct 31 07:53:10 2006] user: New maximum user count: 1
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Fl00k
staff.americhat.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 2
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Woof
AC-49223.45.344a.static.theplanet.com)
[Oct 31 07:53:10 2006] user: New maximum user count: 3
[Oct 31 07:53:10 2006] unknown message from server (SVHOST BADBOY
ScRiPtAz.RuLe.Da.WoRlD.SoN)
[Oct 31 07:53:10 2006] user: New maximum user count: 4
[Oct 31 07:53:10 2006] unknown message from server (SVHOST schnoodles
AC-52325.c52526.usr.usr.americhat.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 5
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Shawn
AC-2936.new.res.rr.com)
[Oct 31 07:53:10 2006] user: New maximum user count: 6
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Arena
AC-51972.dhcp.leds.al.charter.com)
[Oct 31 07:53:10 2006] user: New maximum user count: 7
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Kyuubi-san
AC-49051.45.344a.static.theplanet.com)
[Oct 31 07:53:10 2006] user: New maximum user count: 8
[Oct 31 07:53:10 2006] unknown message from server (SVHOST PaPa
AC-1130.cbpu.com)
[Oct 31 07:53:10 2006] user: New maximum user count: 9
[Oct 31 07:53:10 2006] unknown message from server (SVHOST twEAkz
AC-24129.phnx.qwest.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 10
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Sheik[Work]
staff.americhat.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 11
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Sheik
staff.solid-ircd.com)
[Oct 31 07:53:10 2006] user: New maximum user count: 12
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Sheik[Linux]
staff.americhat.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 13
[Oct 31 07:53:10 2006] unknown message from server (SVHOST D-cypheR
AC-51107.st.louis-106-108rs.mo.dial-access.att.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 14
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Abstract
AC-40866.home.cgocable.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 15
[Oct 31 07:53:10 2006] unknown message from server (SVHOST dc
AC-60316.dsl.toldoh.ameritech.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 16
[Oct 31 07:53:10 2006] unknown message from server (SVHOST Sakura-Doki
AC-13129.prtc.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 17
[Oct 31 07:53:10 2006] unknown message from server (SVHOST zoru
AC-52244.c52423.usr.usr.americhat.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 18
[Oct 31 07:53:10 2006] unknown message from server (SVHOST CaBiaR
AC-64936.prtc.net)
[Oct 31 07:53:10 2006] user: New maximum user count: 19
[Oct 31 07:53:10 2006] unknown message from server (SVHOST LoBo
AC-33997.c34142.usr.usr.americhat.net)
Program received signal SIGSEGV, Segmentation fault.
0x0805551e in sstrdup (s=0x0) at memory.c:89
89 char *t = xsmalloc(strlen(s) + 1);
(gdb)
solid-ircd uses SVHOST for setting user's hostmask
m_server.c
static void sendnick_TS(aClient *cptr, aClient *acptr)
43 {
44 static char ubuf[12];
45
46 if (IsPerson(acptr))
47 {
48 send_umode(NULL, acptr, 0, SEND_UMODES, ubuf);
49 if (!*ubuf) /* trivial optimization - Dianora */
50 {
51 ubuf[0] = '+';
52 ubuf[1] = '\0';
53 }
54
55 sendto_one(cptr, "NICK %s %d %ld %s %s %s %s %lu %lu :%s",
56 acptr->name, acptr->hopcount + 1,
acptr->tsinfo, ubuf,
57 acptr->user->username, MyConnect(acptr) ?
acptr->sockhost : acptr->user->realhost,
58 acptr->user->server, acptr->user->servicestamp,
59 htonl(acptr->ip.s_addr), acptr->info);
60
61 if (IsUmodev(acptr))
62 sendto_one(cptr, "SVHOST %s %s",
63 acptr->name, acptr->user->host);
64 }
65 }