Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
[Dailydave] spike bug?
From: Avri (avri.schneidergmail.com)
Date: Tue Aug 09 2005 - 14:52:12 CDT
I found that adding these two lines:
in the beginning of s_fd_wait() (right after fd=current_spike->fd;)
fixes this segfault problem:
Program received signal SIGSEGV, Segmentation fault.
0x0804e78b in s_fd_wait () at spike.c:1510
1510 FD_SET(fd, &rfds);
#0 0x0804e78b in s_fd_wait () at spike.c:1510
#1 0x0804e63e in s_fd_clear () at spike.c:1440
#2 0x0804e3bb in spike_close_tcp () at spike.c:1312
#3 0x0804b20e in main (argc=6, argv=0xbf99c094) at generic_send_tcp.c:152
Notice that spike_close_tcp() does this: current_spike->fd=-1;
and then in s_fd_wait() it tries to write to this fd...
I searched for "spike segmentation fault" in google and found this:
I beleive he had the same problem...
Dailydave mailing list