xl2tpd-1.3.6+dfsg-2build1 periodically crashes if compiled with USE_KERNEL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned | ||
xl2tpd (Debian) |
Fix Released
|
Unknown
|
|||
xl2tpd (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Ubuntu 15.04 x86_64
xl2tpd-
xl2pd daemon works very well and really uses kernel, so CPU usage is very low on my 450 Mbits-limited ISP uplink using L2TP
however, once in a day, randomly, xl2tpd crashes like this
xl2tpd[2414]: segfault at 188 ip 000000000040c7f8 sp 00007fffb1345280 error 4 in xl2tpd[
wih dead ppp0 interface present but not working, staying for 2-3 min, then disappearing
looking into the code at the crash point reveals this in call.c line 416
---
#ifdef IP_ALLOCATION
if (c->addr)
if (c->lns-
#endif
---
clearly c->lns is null pointer, so I patched this source a little:
---
if (c->lns && c->lns->localrange)
---
compiled, installed and 1 week no crashes, no memory leaks and stable L2TP tunnel
this code introduced in patch 0003-Add-
seems problem exists in debian too
https:/
please consider a quick fix. thanks.
tags: | added: xenial |
Changed in xl2tpd (Debian): | |
status: | Unknown → Fix Released |
Changed in xl2tpd (Ubuntu): | |
importance: | Undecided → Medium |
Status changed to 'Confirmed' because the bug affects multiple users.