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

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


Andrew Church wrote:

>>I'm trying to run ircservices on a dual opteron server and I'm getting 
>>segfaults.  I've tried 5.0.31, 5.0.38, and 5.0.41 over the last few 
>>months and just had enough time recently to try to debug.  The computer 
>>is a dual Opteron 242 running Gentoo Linux.
>>    
>>
>
>     The most likely cause is that Services isn't compatible with 64-bit
>processors, though to the best of my knowledge there shouldn't be any
>issues (the warnings are harmless, unless the compiler is screwy).
>Except...
>
>  
>
There were a few segfaults in UnrealIRCd that I discovered on this box
due to 64bit incompatibilities and the devs fixed.

>>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.

>>Let me know if theres any other info you need or if you want access to 
>>the machine to debug.
>>    
>>
>
>     Access to the machine would be appreciated--I don't have any 64-bit
>machines handy.
>
>  
>
I'll send you a private mail with the address and user/pw.

>  --Andrew Church
>    achurch at achurch.org
>    http://achurch.org/
>
>------------------------------------------------------------------
>To unsubscribe or change your subscription options, visit:
>http://www.ircservices.za.net/mailman/listinfo/ircservices
>  
>