Падение по SIGABRT, скрипты, IPOE L3 NAT=1

IPoE related questions
Post Reply
Cpulink
Posts: 10
Joined: 21 Jan 2017, 12:47

Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Cpulink » 06 Mar 2018, 06:59

Версия - от 4 марта. Конфиг как в теме viewtopic.php?f=10&t=766
Вылетает тихо, в логах явных ошибок не видно.
Последнее в логе
Спойлер
[2018-03-06 09:04:50]: info: ipoe24: pppd_compat: ip-down started (pid 14822)
[2018-03-06 09:04:50]: debug: ipoe10: radius(1): req_exit 1
[2018-03-06 09:04:50]: info: ipoe10: recv [RADIUS(1) Accounting-Response id=1]
[2018-03-06 09:04:50]: info: ipoe10: ipoe: session started
[2018-03-06 09:04:50]: info: ipoe10: pppd_compat: ip-up started (pid 14823)
[2018-03-06 09:04:50]: info: ipoe24: pppd_compat: ip-down finished (0)
При старте есть ошибка и предупреждение, но не ясно как оно влияет:
Спойлер
[2018-03-06 08:54:12]: info: ipoe: start interface leth44 ()
[2018-03-06 08:54:12]: debug: libnetlink: RTNETLINK answers: No such file or directory
[2018-03-06 08:54:12]: error: genl: error talking to kernel
[2018-03-06 08:54:12]: warn: vlan_mon: kernel module is not loaded
Падает или само, или если активно сбросить сессии по CoA/DM.
Вот таким скриптом:
Спойлер
#!/bin/bash

nasip=127.0.0.1

for i in /var/run/radattr*
do
nn=`echo $i|cut -d'.' -f2`
echo $nn ========== killing
echo "NAS-Port-Id=${nn}" |radclient -q -r 1 -t 1 $nasip:3799 disconnect DmPassMy
sleep 0.1
done
Вот что отладка пишет:

Code: Select all

Core was generated by `/usr/sbin/accel-pppd -- -d -p /var/run/accel-pppd.pid -c /etc/accel-ppp.conf'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fde8d48e2a8 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007fde8d48e2a8 in raise () from /lib64/libc.so.6
#1  0x00007fde8d48f72a in abort () from /lib64/libc.so.6
#2  0x00007fde8d4ca32a in ?? () from /lib64/libc.so.6
#3  0x00007fde8d5538b7 in __fortify_fail () from /lib64/libc.so.6
#4  0x00007fde8d553880 in __stack_chk_fail () from /lib64/libc.so.6
#5  0x00007fde8e53df4d in triton_context_schedule () at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/triton/triton.c:518
#6  0x00007fde8ad6ff25 in ev_ses_finished (ses=<optimized out>) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/extra/pppd_compat.c:367
#7  0x00007fde8e53ffc6 in triton_event_fire (ev_id=ev_id@entry=13, arg=arg@entry=0x7fde84046ff0) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/triton/event.c:103
#8  0x0000000000407a8e in ap_session_finished (ses=0x7fde84046ff0) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/session.c:191
#9  0x00007fde8bac8b21 in ipoe_session_terminated (ses=<optimized out>) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/ctrl/ipoe/ipoe.c:1220
#10 0x00007fde8bac8b95 in ipoe_session_terminate (s=<optimized out>, hard=<optimized out>) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/ctrl/ipoe/ipoe.c:1244
#11 0x0000000000407e0a in ap_session_terminate (ses=0x7fde84046ff0, cause=3, hard=0) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/session.c:298
#12 0x00007fde8e53d7b3 in ctx_thread (ctx=<optimized out>) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/triton/triton.c:273
#13 triton_thread (thread=0x680908) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/triton/triton.c:193
#14 0x00007fde8e11b414 in start_thread () from /lib64/libpthread.so.0
#15 0x00007fde8d5433ad in clone () from /lib64/libc.so.6
Главное то забыл, - в какую сторону копать?

Dmitry
Администратор
Posts: 949
Joined: 09 Oct 2014, 10:06

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Dmitry » 06 Mar 2018, 07:30

это точно 1.11 из гит ?

Dmitry
Администратор
Posts: 949
Joined: 09 Oct 2014, 10:06

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Dmitry » 06 Mar 2018, 07:34

похоже это гит мастер
с какими флагами собрано и каким компилятором ?
до этого обновления не падало ?

Cpulink
Posts: 10
Joined: 21 Jan 2017, 12:47

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Cpulink » 06 Mar 2018, 07:47

Dmitry wrote:
06 Mar 2018, 07:30
это точно 1.11 из гит ?
вроде да, делал так
git clone https://github.com/xebd/accel-ppp.git
%cmake \
-DCMAKE_SKIP_RPATH:BOOL=FALSE \
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=FALSE \
-DBUILD_DRIVER=FALSE \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DRADIUS=TRUE \
-DNETSNMP=TRUE \
-DLOG_PGSQL=FALSE \
-DLUA=TRUE \
-DBUILD_INSTALL_PREFIX=%buildroot \
-DCMAKE_BUILD_TYPE=Debug \
-DMEMDEBUG=TRUE
в рпм собрал. Отладочную инфу не страйпил.

Cpulink
Posts: 10
Joined: 21 Jan 2017, 12:47

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Cpulink » 06 Mar 2018, 07:49

Dmitry wrote:
06 Mar 2018, 07:34
похоже это гит мастер
с какими флагами собрано и каким компилятором ?
до этого обновления не падало ?
Пытаюсь собрать новую версию, сидим на древней.
Тестовых юзеров - 30-40.
x86_64-alt-linux-gcc (GCC) 5.3.1
ядро 4.9.83-std-def

И еще, при включенных в конфиге if-down, сделал reload - упало.
Спойлер
Core was generated by `/usr/sbin/accel-pppd -- -d -p /var/run/accel-pppd.pid -c /etc/accel-ppp.conf'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f50298ff2a8 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x00007f50298ff2a8 in raise () from /lib64/libc.so.6
#1 0x00007f502990072a in abort () from /lib64/libc.so.6
#2 0x00007f502993b32a in ?? () from /lib64/libc.so.6
#3 0x00007f50299c48b7 in __fortify_fail () from /lib64/libc.so.6
#4 0x00007f50299c4880 in __stack_chk_fail () from /lib64/libc.so.6
#5 0x00007f502a9aef4d in triton_context_schedule () at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/triton/triton.c:518
#6 0x0000000000418eaa in reload_exec (cmd=<optimized out>, f=<optimized out>, f_cnt=<optimized out>, cli=0x7f5020030bb8) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/cli/std_cmd.c:328
#7 0x000000000041dca3 in cli_process_simple_cmd (cln=cln@entry=0x7f5020030bb8, err=err@entry=0x7f502ada2ad4) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/cli/cli.c:267
#8 0x000000000041e5ac in cli_process_cmd (cln=cln@entry=0x7f5020030bb8) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/cli/cli.c:290
#9 0x000000000041c44a in telnet_input_char (c=<optimized out>, cln=0x7f5020030bb8) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/cli/telnet.c:311
#10 cln_read (h=0x7f5020030be8) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/cli/telnet.c:490
#11 0x00007f502a9ae720 in ctx_thread (ctx=<optimized out>) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/triton/triton.c:252
#12 triton_thread (thread=0x680d88) at /usr/src/debug/accel-ppp-1.11.2/accel-pppd/triton/triton.c:193
#13 0x00007f502a58c414 in start_thread () from /lib64/libpthread.so.0
#14 0x00007f50299b43ad in clone () from /lib64/libc.so.6

Dmitry
Администратор
Posts: 949
Joined: 09 Oct 2014, 10:06

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Dmitry » 06 Mar 2018, 08:04

я подозревая что он включает -fstack-protector -fstack-check
ладно, у себя проверю с такими флагами

Cpulink
Posts: 10
Joined: 21 Jan 2017, 12:47

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Cpulink » 06 Mar 2018, 08:06

Dmitry wrote:
06 Mar 2018, 08:04
я подозревая что он включает -fstack-protector -fstack-check
ладно, у себя проверю с такими флагами
в ядре, при сборке, такие опции точно есть.

Cpulink
Posts: 10
Joined: 21 Jan 2017, 12:47

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Cpulink » 06 Mar 2018, 08:16

вот из сборки пример
/usr/bin/cc -pipe -Wall -g -O2 -Wall -fno-strict-aliasing -D_GNU_SOURCE -fPIC -rdynamic -Wno-unused-result -fstack-protector -fstack-protector-all -fvisibility=hidden

При сборке и проверке есть предупреждения(не знаю на сколько влияют):
Спойлер
lib.req: WARNING: /tmp/.private/admin/accel-ppp-buildroot/usr/lib64/accel-ppp/libipoe.so: underlinked libraries: /lib64/libpthread.so.0
verify-elf: WARNING: ./usr/sbin/accel-pppd: RPATH entry found: /usr/lib64/accel-ppp
verify-elf: WARNING: ./usr/lib64/accel-ppp/libradius.so: RPATH entry found: /usr/lib64/accel-ppp
verify-elf: WARNING: ./usr/lib64/accel-ppp/libpppoe.so: RPATH entry found: /usr/lib64/accel-ppp
verify-elf: WARNING: ./usr/lib64/accel-ppp/libradius.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libluasupp.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libtriton.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libvlan-mon.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libpptp.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libpppoe.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libl2tp.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libsstp.so: undefined symbol
verify-elf: WARNING: ./usr/lib64/accel-ppp/libipoe.so: undefined symbol

/home/admin/RPM/BUILD/accel-ppp-1.11.2/accel-pppd/triton/mempool.c:23:12: warning: 'conf_mempool_min' defined but not used [-Wunused-variable]
static int conf_mempool_min = 128;
^
In file included from /home/ateladmin/RPM/BUILD/accel-ppp-1.11.2/accel-pppd/radius/dict.c:7:0:
/home/admin/RPM/BUILD/accel-ppp-1.11.2/accel-pppd/radius/dict.c: In function 'dict_load':
/home/admin/RPM/BUILD/accel-ppp-1.11.2/accel-pppd/include/list.h:44:13: warning: 'parent_items' may be used uninitialized in this function [-Wmaybe-uninitialized]
next->prev = new;
^
/home/admin/RPM/BUILD/accel-ppp-1.11.2/accel-pppd/radius/dict.c:79:20: note: 'parent_items' was declared here
struct list_head *parent_items;

Dmitry
Администратор
Posts: 949
Joined: 09 Oct 2014, 10:06

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Dmitry » 06 Mar 2018, 09:12

commit 1e5079d215643295cba69ce9d0999bf3c5f5df38

Cpulink
Posts: 10
Joined: 21 Jan 2017, 12:47

Re: Падение по SIGABRT, скрипты, IPOE L3 NAT=1

Post by Cpulink » 12 Mar 2018, 10:33

Dmitry wrote:
06 Mar 2018, 09:12
commit 1e5079d215643295cba69ce9d0999bf3c5f5df38
Спасибо! uptime: 5.23:58:27 рабоатет.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest