Topic: Bug in 64-bit environment ? (MD5 calc ?)


I`ve previously installed and used chillispot on many 32-bit systems.

I`ve installed a fresh copy of BlueWhite 64 12.2 ,using stock kernel (and all other software is distro clean)

uname -a
Linux eoefwA01 #1 SMP Fri Dec 5 01:27:18 EET 2008 x86_64 Intel(R) Core(TM)2 Quad  CPU   Q8200  @ 2.33GHz GenuineIntel GNU/Linux

root@eoefwA01:~# gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux/4.2.4/specs
Target: x86_64-pc-linux
Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --disable-multilib --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --build=x86_64-pc-linux --target=x86_64-pc-linux --host=x86_64-pc-linux
Thread model: posix
gcc version 4.2.4

I`ve installed remote radius servers (also on same distro) (freeradius 2.1.6) and chillispot 1.1.0 .

I`ve spent hours trying to access to radius servers from machine running chilli but couldn`t. Error was

(Shared secret is incorrect.) Dropping packet without response

Checked secrets manytimes but noway.

downgraded both to 2.1.0 and 1.0.0 , nothing changed.

Keeping my SAME configuration on radius servers, (and running) I`ve installed a native 32-bit Slackware 12.2 on another machine (same hardware).

Everything worked fine, even with old configuration files, without touching to freeradius machines.

Can it be a problem about calculating MD5 or other cryptographic functions on 64-bit systems during first connection with radius ?

Any ideas ?

Thanks ,


Re: Bug in 64-bit environment ? (MD5 calc ?)

We also get the same problem when installing chillispot in 64 bit environment.
My OS is Fedora 10.
Chillispot and radius in same machine.
Linux localhost.localdomain #1 SMP Tue Nov 18 11:58:53 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost chillispot-1.1.0]# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl= --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj- --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)

I could get dhcp successfully, but when trying to login, the chillispot didnt response.
and in the /var/log/messages appears

Sep  1 17:49:17 localhost chillispot[29746]: chilli.c: 3509: New DHCP request from MAC=00-03-0D-C7-D8-D8
Sep  1 17:49:21 localhost chillispot[29746]: chilli.c: 3479: Client MAC=00-03-0D-C7-D8-D8 assigned IP
Sep  1 17:49:25 localhost kernel: chilli[29762]: segfault at ea ip 00000000004143d5 sp 00007fff5ac60d60 error 6 in chilli[400000+28000]
Sep  1 17:49:42 localhost kernel: chilli[29784]: segfault at ea ip 00000000004143d5 sp 00007fff5ac60d60 error 6 in chilli[400000+28000]
i dump in radius.log, no authorization comes from chillispot.
I dump in localhost interface, no radius packet accepted.

I try to add compile option -m64 in Makefile, also failed.
any idea ?