Error in GnuTLS example

Peter Penzov peter.penzov at gmail.com
Thu Mar 1 22:51:24 CET 2012


Hi,
  I'm trying to run the example ex-serv-srp.c I get this error:

[root at localhost test]# ./server
Echo Server ready. Listening to port '5556'.

- connection from 127.0.0.1, port 38141
*** glibc detected *** ./server: double free or corruption (fasttop):
0x095cd5c0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6ea31)[0x89ba31]
/usr/local/lib/libgnutls.so.28(+0x90bd9)[0xdf9bd9]
/usr/local/lib/libgnutls.so.28(+0x9095a)[0xdf995a]
/usr/local/lib/libgnutls.so.28(+0x1e878)[0xd87878]
/usr/local/lib/libgnutls.so.28(+0x1c1a8)[0xd851a8]
/usr/local/lib/libgnutls.so.28(gnutls_handshake+0x47)[0xd85937]
./server[0x8049040]
/lib/libc.so.6(__libc_start_main+0xe6)[0x843ce6]
./server[0x8048c51]
======= Memory map: ========
002ab000-002ac000 r-xp 00000000 00:00 0          [vdso]
00521000-0053f000 r-xp 00000000 fd:00 131042     /lib/ld-2.12.so
0053f000-00540000 r--p 0001d000 fd:00 131042     /lib/ld-2.12.so
00540000-00541000 rw-p 0001e000 fd:00 131042     /lib/ld-2.12.so
005f4000-00640000 r-xp 00000000 fd:00 4823
/usr/lib/sse2/libgmp.so.3.5.0
00640000-00643000 rw-p 0004b000 fd:00 4823
/usr/lib/sse2/libgmp.so.3.5.0
00733000-0074a000 r-xp 00000000 fd:00 131073     /lib/libpthread-2.12.so
0074a000-0074b000 r--p 00016000 fd:00 131073     /lib/libpthread-2.12.so
0074b000-0074c000 rw-p 00017000 fd:00 131073     /lib/libpthread-2.12.so
0074c000-0074e000 rw-p 00000000 00:00 0
0082d000-009b6000 r-xp 00000000 fd:00 131049     /lib/libc-2.12.so
009b6000-009b7000 ---p 00189000 fd:00 131049     /lib/libc-2.12.so
009b7000-009b9000 r--p 00189000 fd:00 131049     /lib/libc-2.12.so
009b9000-009ba000 rw-p 0018b000 fd:00 131049     /lib/libc-2.12.so
009ba000-009bd000 rw-p 00000000 00:00 0
00c47000-00c64000 r-xp 00000000 fd:00 131015
/lib/libgcc_s-4.4.6-20110824.so.1
00c64000-00c65000 rw-p 0001d000 fd:00 131015
/lib/libgcc_s-4.4.6-20110824.so.1
00d69000-00e51000 r-xp 00000000 fd:00 18887
/usr/local/lib/libgnutls.so.28.3.0
00e51000-00e57000 rw-p 000e7000 fd:00 18887
/usr/local/lib/libgnutls.so.28.3.0
00ecc000-00ed3000 r-xp 00000000 fd:00 131077     /lib/librt-2.12.so
00ed3000-00ed4000 r--p 00006000 fd:00 131077     /lib/librt-2.12.so
00ed4000-00ed5000 rw-p 00007000 fd:00 131077     /lib/librt-2.12.so
08048000-0804a000 r-xp 00000000 fd:00 281891     /opt/test/server
0804a000-0804b000 rw-p 00001000 fd:00 281891     /opt/test/server
095c0000-095e1000 rw-p 00000000 00:00 0          [heap]
b77dc000-b77de000 rw-p 00000000 00:00 0
b77e2000-b77e7000 rw-p 00000000 00:00 0
bfa32000-bfa47000 rw-p 00000000 00:00 0          [stack]
Aborted
[root at localhost test]#


Is this a bug?

Best wishes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20120301/6150004f/attachment.htm>


More information about the Gnutls-help mailing list