[IRCServices] Segfault on Opteron (64-bit) Linux
Andrew Church
achurch at achurch.org
Mon Oct 11 16:53:35 PDT 2004
>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...
>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.
>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.
--Andrew Church
achurch at achurch.org
http://achurch.org/