1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Segfault on Opteron (
64-bit) Linux
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Segfault%20on%20Opteron%20%2864-bit%29%20Linux&In-Reply-To=">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"004649.html">
11 <LINK REL=
"Next" HREF=
"004652.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] Segfault on Opteron (
64-bit) Linux
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Segfault%20on%20Opteron%20%2864-bit%29%20Linux&In-Reply-To="
17 TITLE=
"[IRCServices] Segfault on Opteron (64-bit) Linux">liverbugg at rinux.org
19 <I>Tue Oct
5 18:
50:
24 PDT
2004</I>
21 <LI>Previous message:
<A HREF=
"004649.html">[IRCServices] Services
5.0.41 released
23 <LI>Next message:
<A HREF=
"004652.html">[IRCServices] Segfault on Opteron (
64-bit) Linux
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#4650">[ date ]
</a>
27 <a href=
"thread.html#4650">[ thread ]
</a>
28 <a href=
"subject.html#4650">[ subject ]
</a>
29 <a href=
"author.html#4650">[ author ]
</a>
34 <PRE>I'm trying to run ircservices on a dual opteron server and I'm getting
35 segfaults. I've tried
5.0.31,
5.0.38, and
5.0.41 over the last few
36 months and just had enough time recently to try to debug. The computer
37 is a dual Opteron
242 running Gentoo Linux. The server I'm trying to
38 link to is Unrealircd-
3.2 running on the same machine. Ircservices runs
39 fine with the same config linking to the same server if I run it on a
42 The compile has lots of warnings that I don't see on a
32bit machine like:
44 modules/statserv/main.c:
127: warning: cast from pointer to integer of
46 modules/statserv/main.c:
127: warning: cast to pointer from integer of
49 This is what I see in the the log when running ircservices -debug:
51 [Oct
04 20:
36:
13.560828 2004] IRC Services
5.0.41 starting up (options:
53 [Oct
04 20:
36:
13.560991 2004] debug: Loading language
0 from file
55 .....unimportant stuff cut.....
56 [Oct
04 20:
36:
13.578803 2004] debug: Sent: NICK HelpServ
1 1096936573
57 services lanchelms.com services.lanchelms
0 +Sqd lanchelms.com :Help Server
58 [Oct
04 20:
36:
13.578835 2004] debug: Received: :squall.local NOTICE AUTH
59 :
<i>*** Looking up your hostname...
60 </I>[Oct
04 20:
36:
32.983294 2004]
62 If I run it with ircservices -debug -nofork all I see in the log is this
63 (this is from
2 tries):
65 [Oct
04 19:
59:
43 2004] [Oct
04 20:
04:
50 2004]
67 If I run it with no parameters the server sees services come on line but
70 -squall.local- *** Notice -- (link) Link squall.local -
>
71 services.lanchelms[@
127.0.0.1.6677] established
72 -squall.local- Lost connection to
73 services.lanchelms[
127.0.0.1]:Connection reset by peer
75 but if I run it with -nofork the server never sees the connection
77 There is no core generated, even when I compiled with ./configure
78 -dumpcore -cflags -g -defaults, but here is what gdb shows when running
79 ircservices in it with -nofork -debug:
81 Squall bin # gdb ./ircservices
83 Copyright
2004 Free Software Foundation, Inc.
84 GDB is free software, covered by the GNU General Public License, and you are
85 welcome to change it and/or distribute copies of it under certain
87 Type
"show copying
" to see the conditions.
88 There is absolutely no warranty for GDB. Type
"show warranty
" for details.
89 This GDB was configured as
"x86_64-pc-linux-gnu
"...Using host
90 libthread_db library
"/lib/libthread_db.so
.1".
92 Starting program: /opt/ircservices/bin/ircservices -nofork -debug
93 warning: Unable to find dynamic linker breakpoint function.
94 GDB will be unable to debug shared library initializers
95 and track explicitly loaded dynamic code.
97 Program received signal SIGSEGV, Segmentation fault.
98 0x0000002a956d63d0 in strlen () from /lib/libc.so
.6
100 #
0 0x0000002a956d63d0 in strlen () from /lib/libc.so
.6
101 #
1 0x0000002a956aca46 in vfprintf () from /lib/libc.so
.6
102 #
2 0x0000002a956ae4f9 in vfprintf () from /lib/libc.so
.6
103 #
3 0x0000002a956aa34a in vfprintf () from /lib/libc.so
.6
104 #
4 0x000000000040bf28 in vlogprintf (fmt=
0x47e2dd "%s
", args=
0x7fbffff070)
106 #
5 0x000000000040bff7 in logprintf (fmt=
0x47e2dd "%s
") at log.c:
131
107 #
6 0x000000000040c018 in logputs (
108 str=
0x7fbffff1a0 "[Oct
05 19:
56:
41.285530 2004]
") at log.c:
137
109 #
7 0x000000000040c163 in write_time () at log.c:
167
110 #
8 0x000000000040c46a in log (
111 fmt=
0x47d8f0 "IRC Services %s starting up (options:%s%s%s)
") at
113 #
9 0x00000000004097c7 in init (ac=
3, av=
0x7fbffff568) at init.c:
756
114 #
10 0x000000000040cf78 in main (ac=
3, av=
0x7fbffff568, envp=
0x7fbffff588)
118 Let me know if theres any other info you need or if you want access to
119 the machine to debug.
132 <LI>Previous message:
<A HREF=
"004649.html">[IRCServices] Services
5.0.41 released
134 <LI>Next message:
<A HREF=
"004652.html">[IRCServices] Segfault on Opteron (
64-bit) Linux
136 <LI> <B>Messages sorted by:
</B>
137 <a href=
"date.html#4650">[ date ]
</a>
138 <a href=
"thread.html#4650">[ thread ]
</a>
139 <a href=
"subject.html#4650">[ subject ]
</a>
140 <a href=
"author.html#4650">[ author ]
</a>