<div dir="ltr">Alex,<br>Thanks for your prompt reply. I am a little out of my league with gdb. I tried to follow&nbsp; your instructions but ended up with the following:<br><br>[root@wifidog ~]# gdb wifidog<br>GNU gdb Fedora (6.8-11.fc9)<br>
Copyright (C) 2008 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<br>This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.&nbsp; Type &quot;show copying&quot;<br>and &quot;show warranty&quot; for details.<br>This GDB was configured as &quot;x86_64-redhat-linux-gnu&quot;...<br>wifidog: No such file or directory.<br>
(gdb) -f -d 7<br>Undefined command: &quot;-f&quot;.&nbsp; Try &quot;help&quot;.<br>(gdb) run -f -d 7<br>Starting program:&nbsp; -f -d 7<br>No executable file specified.<br>Use the &quot;file&quot; or &quot;exec-file&quot; command.<br>
(gdb) wifidog -f -d 7<br>Undefined command: &quot;wifidog&quot;.&nbsp; Try &quot;help&quot;.<br>(gdb) <br><br><br>Thanks again for your help. If you could let me know what I am doing wrong with the debugger I will post the stack trace ASAP.<br>
<br>Thanks<br>Clifford<br><br><div class="gmail_quote">On Mon, Jul 28, 2008 at 2:45 PM, acv &lt;<a href="mailto:acv@miniguru.ca">acv@miniguru.ca</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This looks like a bug in util.c:get_iface_ip()<br>
<br>
A backtrace would be helpful. To get one ($ = unix shell, gdb&gt; = gdb command<br>
prompt):<br>
<br>
$ gdb wifidog<br>
&nbsp;.... load messages ....<br>
gdb&gt; run &lt;you_command_line_arguments here&gt;<br>
&nbsp;.... program output followed by seg fault ....<br>
gdb&gt; bt<br>
&nbsp;.... back trace ....<br>
gdb&gt; exit<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;If possible, compile without optimization (no -O, -O2 flags on CC<br>
command-line) and debugging symbols (-g on CC command-line) that way we can<br>
get exact source-code line where the crash happens.<br>
<br>
Alex<br>
<div><div></div><div class="Wj3C7c"><br>
On Mon, Jul 28, 2008 at 02:20:05PM -0400, Clifford Thurber wrote:<br>
&gt;<br>
&gt; I checked out the latest wifidog and wifidog-auth last week and was able to<br>
&gt; configure and compile everything successfuly. However when I start<br>
&gt; wifidog(which is running on the same machine as the auth-server) I get a<br>
&gt; segfault near the end of startup. When I run wifidog in the foreground this<br>
&gt; is what I say before the seg fault:<br>
&gt;<br>
&gt;<br>
&gt; [7][Mon Jul 28 11:10:23 2008](conf.c:389) p1 = [FirewallRule]; p2 = [allow<br>
&gt; tcp port 67]<br>
&gt; [7][Mon Jul 28 11:10:23 2008](conf.c:433) leftover: allow tcp port 67<br>
&gt; [7][Mon Jul 28 11:10:23 2008](conf.c:515) Adding Firewall Rule allow tcp<br>
&gt; port 67 to <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a><br>
&gt; [7][Mon Jul 28 11:10:23 2008](conf.c:413) Firewall Rule Set unknown-users<br>
&gt; added.<br>
&gt; [7][Mon Jul 28 11:10:23 2008](gateway.c:193) Finding IP address of eth1<br>
&gt; Segmentation fault<br>
&gt;<br>
&gt;<br>
&gt; I see the following in the logs shortly after:<br>
&gt;<br>
&gt;<br>
&gt; Jul 28 11:10:04 wifidog kernel: wifidog[12304]: segfault at 2d8196c8 ip<br>
&gt; 3ea6280eb0 sp 7fff3582bcc8 error 4 in <a href="http://libc-2.8.so" target="_blank">libc-2.8.so</a>[3ea6200000+162000]<br>
&gt; Jul 28 11:10:12 wifidog kernel: wifidog[12307]: segfault at 65a46c8 ip<br>
&gt; 3ea6280eb0 sp 7fff0e5b4a38 error 4 in <a href="http://libc-2.8.so" target="_blank">libc-2.8.so</a>[3ea6200000+162000]<br>
&gt; Jul 28 11:10:23 wifidog kernel: wifidog[12308]: segfault at 342366c8 ip<br>
&gt; 3ea6280eb0 sp 7fff3c2466c8 error 4 in <a href="http://libc-2.8.so" target="_blank">libc-2.8.so</a>[3ea6200000+162000]<br>
&gt;<br>
&gt;<br>
&gt; Below is the related information for hardware/software versions:<br>
&gt;<br>
&gt; gcc --version<br>
&gt; gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)<br>
&gt; Copyright (C) 2008 Free Software Foundation, Inc.<br>
&gt; This is free software; see the source for copying conditions. &nbsp;There is NO<br>
&gt; warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>
&gt;<br>
&gt;<br>
&gt; root@wifidog ~]# uname -a<br>
&gt; Linux wifidog 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1 06:06:21 EDT 2008 x86_64<br>
&gt; x86_64 x86_64 GNU/Linux<br>
&gt;<br>
&gt;<br>
&gt; root@wifidog ~]# ldd /usr/bin/wifidog<br>
&gt; &nbsp; &nbsp; linux-vdso.so.1 =&gt; &nbsp;(0x00007fff9d5fe000)<br>
&gt; &nbsp; &nbsp; libhttpd.so.0 =&gt; /usr/lib64/libhttpd.so.0 (0x000000387b800000)<br>
&gt; &nbsp; &nbsp; libnsl.so.1 =&gt; /lib64/libnsl.so.1 (0x0000003eaf600000)<br>
&gt; &nbsp; &nbsp; libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x0000003ea6e00000)<br>
&gt; &nbsp; &nbsp; libc.so.6 =&gt; /lib64/libc.so.6 (0x0000003ea6200000)<br>
&gt; &nbsp; &nbsp; /lib64/ld-linux-x86-64.so.2 (0x0000003ea5000000)<br>
&gt;<br>
&gt;<br>
&gt; I get the seg fault whether I install wifidog from packages or compile from<br>
&gt; source. Would someone be able to help me out with this? I am not sure where<br>
&gt; to look at this point. Are there any known issues with the versions I am<br>
&gt; using? I have looked through the FAQs and didn&#39;t see anything relevant to<br>
&gt; this problem.<br>
&gt;<br>
&gt; Thanks<br>
&gt; Clifford<br>
<br>
</div></div>&gt; _______________________________________________<br>
&gt; WiFiDog mailing list<br>
&gt; <a href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</a><br>
&gt; <a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog" target="_blank">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br>
<br>_______________________________________________<br>
WiFiDog mailing list<br>
<a href="mailto:WiFiDog@listes.ilesansfil.org">WiFiDog@listes.ilesansfil.org</a><br>
<a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog" target="_blank">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br></blockquote></div><br></div>