|
From: Peter M. L. <pe...@le...> - 2001-06-06 17:05:51
|
Hello everyone,
I've been working on adding support for the TCP part of ICQLib to my client.
(Most notably, File transfers. :-) However I keep getting Segmentation
faults whenever any of the TCP stuff gets used. From sending direct
messages, to just receiving a file transfer request (and immediately
refusing it).
In the screenshot below I've tried to send a file from a windows client
(99b) to my client. It accepts the tcp connection and receives the file
request. Internally the file request is refused and the refusal message is
displayed properly by the windows client, so that works. However, about a
minute later, icqlib says it receives an unknown packet command '2050', and
again one minute later the client crashes on a segmentation fault.
(Note, there's two sets of Keepalive debug messages in there that are
unrelated I think, each from Timeout updated to Timeout stopped.)
Changing debug level to 10.
18:31:00 Debug[4] Icqlib: accepting tcp connection from 192.168.1.17:1160
18:31:01 Debug[4] Icqlib: hello packet received from 119893112 { version=6 }
18:31:01 rghost Received File Request.
Filename : ALInvCont.wav
Description: Testing, 1, 2, 3.
18:31:23 Debug[3] Timeout updated, Now() + 15.
18:31:23 Debug[4] Icqlib: Send Keep Alive packet to the server
18:31:23 Debug[2] Sending Keepalive.
18:31:23 Debug[4] Icqlib: The server acknowledged the command
18:31:23 Debug[2] Server Acknowledged sequence 20650.
18:31:23 Debug[3] Timeout stopped on -1.
18:31:50 Debug[3] Icqlib: unknown packet command 2050!
18:32:23 Debug[3] Timeout updated, Now() + 15.
18:32:23 Debug[4] Icqlib: Send Keep Alive packet to the server
18:32:23 Debug[2] Sending Keepalive.
18:32:23 Debug[4] Icqlib: The server acknowledged the command
18:32:23 Debug[2] Server Acknowledged sequence 20651.
18:32:23 Debug[3] Timeout stopped on -1.
18:32:54 Awaiting user Command ============================ Onl ==
000 ==
./rt: line 3: 29112 Segmentation fault ./picq ~/.picqrc-rts1 2>>rt.out
peter@ghost:~/dev/picq/current$
The same thing happens when I try to send a Message or Url direct, or
anything else related to TCP happens. The icq_TCPMain handler is called
about 4 times per second from within the main loop and I don't think I do
anything particularly weird with it.
Is there, apart from calling icq_TCPMain and registering the callbacks,
anything that needs to be done to initialize TCP handling properly?
Regards,
Peter.
------------------------------------------------------------
Peter M. Lemmen Peter's ICQ Client
www.outreach.nl www.outreach.nl/picq
pe...@le... pi...@ou...
------------------------------------------------------------
|