Hi!
I have program that launch 4 threads, each thread open a SCTP connection to another PC. And a weird bug present (actually is a segmentation fault). Here is some code;
sctpInstance = SCTP_registerInstance(cp->sourcePort, inputStreams, outputStreams, noOfLocalAddresses, localAddressList, LLServerEchoUlp);
//sleep(5);
SCTP_associate(sctpInstance, outputStreams, destinationAddress, cp->destPort, clientParamIndex);
If I don't put the "sleep", everyhing works good. But ...
If I put the "sleep" for 10 seconds (on each thread) I get a core dump:
(gdb) down
#0 0xb7ef8c82 in scu_associate (noOfOutStreams=1, noOfInStreams=1, destinationList=0x1, numDestAddresses=1, withPRSCTP=1) at SCTP- control.c:399
(gdb) Quit
(gdb) Quit
(gdb)
Does anyone has an idea why this happens? I'm working with version 1.0.3. Ths bug if fixed on 1.0.4 ?
Regards,
Julio
--
--
Stewie: [After Lois tries to feed Stewie his broccoli "airplane style"] Damn you, Damn the Broccoli, and Damn the Wright Brothers.
----------------------------
Julio Kriger
mailto:
juliokriger AT gmail.com
Archive powered by MHonArc 2.6.19+.