DTLS Server
Don Sullivan
donald.v.sullivan at nasa.gov
Tue Nov 20 02:44:41 CET 2012
On 10/27/12 6:41 PM, Nikos Mavrogiannopoulos wrote:
> On 10/24/2012 03:49 AM, Don Sullivan wrote:
>
>
>> Build of the DTLS server is disabled in both gnutls-3.0.25 and gnutls-3.1.3.
>> Why ?
>
>
> Hello,
> I do not understand what do you mean by disabled. As it is currently
> DTLS cannot be disabled. Could you be more specific?
>
>> When I try to build it, ex-client-dtls segfaults on the handshake (both versions)
>> Suggestions ?
>
>
> Could you try valgrind on this example?
>
> regards,
> Nikos
>
My apologies.
Building of doc/examples/ex-serv-dtls is NOT enabled by default.
When I build it, and test it with ex-client-dtls, ex-client-dtls segfaults on the handshake.
Output with valgrind attached.
(gnutls-3.0.25, OS X, Darwin Kernel Version 10.8.0)
Thank You !
Don
--
---------------------------------------------
Don Sullivan
NASA Ames Research Center
Bldg N245, Rm 131a/MS 245-4
P.O. Box 1
Moffett Field, CA 94035-0001
Office: +1 650 604 0526
Mobile: +1 650 714 9742
Line2: +1 831 621 5023
email: donald.v.sullivan at nasa.gov
OR: yes_its_don at mac.com
---------------------------------------------
- Sic gorgiamus allos subjectatos nunc
"Scientists seek to understand what is, engineers seek to create what never was."
- Theodore Karman
-------------- next part --------------
valgrind --leak-check=yes ./ex-client-dtls
==98398== Memcheck, a memory error detector
==98398== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==98398== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==98398== Command: ./ex-client-dtls
==98398==
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
==98401==
==98401== HEAP SUMMARY:
==98401== in use at exit: 114,453 bytes in 503 blocks
==98401== total heap usage: 720 allocs, 217 frees, 142,728 bytes allocated
==98401==
==98401== 24 bytes in 1 blocks are definitely lost in loss record 132 of 300
==98401== at 0x52C6: malloc (vg_replace_malloc.c:274)
==98401== by 0x10003D1C4: ??? (in /bin/sh)
==98401== by 0x10000FC31: ??? (in /bin/sh)
==98401== by 0x1000413A2: ??? (in /bin/sh)
==98401== by 0x1000254E4: ??? (in /bin/sh)
==98401== by 0x1000292D1: ??? (in /bin/sh)
==98401== by 0x10002A71D: ??? (in /bin/sh)
==98401== by 0x10002A7AA: ??? (in /bin/sh)
==98401== by 0x1000103E3: ??? (in /bin/sh)
==98401== by 0x100012A2A: ??? (in /bin/sh)
==98401== by 0x10001069E: ??? (in /bin/sh)
==98401== by 0x100012A2A: ??? (in /bin/sh)
==98401==
==98401== LEAK SUMMARY:
==98401== definitely lost: 24 bytes in 1 blocks
==98401== indirectly lost: 0 bytes in 0 blocks
==98401== possibly lost: 0 bytes in 0 blocks
==98401== still reachable: 114,341 bytes in 501 blocks
==98401== suppressed: 88 bytes in 1 blocks
==98401== Reachable blocks (those to which a pointer was found) are not shown.
==98401== To see them, rerun with: --leak-check=full --show-reachable=yes
==98401==
==98401== For counts of detected and suppressed errors, rerun with: -v
==98401== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==98400==
==98400== HEAP SUMMARY:
==98400== in use at exit: 113,743 bytes in 482 blocks
==98400== total heap usage: 687 allocs, 205 frees, 140,935 bytes allocated
==98400==
==98400== LEAK SUMMARY:
==98400== definitely lost: 0 bytes in 0 blocks
==98400== indirectly lost: 0 bytes in 0 blocks
==98400== possibly lost: 0 bytes in 0 blocks
==98400== still reachable: 113,655 bytes in 481 blocks
==98400== suppressed: 88 bytes in 1 blocks
==98400== Reachable blocks (those to which a pointer was found) are not shown.
==98400== To see them, rerun with: --leak-check=full --show-reachable=yes
==98400==
==98400== For counts of detected and suppressed errors, rerun with: -v
==98400== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==98402==
==98402== HEAP SUMMARY:
==98402== in use at exit: 113,075 bytes in 459 blocks
==98402== total heap usage: 945 allocs, 486 frees, 209,295 bytes allocated
==98402==
==98402== 34 bytes in 1 blocks are definitely lost in loss record 199 of 272
==98402== at 0x52C6: malloc (vg_replace_malloc.c:274)
==98402== by 0x10003D1C4: ??? (in /bin/sh)
==98402== by 0x10000FC31: ??? (in /bin/sh)
==98402== by 0x100012A2A: ??? (in /bin/sh)
==98402== by 0x100013990: ??? (in /bin/sh)
==98402== by 0x100010723: ??? (in /bin/sh)
==98402== by 0x100012A2A: ??? (in /bin/sh)
==98402== by 0x100003336: ??? (in /bin/sh)
==98402== by 0x100002EF0: ??? (in /bin/sh)
==98402== by 0x100000D57: ??? (in /bin/sh)
==98402== by 0x1: ???
==98402== by 0x7FFF5FBFFB2A: ???
==98402==
==98402== LEAK SUMMARY:
==98402== definitely lost: 34 bytes in 1 blocks
==98402== indirectly lost: 0 bytes in 0 blocks
==98402== possibly lost: 0 bytes in 0 blocks
==98402== still reachable: 112,953 bytes in 457 blocks
==98402== suppressed: 88 bytes in 1 blocks
==98402== Reachable blocks (those to which a pointer was found) are not shown.
==98402== To see them, rerun with: --leak-check=full --show-reachable=yes
==98402==
==98402== For counts of detected and suppressed errors, rerun with: -v
==98402== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
==98404==
==98404== HEAP SUMMARY:
==98404== in use at exit: 144,379 bytes in 1,700 blocks
==98404== total heap usage: 4,073 allocs, 2,373 frees, 318,516 bytes allocated
==98404==
==98404== 14 bytes in 1 blocks are definitely lost in loss record 105 of 575
==98404== at 0x52C6: malloc (vg_replace_malloc.c:274)
==98404== by 0x10003D1C4: ??? (in /bin/sh)
==98404== by 0x1000114D7: ??? (in /bin/sh)
==98404== by 0x10000FFC6: ??? (in /bin/sh)
==98404== by 0x1000138C2: ??? (in /bin/sh)
==98404== by 0x100010723: ??? (in /bin/sh)
==98404== by 0x1000413A2: ??? (in /bin/sh)
==98404== by 0x1000254E4: ??? (in /bin/sh)
==98404== by 0x1000292D1: ??? (in /bin/sh)
==98404== by 0x10002A71D: ??? (in /bin/sh)
==98404== by 0x10002AAB0: ??? (in /bin/sh)
==98404== by 0x100025903: ??? (in /bin/sh)
==98404==
==98404== LEAK SUMMARY:
==98404== definitely lost: 14 bytes in 1 blocks
==98404== indirectly lost: 0 bytes in 0 blocks
==98404== possibly lost: 0 bytes in 0 blocks
==98404== still reachable: 144,277 bytes in 1,698 blocks
==98404== suppressed: 88 bytes in 1 blocks
==98404== Reachable blocks (those to which a pointer was found) are not shown.
==98404== To see them, rerun with: --leak-check=full --show-reachable=yes
==98404==
==98404== For counts of detected and suppressed errors, rerun with: -v
==98404== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==98403==
==98403== HEAP SUMMARY:
==98403== in use at exit: 143,307 bytes in 1,666 blocks
==98403== total heap usage: 4,061 allocs, 2,395 frees, 317,987 bytes allocated
==98403==
==98403== LEAK SUMMARY:
==98403== definitely lost: 0 bytes in 0 blocks
==98403== indirectly lost: 0 bytes in 0 blocks
==98403== possibly lost: 0 bytes in 0 blocks
==98403== still reachable: 143,219 bytes in 1,665 blocks
==98403== suppressed: 88 bytes in 1 blocks
==98403== Reachable blocks (those to which a pointer was found) are not shown.
==98403== To see them, rerun with: --leak-check=full --show-reachable=yes
==98403==
==98403== For counts of detected and suppressed errors, rerun with: -v
==98403== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
==98406==
==98406== HEAP SUMMARY:
==98406== in use at exit: 143,221 bytes in 1,665 blocks
==98406== total heap usage: 4,131 allocs, 2,466 frees, 319,950 bytes allocated
==98406==
==98406== LEAK SUMMARY:
==98406== definitely lost: 0 bytes in 0 blocks
==98406== indirectly lost: 0 bytes in 0 blocks
==98406== possibly lost: 0 bytes in 0 blocks
==98406== still reachable: 143,133 bytes in 1,664 blocks
==98406== suppressed: 88 bytes in 1 blocks
==98406== Reachable blocks (those to which a pointer was found) are not shown.
==98406== To see them, rerun with: --leak-check=full --show-reachable=yes
==98406==
==98406== For counts of detected and suppressed errors, rerun with: -v
==98406== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
==98409==
==98409== HEAP SUMMARY:
==98409== in use at exit: 142,718 bytes in 1,648 blocks
==98409== total heap usage: 4,257 allocs, 2,609 frees, 323,093 bytes allocated
==98409==
==98409== LEAK SUMMARY:
==98409== definitely lost: 0 bytes in 0 blocks
==98409== indirectly lost: 0 bytes in 0 blocks
==98409== possibly lost: 0 bytes in 0 blocks
==98409== still reachable: 142,630 bytes in 1,647 blocks
==98409== suppressed: 88 bytes in 1 blocks
==98409== Reachable blocks (those to which a pointer was found) are not shown.
==98409== To see them, rerun with: --leak-check=full --show-reachable=yes
==98409==
==98409== For counts of detected and suppressed errors, rerun with: -v
==98409== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
==98411==
==98411== HEAP SUMMARY:
==98411== in use at exit: 144,631 bytes in 1,702 blocks
==98411== total heap usage: 4,506 allocs, 2,804 frees, 335,125 bytes allocated
==98411==
==98411== 27 bytes in 1 blocks are definitely lost in loss record 221 of 578
==98411== at 0x52C6: malloc (vg_replace_malloc.c:274)
==98411== by 0x10003D1C4: ??? (in /bin/sh)
==98411== by 0x1000114D7: ??? (in /bin/sh)
==98411== by 0x10000FFC6: ??? (in /bin/sh)
==98411== by 0x1000138C2: ??? (in /bin/sh)
==98411== by 0x100010723: ??? (in /bin/sh)
==98411== by 0x1000413A2: ??? (in /bin/sh)
==98411== by 0x1000254E4: ??? (in /bin/sh)
==98411== by 0x1000292D1: ??? (in /bin/sh)
==98411== by 0x10002A71D: ??? (in /bin/sh)
==98411== by 0x10002AAB0: ??? (in /bin/sh)
==98411== by 0x100025903: ??? (in /bin/sh)
==98411==
==98411== LEAK SUMMARY:
==98411== definitely lost: 27 bytes in 1 blocks
==98411== indirectly lost: 0 bytes in 0 blocks
==98411== possibly lost: 0 bytes in 0 blocks
==98411== still reachable: 144,516 bytes in 1,700 blocks
==98411== suppressed: 88 bytes in 1 blocks
==98411== Reachable blocks (those to which a pointer was found) are not shown.
==98411== To see them, rerun with: --leak-check=full --show-reachable=yes
==98411==
==98411== For counts of detected and suppressed errors, rerun with: -v
==98411== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==98410==
==98410== HEAP SUMMARY:
==98410== in use at exit: 143,466 bytes in 1,668 blocks
==98410== total heap usage: 4,492 allocs, 2,824 frees, 333,775 bytes allocated
==98410==
==98410== LEAK SUMMARY:
==98410== definitely lost: 0 bytes in 0 blocks
==98410== indirectly lost: 0 bytes in 0 blocks
==98410== possibly lost: 0 bytes in 0 blocks
==98410== still reachable: 143,378 bytes in 1,667 blocks
==98410== suppressed: 88 bytes in 1 blocks
==98410== Reachable blocks (those to which a pointer was found) are not shown.
==98410== To see them, rerun with: --leak-check=full --show-reachable=yes
==98410==
==98410== For counts of detected and suppressed errors, rerun with: -v
==98410== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
--98398:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
zsh: segmentation fault valgrind --leak-check=yes ./ex-client-dtls
-------------- next part --------------
A non-text attachment was scrubbed...
Name: donald_v_sullivan.vcf
Type: text/x-vcard
Size: 325 bytes
Desc: not available
URL: </pipermail/attachments/20121119/b5cdd042/attachment.vcf>
More information about the Gnutls-devel
mailing list