<div dir="ltr">Hi Guys,<br><br>This is what I have let me know what other information I can provide.<br><br> [root@wifidog 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 <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>
and "show warranty" for details.<br>This GDB was configured as "x86_64-redhat-linux-gnu"...<br>(gdb) svn checkout <a href="https://dev.wifidog.org/svn/trunk/wifidog">https://dev.wifidog.org/svn/trunk/wifidog</a><br>
Undefined command: "svn". Try "help".<br>(gdb) Quit<br>(gdb) quit<br>[root@wifidog 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 <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "x86_64-redhat-linux-gnu"...<br>
(gdb) run -f -d 7<br>Starting program: /usr/local/bin/wifidog -f -d 7<br>[Thread debugging using libthread_db enabled]<br>[6][Mon Jul 28 12:10:26 2008][15736](conf.c:630) Reading configuration file '/usr/local/etc/wifidog.conf'<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: ExternalInterface, value: eth0<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: GatewayInterface, value: eth1<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: AuthServer, value: {<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:337) Adding <a href="http://auth.ilesansfil.org:80">auth.ilesansfil.org:80</a> (SSL: 443) / to the auth server list<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:364) Auth server added<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: ClientTimeout, value: 5<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: FirewallRuleSet, value: global<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:401) Adding Firewall Rule Set global<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:464) Firewall Rule Set global added.<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: FirewallRuleSet, value: validating-users<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:401) Adding Firewall Rule Set validating-users<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:440) p1 = [FirewallRule]; p2 = [allow to <a href="http://0.0.0.0/0">0.0.0.0/0</a>]<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:487) leftover: allow to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:569) Adding Firewall Rule allow (null) port (null) to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:464) Firewall Rule Set validating-users added.<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: FirewallRuleSet, value: known-users<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:401) Adding Firewall Rule Set known-users<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:440) p1 = [FirewallRule]; p2 = [allow to <a href="http://0.0.0.0/0">0.0.0.0/0</a>]<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:487) leftover: allow to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:569) Adding Firewall Rule allow (null) port (null) to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:464) Firewall Rule Set known-users added.<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: FirewallRuleSet, value: unknown-users<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:401) Adding Firewall Rule Set unknown-users<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:440) p1 = [FirewallRule]; p2 = [allow udp port 53]<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:487) leftover: allow udp port 53<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:569) Adding Firewall Rule allow udp port 53 to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:440) p1 = [FirewallRule]; p2 = [allow tcp port 53]<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:487) leftover: allow tcp port 53<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:569) Adding Firewall Rule allow tcp port 53 to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:440) p1 = [FirewallRule]; p2 = [allow udp port 67]<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:487) leftover: allow udp port 67<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:569) Adding Firewall Rule allow udp port 67 to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:440) p1 = [FirewallRule]; p2 = [allow tcp port 67]<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:487) leftover: allow tcp port 67<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:569) Adding Firewall Rule allow tcp port 67 to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:464) Firewall Rule Set unknown-users added.<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:668) Parsing token: FirewallRuleSet, value: locked-users<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:401) Adding Firewall Rule Set locked-users<br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:440) p1 = [FirewallRule]; p2 = [block to <a href="http://0.0.0.0/0">0.0.0.0/0</a>]<br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:487) leftover: block to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>
[7][Mon Jul 28 12:10:26 2008][15736](conf.c:569) Adding Firewall Rule block (null) port (null) to <a href="http://0.0.0.0/0">0.0.0.0/0</a><br>[7][Mon Jul 28 12:10:26 2008][15736](conf.c:464) Firewall Rule Set locked-users added.<br>
[7][Mon Jul 28 12:10:26 2008][15736](gateway.c:313) Initializing signal handlers<br>[6][Mon Jul 28 12:10:26 2008][15736](gateway.c:372) Setting started_time<br>[7][Mon Jul 28 12:10:26 2008][15736](gateway.c:382) Finding IP address of eth1<br>
[New Thread 0x7fb3b80206f0 (LWP 15736)]<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x0000003ea6280eb0 in strlen () from /lib64/libc.so.6<br>Missing separate debuginfos, use: debuginfo-install glibc.x86_64<br>
(gdb) <br><br><br>As per Alex's suggestion I am also going to recompile with the no -O, -O2 flags and -g to get symobs now.<br><br>Thanks<br>Clifford<br><br><br><div class="gmail_quote">On Mon, Jul 28, 2008 at 3:06 PM, acv <<a href="mailto:acv@miniguru.ca">acv@miniguru.ca</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> It's not finding the wifidog binary in your path. Pass the<br>
full path on the command-line.<br>
<br>
Alex<br>
<br>
On Mon, Jul 28, 2008 at 03:01:40PM -0400, Clifford Thurber wrote:<br>
> Date: Mon, 28 Jul 2008 15:01:40 -0400<br>
> From: "Clifford Thurber" <<a href="mailto:clifford@hdn.net">clifford@hdn.net</a>><br>
> To: "WiFiDog Captive Portal" <<a href="mailto:wifidog@listes.ilesansfil.org">wifidog@listes.ilesansfil.org</a>><br>
> Subject: Re: [isf-wifidog] seg fault<br>
<div><div></div><div class="Wj3C7c">><br>
> Alex,<br>
> Thanks for your prompt reply. I am a little out of my league with gdb. I<br>
> tried to follow 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 <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a><br>
> ><br>
> This is free software: you are free to change and redistribute it.<br>
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>
> and "show warranty" for details.<br>
> This GDB was configured as "x86_64-redhat-linux-gnu"...<br>
> wifidog: No such file or directory.<br>
> (gdb) -f -d 7<br>
> Undefined command: "-f". Try "help".<br>
> (gdb) run -f -d 7<br>
> Starting program: -f -d 7<br>
> No executable file specified.<br>
> Use the "file" or "exec-file" command.<br>
> (gdb) wifidog -f -d 7<br>
> Undefined command: "wifidog". Try "help".<br>
> (gdb)<br>
><br>
><br>
> Thanks again for your help. If you could let me know what I am doing wrong<br>
> with the debugger I will post the stack trace ASAP.<br>
><br>
> Thanks<br>
> Clifford<br>
><br>
> On Mon, Jul 28, 2008 at 2:45 PM, acv <<a href="mailto:acv@miniguru.ca">acv@miniguru.ca</a>> wrote:<br>
><br>
> > This looks like a bug in util.c:get_iface_ip()<br>
> ><br>
> > A backtrace would be helpful. To get one ($ = unix shell, gdb> = gdb<br>
> > command<br>
> > prompt):<br>
> ><br>
> > $ gdb wifidog<br>
> > .... load messages ....<br>
> > gdb> run <you_command_line_arguments here><br>
> > .... program output followed by seg fault ....<br>
> > gdb> bt<br>
> > .... back trace ....<br>
> > gdb> exit<br>
> ><br>
> > 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>
> ><br>
> > On Mon, Jul 28, 2008 at 02:20:05PM -0400, Clifford Thurber wrote:<br>
> > ><br>
> > > I checked out the latest wifidog and wifidog-auth last week and was able<br>
> > to<br>
> > > configure and compile everything successfuly. However when I start<br>
> > > wifidog(which is running on the same machine as the auth-server) I get a<br>
> > > segfault near the end of startup. When I run wifidog in the foreground<br>
> > this<br>
> > > is what I say before the seg fault:<br>
> > ><br>
> > ><br>
> > > [7][Mon Jul 28 11:10:23 2008](conf.c:389) p1 = [FirewallRule]; p2 =<br>
> > [allow<br>
> > > tcp port 67]<br>
> > > [7][Mon Jul 28 11:10:23 2008](conf.c:433) leftover: allow tcp port 67<br>
> > > [7][Mon Jul 28 11:10:23 2008](conf.c:515) Adding Firewall Rule allow tcp<br>
> > > port 67 to <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a><br>
> > > [7][Mon Jul 28 11:10:23 2008](conf.c:413) Firewall Rule Set unknown-users<br>
> > > added.<br>
> > > [7][Mon Jul 28 11:10:23 2008](gateway.c:193) Finding IP address of eth1<br>
> > > Segmentation fault<br>
> > ><br>
> > ><br>
> > > I see the following in the logs shortly after:<br>
> > ><br>
> > ><br>
> > > Jul 28 11:10:04 wifidog kernel: wifidog[12304]: segfault at 2d8196c8 ip<br>
> > > 3ea6280eb0 sp 7fff3582bcc8 error 4 in <a href="http://libc-2.8.so" target="_blank">libc-2.8.so</a>[3ea6200000+162000]<br>
> > > Jul 28 11:10:12 wifidog kernel: wifidog[12307]: segfault at 65a46c8 ip<br>
> > > 3ea6280eb0 sp 7fff0e5b4a38 error 4 in <a href="http://libc-2.8.so" target="_blank">libc-2.8.so</a>[3ea6200000+162000]<br>
> > > Jul 28 11:10:23 wifidog kernel: wifidog[12308]: segfault at 342366c8 ip<br>
> > > 3ea6280eb0 sp 7fff3c2466c8 error 4 in <a href="http://libc-2.8.so" target="_blank">libc-2.8.so</a>[3ea6200000+162000]<br>
> > ><br>
> > ><br>
> > > Below is the related information for hardware/software versions:<br>
> > ><br>
> > > gcc --version<br>
> > > gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)<br>
> > > Copyright (C) 2008 Free Software Foundation, Inc.<br>
> > > This is free software; see the source for copying conditions. There is<br>
> > NO<br>
> > > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR<br>
> > PURPOSE.<br>
> > ><br>
> > ><br>
> > > root@wifidog ~]# uname -a<br>
> > > Linux wifidog 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1 06:06:21 EDT 2008<br>
> > x86_64<br>
> > > x86_64 x86_64 GNU/Linux<br>
> > ><br>
> > ><br>
> > > root@wifidog ~]# ldd /usr/bin/wifidog<br>
> > > linux-vdso.so.1 => (0x00007fff9d5fe000)<br>
> > > libhttpd.so.0 => /usr/lib64/libhttpd.so.0 (0x000000387b800000)<br>
> > > libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003eaf600000)<br>
> > > libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003ea6e00000)<br>
> > > libc.so.6 => /lib64/libc.so.6 (0x0000003ea6200000)<br>
> > > /lib64/ld-linux-x86-64.so.2 (0x0000003ea5000000)<br>
> > ><br>
> > ><br>
> > > I get the seg fault whether I install wifidog from packages or compile<br>
> > from<br>
> > > source. Would someone be able to help me out with this? I am not sure<br>
> > where<br>
> > > to look at this point. Are there any known issues with the versions I am<br>
> > > using? I have looked through the FAQs and didn't see anything relevant to<br>
> > > this problem.<br>
> > ><br>
> > > Thanks<br>
> > > Clifford<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>
> ><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>
> ><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>
</div></div><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>