Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> "Illegal instruction" after socket() call
ivokabel
Posted: Feb 16 2005, 11:25 AM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 816
Joined: 16-February 05



Hi folks.
After calling socket() function in my program an "Illegal instruction" error occurs (SIGILL posted). Don't you know how it can happens?
I've made some simple programs with socket() function on the same machine and they run without any problem. I've tried to debug my prog. and it falls on first instruction of socket()... No optimization used. I use Linux 2.4.28-6up (i686 Pentium III).
I've wasted day and a half and haven't done anything that can help. Can you help me.
Thanx to all
PMEmail Poster
Top
ivokabel
Posted: Feb 16 2005, 01:59 PM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 816
Joined: 16-February 05



I'm such an idiot...
I have got global variable named "socket" in another module... due to this there was no conflict during compilation and linking...
...such an idiot
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Programming/Languages | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0653 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: Server Room Temperature Monitor :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum