Package: rageircd
Version: 2.0.1-1
Followup-For: Bug #331089

After a few hours, a debug version of the current release ended up here:

(gdb) run -t -V -c /etc/rageircd/rageircd.conf
Starting program: /usr/bin/rageircd -t -V -c /etc/rageircd/rageircd.conf
Attempting to open config file /etc/rageircd/rageircd.conf...
Successfully loaded config file /etc/rageircd/rageircd.conf.
Validating all loaded server configuration...
Successfully validated all server configuration.
Loaded SSL certificate and private key file.
rageircd: initialisation complete, attempting to boot.

Program received signal SIGSEGV, Segmentation fault.
0xb7b2df2a in m_away (cptr=0xb7b91000, sptr=0xb7b91258, parc=2,
parv=0x81905a0) at m_away.c:88
88              if (sptr->user->away != NULL) {
(gdb) where
#0  0xb7b2df2a in m_away (cptr=0xb7b91000, sptr=0xb7b91258, parc=2,
parv=0x81905a0) at m_away.c:88
#1  0x08063737 in serv_parse (cptr=0xb7b91000, buffer=0xb7b7a302 ":!4006
A", bufend=0xaf9e9dc9 <Address 0xaf9e9dc9 out of bounds>)
    at parse.c:412
#2  0x08062cfc in serv_dopacket (cptr=0xb7b91000, buffer=0x83807c8 "",
length=33) at packet.c:88
#3  0x0805b2be in engine_read_packet (fd=10, data=0xb7b91000,
engine_status_unused=0) at engine.c:472
#4  0x0805bd29 in engine_do_netio (delay=10) at engine_rtsigio.c:190
#5  0x0805f4eb in main (argc=5, argv=0xbf97f584) at ircd.c:647

(gdb) p *sptr
$3 = {next = 0xb7b9112c, prev = 0xb7b91384, hnext = 0x0, idhnext = 0x0,
localClient = 0x0, user = 0xb7b700a0, localUser = 0x0,
  serv = 0x0, lasttime = 0, firsttime = 0, since = 0, tsinfo =
1128337531, flags = 6144, umode = 2, from = 0xb7b91000,
  uplink = 0xb7b91000, hopcount = 1, status = 1, name = "forrest", '\0'
<repeats 56 times>, username = "~22a21a48e",
  host = "127.0.0.1", '\0' <repeats 54 times>, info = "irfan", '\0'
<repeats 45 times>, ip = {s_addr = 16777343}, id = {
    id = 1048582, string = "!4006\000\000\000"}, hostip =
"127.0.0.1\000\000\000\000\000\000", serial = 0}
(gdb) p *(sptr->user)
Cannot access memory at address 0xb7b700a0

I hope this helps. It seems that sptr->user in m_away.c line 88 is not
pointing to a valid data structure.

If there's some other useful info that I could show when it breaks into
the debugger, please let me know.
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686-smp
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages rageircd depends on:
ii  adduser                       3.67       Add and remove users and groups
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libssl0.9.7                   0.9.7g-2   SSL shared libraries
ii  logrotate                     3.7.1-2    Log rotation utility
ii  ssl-cert                      1.0-11     Simple debconf wrapper for openssl
ii  zlib1g                        1:1.2.3-4  compression library - runtime

rageircd recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to