> Do you see DPD timeouts or reconnections in the client side log? > > I saw a similar issue on mobile devices and have been testing this fix: > > https://github.com/cernekee/openconnect/commit/395fd9fe5bc0c72966a42b451c5f3 7dc2c647adf > > There was some debate earlier about whether re-establishing the CSTP > connection with an ASA causes the DTLS parameters to change. I've > been meaning to run some more experiments to see what's happening. > > The problem is not solved And ^Cocserv[4660]: [main] main.c:417: ocserv-secmod died unexpectedly ocserv[4660]: [main] main.c:440: Child 4661 died with signal 2 *** Error in `src/ocserv': munmap_chunk(): invalid pointer: 0x0806c2dc *** ======= Backtrace: ========= /lib/libc.so.6(+0x6e2f3)[0xb73db2f3] /lib/libc.so.6(+0x74b24)[0xb73e1b24] /lib/libc.so.6(+0x17e8a)[0xb7384e8a] src/ocserv[0x805f6fc] src/ocserv[0x804dc85] /lib/libc.so.6(__libc_start_main+0xf3)[0xb7386b73] src/ocserv[0x804dea5] ======= Memory map: ======== 08048000-08074000 r-xp 00000000 08:03 2105672 /root/ocserv/src/ocserv 08074000-08075000 r--p 0002b000 08:03 2105672 /root/ocserv/src/ocserv 08075000-08076000 rw-p 0002c000 08:03 2105672 /root/ocserv/src/ocserv 0921e000-0928b000 rw-p 00000000 00:00 0 [heap] b6fb1000-b6fbc000 r-xp 00000000 08:03 2228907 /usr/lib/libnss_files- 2.18.so b6fbc000-b6fbd000 r--p 0000a000 08:03 2228907 /usr/lib/libnss_files- 2.18.so b6fbd000-b6fbe000 rw-p 0000b000 08:03 2228907 /usr/lib/libnss_files- 2.18.so b7006000-b7009000 rw-p 00000000 00:00 0 b7009000-b700e000 r-xp 00000000 08:03 2231152 /usr/lib/libffi.so.6.0.1 b700e000-b700f000 r--p 00005000 08:03 2231152 /usr/lib/libffi.so.6.0.1 b700f000-b7010000 rw-p 00006000 08:03 2231152 /usr/lib/libffi.so.6.0.1 b7010000-b7017000 r-xp 00000000 08:03 2229011 /usr/lib/librt-2.18.so b7017000-b7018000 r--p 00006000 08:03 2229011 /usr/lib/librt-2.18.so b7018000-b7019000 rw-p 00007000 08:03 2229011 /usr/lib/librt-2.18.so b7019000-b701a000 rw-p 00000000 00:00 0 b701a000-b7031000 r-xp 00000000 08:03 2228911 /usr/lib/libpthread-2.18.so b7031000-b7032000 r--p 00016000 08:03 2228911 /usr/lib/libpthread-2.18.so b7032000-b7033000 rw-p 00017000 08:03 2228911 /usr/lib/libpthread-2.18.so b7033000-b7035000 rw-p 00000000 00:00 0 b7035000-b7050000 r-xp 00000000 08:03 2230341 /usr/lib/libgcc_s-4.8.2- 20131212.so.1 b7050000-b7051000 r--p 0001a000 08:03 2230341 /usr/lib/libgcc_s-4.8.2- 20131212.so.1 b7051000-b7052000 rw-p 0001b000 08:03 2230341 /usr/lib/libgcc_s-4.8.2- 20131212.so.1 b7052000-b7097000 r-xp 00000000 08:03 2228533 /usr/lib/libm-2.18.so b7097000-b7098000 r--p 00044000 08:03 2228533 /usr/lib/libm-2.18.so b7098000-b7099000 rw-p 00045000 08:03 2228533 /usr/lib/libm-2.18.so b7099000-b7179000 r-xp 00000000 08:03 2229069 /usr/lib/libstdc++.so.6.0.19 b7179000-b717d000 r--p 000e0000 08:03 2229069 /usr/lib/libstdc++.so.6.0.19 b717d000-b717e000 rw-p 000e4000 08:03 2229069 /usr/lib/libstdc++.so.6.0.19 b717e000-b7185000 rw-p 00000000 00:00 0 b7185000-b71e9000 r-xp 00000000 08:03 2231172 /usr/lib/libfreebl3.so b71e9000-b71ea000 r--p 00063000 08:03 2231172 /usr/lib/libfreebl3.so b71ea000-b71eb000 rw-p 00064000 08:03 2231172 /usr/lib/libfreebl3.so b71eb000-b71f0000 rw-p 00000000 00:00 0 b71f0000-b7206000 r-xp 00000000 08:03 2228843 /usr/lib/libnsl-2.18.so b7206000-b7207000 r--p 00015000 08:03 2228843 /usr/lib/libnsl-2.18.so b7207000-b7208000 rw-p 00016000 08:03 2228843 /usr/lib/libnsl-2.18.so b7208000-b720a000 rw-p 00000000 00:00 0 b720a000-b720d000 r-xp 00000000 08:03 2228510 /usr/lib/libdl-2.18.so b720d000-b720e000 r--p 00002000 08:03 2228510 /usr/lib/libdl-2.18.so b720e000-b720f000 rw-p 00003000 08:03 2228510 /usr/lib/libdl-2.18.so b720f000-b7229000 r-xp 00000000 08:03 2228438 /usr/lib/libaudit.so.1.0.0 b7229000-b722a000 r--p 00019000 08:03 2228438 /usr/lib/libaudit.so.1.0.0 b722a000-b722b000 rw-p 0001a000 08:03 2228438 /usr/lib/libaudit.so.1.0.0 b722b000-b7235000 rw-p 00000000 00:00 0 b7235000-b729c000 r-xp 00000000 08:03 2238610 /usr/lib/sse2/libgmp.so.10.1.2 b729c000-b729d000 r--p 00066000 08:03 2238610 /usr/lib/sse2/libgmp.so.10.1.2 b729d000-b72a4000 rw-p 00067000 08:03 2238610 /usr/lib/sse2/libgmp.so.10.1.2 b72a4000-b72d0000 r-xp 00000000 08:03 2230387 /usr/lib/libhogweed.so.2.5 b72d0000-b72d1000 r--p 0002b000 08:03 2230387 /usr/lib/libhogweed.so.2.5 b72d1000-b72d2000 rw-p 0002c000 08:03 2230387 /usr/lib/libhogweed.so.2.5 b72d2000-b72d3000 rw-p 00000000 00:00 0 b72d3000-b7303000 r-xp 00000000 08:03 2230930 /usr/lib/libnettle.so.4.7 b7303000-b7304000 r--p 00030000 08:03 2230930 /usr/lib/libnettle.so.4.7 b7304000-b7305000 rw-p 00031000 08:03 2230930 /usr/lib/libnettle.so.4.7 b7305000-b7317000 r-xp 00000000 08:03 2231695 /usr/lib/libtasn1.so.6.1.1 b7317000-b7318000 r--p 00011000 08:03 2231695 /usr/lib/libtasn1.so.6.1.1 b7318000-b7319000 rw-p 00012000 08:03 2231695 /usr/lib/libtasn1.so.6.1.1 b7319000-b7352000 r-xp 00000000 08:03 2228930 /usr/lib/libp11- kit.so.0.0.0 b7352000-b7355000 r--p 00039000 08:03 2228930 /usr/lib/libp11- kit.so.0.0.0 b7355000-b7356000 rw-p 0003c000 08:03 2228930 /usr/lib/libp11- kit.so.0.0.0 b7356000-b736b000 r-xp 00000000 08:03 2231820 /usr/lib/libz.so.1.2.8 b736b000-b736c000 r--p 00014000 08:03 2231820 /usr/lib/libz.so.1.2.8 b736c000-b736d000 rw-p 00015000 08:03 2231820 /usr/lib/libz.so.1.2.8 b736d000-b7525000 r-xp 00000000 08:03 2228420 /usr/lib/libc-2.18.so b7525000-b7527000 r--p 001b8000 08:03 2228420 /usr/lib/libc-2.18.so b7527000-b7528000 rw-p 001ba000 08:03 2228420 /usr/lib/libc-2.18.so b7528000-b752b000 rw-p 00000000 00:00 0 b752b000-b752d000 r-xp 00000000 08:03 2234424 /usr/lib/libpcl.so.1.0.11 b752d000-b752e000 r--p 00001000 08:03 2234424 /usr/lib/libpcl.so.1.0.11 b752e000-b752f000 rw-p 00002000 08:03 2234424 /usr/lib/libpcl.so.1.0.11 b752f000-b7531000 rw-p 00000000 00:00 0 b7531000-b757c000 r-xp 00000000 08:03 2228519 /usr/lib/libdbus-1.so.3.7.4 b757c000-b757d000 r--p 0004a000 08:03 2228519 /usr/lib/libdbus-1.so.3.7.4 b757d000-b757e000 rw-p 0004b000 08:03 2228519 /usr/lib/libdbus-1.so.3.7.4 b757e000-b758d000 r-xp 00000000 08:03 2239778 /usr/lib/libprotobuf- c.so.0.0.0 b758d000-b758e000 r--p 0000f000 08:03 2239778 /usr/lib/libprotobuf- c.so.0.0.0 b758e000-b758f000 rw-p 00010000 08:03 2239778 /usr/lib/libprotobuf- c.so.0.0.0 b758f000-b7593000 r-xp 00000000 08:03 2234426 /usr/lib/libhttp_parser.so.2.0 b7593000-b7594000 r--p 00003000 08:03 2234426 /usr/lib/libhttp_parser.so.2.0 b7594000-b7595000 rw-p 00004000 08:03 2234426 /usr/lib/libhttp_parser.so.2.0 b7595000-b759c000 r-xp 00000000 08:03 2228488 /usr/lib/libcrypt-2.18.so b759c000-b759d000 r--p 00006000 08:03 2228488 /usr/lib/libcrypt-2.18.so b759d000-b759e000 rw-p 00007000 08:03 2228488 /usr/lib/libcrypt-2.18.so b759e000-b75c5000 rw-p 00000000 00:00 0 b75c5000-b75cd000 r-xp 00000000 08:03 2231775 /usr/lib/libwrap.so.0.7.6 b75cd000-b75ce000 r--p 00007000 08:03 2231775 /usr/lib/libwrap.so.0.7.6 b75ce000-b75cf000 rw-p 00008000 08:03 2231775 /usr/lib/libwrap.so.0.7.6 b75cf000-b75d0000 rw-p 00000000 00:00 0 b75d0000-b75d2000 r-xp 00000000 08:03 2229093 /usr/lib/libutil-2.18.so b75d2000-b75d3000 r--p 00001000 08:03 2229093 /usr/lib/libutil-2.18.so b75d3000-b75d4000 rw-p 00002000 08:03 2229093 /usr/lib/libutil-2.18.so b75d4000-b75e1000 r-xp 00000000 08:03 2231529 /usr/lib/libpam.so.0.83.1 b75e1000-b75e2000 r--p 0000c000 08:03 2231529 /usr/lib/libpam.so.0.83.1 b75e2000-b75e3000 rw-p 0000d000 08:03 2231529 /usr/lib/libpam.so.0.83.1 b75e3000-b76ee000 r-xp 00000000 08:03 2240195 /usr/lib/libgnutls.so.28.30.0 b76ee000-b76f4000 r--p 0010a000 08:03 2240195 /usr/lib/libgnutls.so.28.30.0 b76f4000-b76f6000 rw-p 00110000 08:03 2240195 /usr/lib/libgnutls.so.28.30.0 b76f6000-b7714000 r-xp 00000000 08:03 2234245 /usr/lib/libopts.so.25.15.0 b7714000-b7715000 r--p 0001d000 08:03 2234245 /usr/lib/libopts.so.25.15.0 b7715000-b7716000 rw-p 0001e000 08:03 2234245 /usr/lib/libopts.so.25.15.0 b772d000-b772f000 rw-p 00000000 00:00 0 b772f000-b774e000 r-xp 00000000 08:03 2234412 /usr/lib/ld-2.18.so b774e000-b774f000 r-xp 00000000 00:00 0 [vdso] b774f000-b7750000 r--p 0001f000 08:03 2234412 /usr/lib/ld-2.18.so b7750000-b7751000 rw-p 00020000 08:03 2234412 /usr/lib/ld-2.18.so bfcac000-bfccd000 rw-p 00000000 00:00 0 [stack] Aborted (core dumped) Thanks Alex