- From: Coene Lode <Lode.Coene AT siemens.atea.be>
- To: 'Andreas Jungmaier' <ajung AT exp-math.uni-essen.de>, "SCTP Discussion (E-mail)" <discussion AT sctp.de>
- Subject: RE: [SCTP-Discussion] segvault
- Date: Fri Sep 20 11:52:00 2002
- List-id: SCTP Discussions <discussion.sctp.de>
Don't look any further. I have found it.
It is a rerun of the same problem.
sctp_receive expects a pointer to a buffer that must be allocated by MY
program.
But I did not have such a buffer.
I just passed the pointer and expected that you allocated a buffer.(which
you don't)
After looking at valgrind output, I realised my error and alloced a buffer
myself and
behold, no protestations from valgrind on that issue and I can receive msg
with lengths
from 5 to 25,10,60,38.....
I relied on the documentation of sctp.h too much. It is nowhere mentioned
or I didn't read enough.
Maybe at least the sctp.h file should mention that...
Thanks you for all the help and suggestions and sorry for bothering you.
Hope you have a nice weekend(well no bugs to search for...)
yours sincerly,
Lode
Siemens atea
atealaan 34 2200 Herentals, Belgium
E-mail:
lode.coene AT siemens.atea.be
Tel: +32-14-252081
Fax: +32-14-253212
>
One more thing:
>
>
if you run Linux, and if performance is not absolutely
>
necessary, you might want to try to run valgrind.
>
(please see http://developer.kde.org/~sewardj/ )
>
>
As for memory problems, it is absolutely cool, i.e.
>
the *best* thing I have found so far.
>
>
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
>
--------------------------------------------------------------
>
-------------
>
Archive powered by MHonArc 2.6.19+.