]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices/2004/004650.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices / 2004 / 004650.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Segfault on Opteron (64-bit) Linux
5 </TITLE>
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">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Segfault on Opteron (64-bit) Linux</H1>
15 <B>Liverbugg</B>
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
18 </A><BR>
19 <I>Tue Oct 5 18:50:24 PDT 2004</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="004649.html">[IRCServices] Services 5.0.41 released
22 </A></li>
23 <LI>Next message: <A HREF="004652.html">[IRCServices] Segfault on Opteron (64-bit) Linux
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
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
40 32bit x86 machine.
41
42 The compile has lots of warnings that I don't see on a 32bit machine like:
43
44 modules/statserv/main.c:127: warning: cast from pointer to integer of
45 different size
46 modules/statserv/main.c:127: warning: cast to pointer from integer of
47 different size
48
49 This is what I see in the the log when running ircservices -debug:
50
51 [Oct 04 20:36:13.560828 2004] IRC Services 5.0.41 starting up (options:
52 debug)
53 [Oct 04 20:36:13.560991 2004] debug: Loading language 0 from file
54 `languages/en_us'
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]
61
62 If I run it with ircservices -debug -nofork all I see in the log is this
63 (this is from 2 tries):
64
65 [Oct 04 19:59:43 2004] [Oct 04 20:04:50 2004]
66
67 If I run it with no parameters the server sees services come on line but
68 die right away:
69
70 -squall.local- *** Notice -- (link) Link squall.local -&gt;
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
74
75 but if I run it with -nofork the server never sees the connection
76
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:
80
81 Squall bin # gdb ./ircservices
82 GNU gdb 6.2
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
86 conditions.
87 Type &quot;show copying&quot; to see the conditions.
88 There is absolutely no warranty for GDB. Type &quot;show warranty&quot; for details.
89 This GDB was configured as &quot;x86_64-pc-linux-gnu&quot;...Using host
90 libthread_db library &quot;/lib/libthread_db.so.1&quot;.
91
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.
96
97 Program received signal SIGSEGV, Segmentation fault.
98 0x0000002a956d63d0 in strlen () from /lib/libc.so.6
99 (gdb) bt
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 &quot;%s&quot;, args=0x7fbffff070)
105 at log.c:123
106 #5 0x000000000040bff7 in logprintf (fmt=0x47e2dd &quot;%s&quot;) at log.c:131
107 #6 0x000000000040c018 in logputs (
108 str=0x7fbffff1a0 &quot;[Oct 05 19:56:41.285530 2004] &quot;) at log.c:137
109 #7 0x000000000040c163 in write_time () at log.c:167
110 #8 0x000000000040c46a in log (
111 fmt=0x47d8f0 &quot;IRC Services %s starting up (options:%s%s%s)&quot;) at
112 log.c:287
113 #9 0x00000000004097c7 in init (ac=3, av=0x7fbffff568) at init.c:756
114 #10 0x000000000040cf78 in main (ac=3, av=0x7fbffff568, envp=0x7fbffff588)
115 at main.c:225
116 (gdb)
117
118 Let me know if theres any other info you need or if you want access to
119 the machine to debug.
120
121 Thanks,
122
123 - Matt
124
125
126 </PRE>
127
128 <!--endarticle-->
129 <HR>
130 <P><UL>
131 <!--threads-->
132 <LI>Previous message: <A HREF="004649.html">[IRCServices] Services 5.0.41 released
133 </A></li>
134 <LI>Next message: <A HREF="004652.html">[IRCServices] Segfault on Opteron (64-bit) Linux
135 </A></li>
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>
141 </LI>
142 </UL>
143
144 </body></html>