The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-10-2009
lameduck0123 lameduck0123 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
recvfrom() causes segmentation fault

hi all....
i wrote a program with udp sockets..
when it reaches the function 'recvfrom()' it crashes with a core dump.
the gdb trace says the following error msg...

Core was generated by `/opt/fmp'.
Program terminated with signal 6, Aborted.
#0 0x00000055555b18e4 in recvfrom () from /lib64/libpthread.so.0
(gdb) c
The program is not being run.
(gdb) bt
#0 0x00000055555b18e4 in recvfrom () from /lib64/libpthread.so.0
#1 0x00000001200054fc in ParseExecuteCommand (sock=6) at ../src/command_mgmt.c:92
#2 0x0000000120004f30 in main (argc=1, argv=0xffffd685f8) at ../src/main.c:586

can anybody tell me when 'recvfrom()' can cause segmenation fault?????