Need help about Illegal instruction problem

LiGang lixiaogang110217 at hotmail.com
Sat May 8 01:45:38 UTC 2010


I'm trying to implement dhcp client on my ARM board, but it is crashing because of illegal instruction.
1. My host PC is Linux CentOS 4.4
   The kernal in ARM board is Linux 2.6.24.4
   Version of ISC DHCP src is 3.1.3
   Version of crosstool is arm-linux-gcc 3.4.1
2. I can build src successfully without errors.
3. My problem is when i type "./dhclient eth0" on ARM board, illegal instruction problem happened.
  [root at W5300E01-ARM sbin]$ dhcpclient eth0
  Illegal instruction
4. I use gdb to debug and got this traceback:

0x000080d0 in _start ()
(gdb) c
Continuing.

Program received signal SIGILL, Illegal instruction.
0x000a42ec in __setfpucw ()
(gdb) bt
#0  0x000a42ec in __setfpucw ()
#1  0x00094ce4 in init ()
#2  0x00094d38 in __libc_init_first ()
#3  0x0007c540 in __libc_start_main ()
#4  0x000080f8 in _start ()
#5  0x000080f8 in _start ()
I don't know why i couldn't get the actual source line number. i have used command line to build a DEBUG type:
[root at localhost dhcp-3.1.3]# make "CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc -static -DEBUG"

Thanks!
Li Gang
 		 	   		  
_________________________________________________________________
MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
http://kaba.msn.com.cn/?k=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20100508/3db4c769/attachment.html>


More information about the dhcp-users mailing list