|
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?????
|