- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: discussion AT sctp.de
- Subject: Re: [SCTP-Discussion] Problems facing in multithreading.
- Date: Thu Jul 11 12:07:01 2002
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University of Essen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Donnerstag, 11. Juli 2002 05:52 schrieb Jose, Tinku Malayil:
>
Hi,
>
>
We are using the sctplib (sctplib-1.0.0-pre16) for
>
a multithreaded application. The sctpsend is in one thread
>
whereas the callbacks are in another thread. binary is core dumping
>
randomly because of some synchronization problem (we suspect).
>
>
From the code we understood that it is because of the use of some
>
global variables (currentAssociation in distribution.c).
>
we tried putting locks in send and receive
>
but now we are facing core dump in timer compare. we feel that this is
>
also because of the same reason.
>
>
did anyone face this problem before, then please let us know how
>
u solved it. or is it because of improper usage of the library.
>
Hi,
I have just a few general remarks:
- - pre16 is a very old version
- - Thomas's socket api library also makes heavy use of multithreading,
apparently without many problems. Maybe you can have a look into
that.
- - sctplib was never written to be tread-safe, and I do not know what
it would take to make it that way.
- - we can only release bug-fixes for the current versions
Regards,
Andreas
- --
- ---------------------------------------------------------------------------
Dipl.-Ing. Andreas Jungmaier | Stop sending E-POSTCARDS !
Computer Networking Technology Group | Send E-MAILS -- Use PGP !
University of Essen |
http://www.exp-math.uni-essen.de/~ajung |
http://www.gnupg.org
My PGP Key-ID: D3824AC0 |
http://wwwkeys.pgp.net
- ---------------------------------------------------------------------------
My PGP Key-Fingerprint: 228C 7C2C 3381 2DD4 9998 2812 5C0B 0B04 D382 4AC0
- ---------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see
http://www.gnupg.org
iD8DBQE9LXRWXAsLBNOCSsARArzAAKD1pADsuLjNSCDV/evEs54K6nKyKQCgq5AE
axt6Q1VqR9dGpScOnvxLN2o=
=PtDI
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.