- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: Coene Lode <Lode.Coene AT siemens.atea.be>, SCTP Discussion <discussion AT sctp.de>
- Subject: Re: [SCTP-Discussion] segvault
- Date: Thu Sep 19 16:32:00 2002
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University of Essen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lode,
please use the latest release (i.e. pre19) of sctplib. The bug with a
stray timer has been corrected there.
If you try debugging with gdb, it might be worthwile to
compile your programs (and the library) with the "-g" flag and low
optimizations (i.e. -O instead of -O2 or -O3) for gcc.
You can then send the gdb dump output from a "where full"
command. It might be helpful also to post relevant snippets
of the code you used.
Can you reproduce the problems with a SIMPLE example program ?
If not, then the problem is probably not the library.
Regards,
Andreas
On Thursday 19 September 2002 09:33, Coene Lode wrote:
>
I am using the function sctp_getEvents() in a infinite loop
>
and after receiving and processing of data from the remote side, the
>
program does a SIGSEGV mostly in the same memory range. The GDB shows via
>
the where cmd:
>
#0 0xbffff784 in ??()
>
Cannot access memory at address 0x0
>
>
It does the dump after receiving about 2 to 3 data msgs in a few seconds.
>
The Datanotification callback function is correctly executed and then the
>
SIGSEGV occurs.
>
During the many dumps, there was one that was located in SCTP-control.c:192
>
function sci_timer_expired and I noticed that all the input parameters were
>
0.
>
This only occured once and all the other SIGSEGV were outside of SCTP code
>
it seems
>
(at addresses 0xbffff784, 0xbffff46d, 0xbffff49c)
>
>
It looks very weird, maybe has something to do with using the
>
sctp_getEvents() and timers
>
The sctp_eventLoop didn't do that(but now I not using it).
>
>
yours sincerly,
>
Lode Coene
>
>
Siemens atea
>
atealaan 34 2200 Herentals, Belgium
>
E-mail:
>
lode.coene AT siemens.atea.be
>
Tel: +32-14-252081
>
Fax: +32-14-253212
>
_______________________________________________
>
discussion mailing list
>
discussion AT sctp.de
>
http://www.sctp.de/mailman/listinfo/discussion
- --
- ---------------------------------------------------------------------------
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.7 (GNU/Linux)
iD8DBQE9id+dXAsLBNOCSsARAiPfAJ9p8p0BtCtZ9SynwzGuKVOexbkA/wCfeGoq
EHvBgOl0cDI9mdFuuEl/Dx4=
=rLTD
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.