[IRCServices] Segfault on Opteron (64-bit) Linux

Liverbugg liverbugg at rinux.org
Mon Oct 11 23:40:50 PDT 2004


Liverbugg wrote:

>>>Program received signal SIGSEGV, Segmentation fault.
>>>0x0000002a956d63d0 in strlen () from /lib/libc.so.6
>>>(gdb) bt
>>>#0  0x0000002a956d63d0 in strlen () from /lib/libc.so.6
>>>#1  0x0000002a956aca46 in vfprintf () from /lib/libc.so.6
>>>#2  0x0000002a956ae4f9 in vfprintf () from /lib/libc.so.6
>>>#3  0x0000002a956aa34a in vfprintf () from /lib/libc.so.6
>>>#4  0x000000000040bf28 in vlogprintf (fmt=0x47e2dd "%s", args=0x7fbffff070)
>>>  at log.c:123
>>>#5  0x000000000040bff7 in logprintf (fmt=0x47e2dd "%s") at log.c:131
>>>#6  0x000000000040c018 in logputs (
>>>  str=0x7fbffff1a0 "[Oct 05 19:56:41.285530 2004] ") at log.c:137
>>>#7  0x000000000040c163 in write_time () at log.c:167
>>>#8  0x000000000040c46a in log (
>>>  fmt=0x47d8f0 "IRC Services %s starting up (options:%s%s%s)") at 
>>>log.c:287
>>>#9  0x00000000004097c7 in init (ac=3, av=0x7fbffff568) at init.c:756
>>>#10 0x000000000040cf78 in main (ac=3, av=0x7fbffff568, envp=0x7fbffff588)
>>>  at main.c:225
>>>   
>>>
>>>      
>>>
>>    This is puzzling; my gut instinct is to say that your libraries are
>>broken.
>>
>> 
>>
>>    
>>
>I havent had any problems with the libraries with any other software.
>
>  
>
I was just setting up everything to give you remote access and I found a
core file and this looks a bit more useful then the last GDB output

Squall ircservices # gdb bin/ircservices lib/ircservices/core
GNU gdb 6.2
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".

Core was generated by `./ircservices/bin/ircservices'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0 0x0000002a956d7baf in strcasecmp () from /lib/libc.so.6
(gdb) bt
#0 0x0000002a956d7baf in strcasecmp () from /lib/libc.so.6
#1 0x000000000047a1cd in do_receive_message (
source=0xffffffffbffff1d0 <Address 0xffffffffbffff1d0 out of bounds>,
cmd=0xffffffffbffff190 <Address 0xffffffffbffff190 out of bounds>, ac=2,
av=0x71bf30) at modules/protocol/unreal.c:949
#2 0x0000000000412b41 in call_callback_5 (module=0x5abaa0, id=27,
arg1=0xffffffffbffff1d0, arg2=0xffffffffbffff190, arg3=0x2, arg4=0x71bf30,
arg5=0x0) at modules.c:699
#3 0x00000000004134d6 in process () at process.c:136
#4 0x000000000040df39 in readfirstline_callback (s=0x71c1b0,
param_unused=0x41) at main.c:160
#5 0x00000000004164f1 in check_sockets () at sockets.c:516
#6 0x000000000040e2d3 in main (ac=1, av=0x7fbffff538, envp=0x7fbffff548)
at main.c:267
(gdb)