[isf-wifidog] seg fault
acv
acv at miniguru.ca
Lun 28 Juil 14:45:06 EDT 2008
This looks like a bug in util.c:get_iface_ip()
A backtrace would be helpful. To get one ($ = unix shell, gdb> = gdb command
prompt):
$ gdb wifidog
.... load messages ....
gdb> run <you_command_line_arguments here>
.... program output followed by seg fault ....
gdb> bt
.... back trace ....
gdb> exit
If possible, compile without optimization (no -O, -O2 flags on CC
command-line) and debugging symbols (-g on CC command-line) that way we can
get exact source-code line where the crash happens.
Alex
On Mon, Jul 28, 2008 at 02:20:05PM -0400, Clifford Thurber wrote:
>
> I checked out the latest wifidog and wifidog-auth last week and was able to
> configure and compile everything successfuly. However when I start
> wifidog(which is running on the same machine as the auth-server) I get a
> segfault near the end of startup. When I run wifidog in the foreground this
> is what I say before the seg fault:
>
>
> [7][Mon Jul 28 11:10:23 2008](conf.c:389) p1 = [FirewallRule]; p2 = [allow
> tcp port 67]
> [7][Mon Jul 28 11:10:23 2008](conf.c:433) leftover: allow tcp port 67
> [7][Mon Jul 28 11:10:23 2008](conf.c:515) Adding Firewall Rule allow tcp
> port 67 to 0.0.0.0/0
> [7][Mon Jul 28 11:10:23 2008](conf.c:413) Firewall Rule Set unknown-users
> added.
> [7][Mon Jul 28 11:10:23 2008](gateway.c:193) Finding IP address of eth1
> Segmentation fault
>
>
> I see the following in the logs shortly after:
>
>
> Jul 28 11:10:04 wifidog kernel: wifidog[12304]: segfault at 2d8196c8 ip
> 3ea6280eb0 sp 7fff3582bcc8 error 4 in libc-2.8.so[3ea6200000+162000]
> Jul 28 11:10:12 wifidog kernel: wifidog[12307]: segfault at 65a46c8 ip
> 3ea6280eb0 sp 7fff0e5b4a38 error 4 in libc-2.8.so[3ea6200000+162000]
> Jul 28 11:10:23 wifidog kernel: wifidog[12308]: segfault at 342366c8 ip
> 3ea6280eb0 sp 7fff3c2466c8 error 4 in libc-2.8.so[3ea6200000+162000]
>
>
> Below is the related information for hardware/software versions:
>
> gcc --version
> gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
> root at wifidog ~]# uname -a
> Linux wifidog 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1 06:06:21 EDT 2008 x86_64
> x86_64 x86_64 GNU/Linux
>
>
> root at wifidog ~]# ldd /usr/bin/wifidog
> linux-vdso.so.1 => (0x00007fff9d5fe000)
> libhttpd.so.0 => /usr/lib64/libhttpd.so.0 (0x000000387b800000)
> libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003eaf600000)
> libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003ea6e00000)
> libc.so.6 => /lib64/libc.so.6 (0x0000003ea6200000)
> /lib64/ld-linux-x86-64.so.2 (0x0000003ea5000000)
>
>
> I get the seg fault whether I install wifidog from packages or compile from
> source. Would someone be able to help me out with this? I am not sure where
> to look at this point. Are there any known issues with the versions I am
> using? I have looked through the FAQs and didn't see anything relevant to
> this problem.
>
> Thanks
> Clifford
> _______________________________________________
> WiFiDog mailing list
> WiFiDog at listes.ilesansfil.org
> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
-------------- section suivante --------------
Une pièce jointe non texte a été nettoyée...
Nom: non disponible
Type: application/pgp-signature
Taille: 187 octets
Desc: non disponible
Url: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20080728/fdae7beb/attachment.pgp
Plus d'informations sur la liste de diffusion WiFiDog