You are not logged in.

#1 2017-04-26 06:32:25

blux
Member
Registered: 2012-08-17
Posts: 15

Latest update crashes vpnc

I updated my system yesterday, now vpnc crashes:

Apr 26 08:26:24 zyx network[702]: /usr/lib/network/connections/vpnc: line 1:   706 Aborted                 (core dumped) /usr/bin/vpnc $VpncFlags "$VpncConfig"
Apr 26 08:26:24 zyx network[702]: Establishing vpnc connection failed.
Apr 26 08:26:24 zyx network[702]: Failed to bring the network up for profile 'xyz'
Apr 26 08:26:24 zyx systemd[1]: netctl@xyz.service: Main process exited, code=exited, status=1/FAILURE
Apr 26 08:26:24 zyx systemd[1]: Failed to start Networking for netctl profile xyz.
-- Subject: Unit netctl@xyz.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@xyz.service has failed.
--
-- The result is failed.
Apr 26 08:26:24 zyx systemd[1]: netctl@xyz.service: Unit entered failed state.
Apr 26 08:26:24 zyx systemd[1]: netctl@xyz.service: Failed with result 'exit-code'.
Apr 26 08:26:24 zyx systemd[1]: Reached target Network.
-- Subject: Unit network.target has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit network.target has finished starting up.
--
-- The start-up result is done.
Apr 26 08:26:24 zyx polkitd[654]: Unregistered Authentication Agent for unix-process:696:2084 (system bus name :1.33, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale
Apr 26 08:26:24 zyx systemd-coredump[803]: Process 706 (vpnc) of user 0 dumped core.

                                              Stack trace of thread 706:
                                              #0  0x00007f124dd19a10 raise (libc.so.6)
                                              #1  0x00007f124dd1b13a abort (libc.so.6)
                                              #2  0x00007f124dd12607 __assert_fail_base (libc.so.6)
                                              #3  0x00007f124dd126b2 __assert_fail (libc.so.6)
                                              #4  0x000000000040e48c n/a (vpnc)
                                              #5  0x0000000000412348 n/a (vpnc)
                                              #6  0x0000000000404f72 n/a (vpnc)
                                              #7  0x00007f124dd06511 __libc_start_main (libc.so.6)
                                              #8  0x000000000040596a n/a (vpnc)

Anybody have an idea what is going on? I reinstalled vpnc and did another system update, both without success.

Offline

#2 2017-04-26 06:55:21

blux
Member
Registered: 2012-08-17
Posts: 15

Re: Latest update crashes vpnc

I built from source and made the following change to fix the crash, which was apparently an assert.

Index: vpnc.c
===================================================================
--- vpnc.c      (revision 550)
+++ vpnc.c      (working copy)
@@ -1203,7 +1203,7 @@
        assert(a->af == isakmp_attr_16);
        assert(a->u.attr_16 == IKE_LIFE_TYPE_SECONDS || a->u.attr_16 == IKE_LIFE_TYPE_K);
        assert(a->next != NULL);
-       assert(a->next->type == IKE_ATTRIB_LIFE_DURATION);
+       /* assert(a->next->type == IKE_ATTRIB_LIFE_DURATION); */

        if (a->next->af == isakmp_attr_16)
                value = a->next->u.attr_16;

Not sure why it is needed. VPN works flawlessly again.

Last edited by blux (2017-04-26 06:56:19)

Offline

#3 2017-04-26 12:01:39

seth
Member
Registered: 2012-09-03
Posts: 14,809

Re: Latest update crashes vpnc

You should certainly report that upstream - blocking an assertion is by no means a fix to anything.
Either the assumption is wrong or there's a bug caught by the assert that should be fixed.

Offline

Board footer

Powered by FluxBB