Freeradius 3.0.12 problems - mysql pool connections
Michal Tomaszewski
Michal.Tomaszewski at cca.pl
Fri Jan 27 14:17:20 CET 2017
Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) bt
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00007ffff53f07f2 in ?? () from /usr/lib/freeradius/rlm_sql.so
#2 0x00007ffff7bc401c in ?? () from /usr/lib/freeradius/libfreeradius-server.so
#3 0x00007ffff7bc4c0b in ?? () from /usr/lib/freeradius/libfreeradius-server.so
#4 0x00007ffff7bc4c64 in ?? () from /usr/lib/freeradius/libfreeradius-server.so
#5 0x00007ffff7bc51ab in ?? () from /usr/lib/freeradius/libfreeradius-server.so
#6 0x00007ffff7bc66b3 in radius_xlat () from /usr/lib/freeradius/libfreeradius-server.so
#7 0x0000000000426999 in ?? ()
#8 0x00000000004256e9 in ?? ()
#9 0x00000000004259fc in ?? ()
#10 0x00000000004256e9 in ?? ()
#11 0x00000000004259fc in ?? ()
#12 0x0000000000426b06 in modcall ()
#13 0x00000000004216fd in indexed_modcall ()
#14 0x0000000000410419 in rad_postauth ()
#15 0x0000000000434e60 in ?? ()
#16 0x0000000000431350 in ?? ()
#17 0x0000000000432dd7 in request_receive ()
#18 0x000000000041c2be in ?? ()
#19 0x000000000042f83e in ?? ()
#20 0x00007ffff7990766 in fr_event_loop () from /usr/lib/freeradius/libfreeradius-radius.so
#21 0x000000000040f971 in main ()
(gdb)
>
> > > Unfortunately current build of freeradius 3.0.13 makes (in our
> > > server once a minute) segmentation fault after SQL INSERT command
> > >
> > > user at server:~$ sudo freeradius -Xx > log20170127b.txt Segmentation
> > > fault (core dumped)
> >
> > There are instructions for getting useful information out of gdb.
> >
> > https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/doc/bugs
>
> The info is below:
> cat gdb-radiusd.log
>
> Starting program: /usr/sbin/freeradius -f [Thread debugging using
> libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-
> gnu/libthread_db.so.1".
> [New Thread 0x7fffeef31700 (LWP 3991)]
> [New Thread 0x7fffee730700 (LWP 3992)]
> [New Thread 0x7fffedf2f700 (LWP 3993)]
> [New Thread 0x7fffed72e700 (LWP 3994)]
> [New Thread 0x7fffecf2d700 (LWP 3995)]
>
> Thread 4 "freeradius" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffedf2f700 (LWP 3993)] strlen () at
> ../sysdeps/x86_64/strlen.S:106
> 106 ../sysdeps/x86_64/strlen.S: No such file or directory.
> Id Target Id Frame
> 1 Thread 0x7ffff7fe9740 (LWP 3986) "freeradius" 0x00007ffff67829e3 in
> select () at ../sysdeps/unix/syscall-template.S:84
> 2 Thread 0x7fffeef31700 (LWP 3991) "freeradius" 0x00007ffff6c96827 in
> futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0,
> futex_word=0x669d10) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
> 3 Thread 0x7fffee730700 (LWP 3992) "freeradius" 0x00007ffff6c96827 in
> futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0,
> futex_word=0x669d10) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
> * 4 Thread 0x7fffedf2f700 (LWP 3993) "freeradius" strlen () at
> ../sysdeps/x86_64/strlen.S:106
> 5 Thread 0x7fffed72e700 (LWP 3994) "freeradius" 0x00007ffff6c96827 in
> futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0,
> futex_word=0x669d10) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
> 6 Thread 0x7fffecf2d700 (LWP 3995) "freeradius" 0x00007ffff6c96827 in
> futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0,
> futex_word=0x669d10) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
>
> Thread 6 (Thread 0x7fffecf2d700 (LWP 3995)):
> #0 0x00007ffff6c96827 in futex_abstimed_wait_cancelable (private=0,
> abstime=0x0, expected=0, futex_word=0x669d10) at
> ../sysdeps/unix/sysv/linux/futex-internal.h:205
> __ret = -512
> oldtype = 0
> err = <optimized out>
> #1 do_futex_wait (sem=sem at entry=0x669d10, abstime=0x0) at
> sem_waitcommon.c:111 No locals.
> #2 0x00007ffff6c968d4 in __new_sem_wait_slow (sem=0x669d10,
> abstime=0x0) at sem_waitcommon.c:181
> _buffer = {__routine = 0x7ffff6c967e0 <__sem_wait_cleanup>, __arg =
> 0x669d10, __canceltype = 1485522500, __prev = 0x0}
> err = <optimized out>
> d = 17179869184
> #3 0x00007ffff6c9697a in __new_sem_wait (sem=<optimized out>) at
> sem_wait.c:29 No locals.
> #4 0x000000000042df47 in ?? ()
> No symbol table info available.
> #5 0x00007ffff6c8e6ba in start_thread (arg=0x7fffecf2d700) at
> pthread_create.c:333
> __res = <optimized out>
> pd = 0x7fffecf2d700
> now = <optimized out>
> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737168725760, -
> 6108926390961328707, 0, 140737488348175, 140737168726464, 1,
> 6108959402645892541, 6108946259262287293}, mask_was_saved = 0}}, priv =
> {pad = {0x0, 0x0, 0x0, 0x0},
> data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not_first_call = <optimized out>
> pagesize_m1 = <optimized out>
> sp = <optimized out>
> freesize = <optimized out>
> __PRETTY_FUNCTION__ = "start_thread"
> #6 0x00007ffff678c82d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
> No locals.
>
> Thread 5 (Thread 0x7fffed72e700 (LWP 3994)):
> #0 0x00007ffff6c96827 in futex_abstimed_wait_cancelable (private=0,
> abstime=0x0, expected=0, futex_word=0x669d10) at
> ../sysdeps/unix/sysv/linux/futex-internal.h:205
> __ret = -512
> oldtype = 0
> err = <optimized out>
> #1 do_futex_wait (sem=sem at entry=0x669d10, abstime=0x0) at
> sem_waitcommon.c:111 No locals.
> #2 0x00007ffff6c968d4 in __new_sem_wait_slow (sem=0x669d10,
> abstime=0x0) at sem_waitcommon.c:181
> _buffer = {__routine = 0x7ffff6c967e0 <__sem_wait_cleanup>, __arg =
> 0x669d10, __canceltype = 1485522500, __prev = 0x0}
> err = <optimized out>
> d = 17179869184
> #3 0x00007ffff6c9697a in __new_sem_wait (sem=<optimized out>) at
> sem_wait.c:29 No locals.
> #4 0x000000000042df47 in ?? ()
> No symbol table info available.
> #5 0x00007ffff6c8e6ba in start_thread (arg=0x7fffed72e700) at
> pthread_create.c:333
> __res = <optimized out>
> pd = 0x7fffed72e700
> now = <optimized out>
> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737177118464, -
> 6108926390961328707, 0, 140737488348175, 140737177119168, 1,
> 6108958303671135677, 6108946259262287293}, mask_was_saved = 0}}, priv =
> {pad = {0x0, 0x0, 0x0, 0x0},
> data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not_first_call = <optimized out>
> pagesize_m1 = <optimized out>
> sp = <optimized out>
> freesize = <optimized out>
> __PRETTY_FUNCTION__ = "start_thread"
> #6 0x00007ffff678c82d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
> No locals.
>
> Thread 4 (Thread 0x7fffedf2f700 (LWP 3993)):
> #0 strlen () at ../sysdeps/x86_64/strlen.S:106 No locals.
> #1 0x00007ffff53f07f2 in ?? () from /usr/lib/freeradius/rlm_sql.so No symbol
> table info available.
> #2 0x00007ffff7bc401c in ?? () from /usr/lib/freeradius/libfreeradius-
> server.so
> No symbol table info available.
> #3 0x00007ffff7bc4c0b in ?? () from /usr/lib/freeradius/libfreeradius-
> server.so
> No symbol table info available.
> #4 0x00007ffff7bc4c64 in ?? () from /usr/lib/freeradius/libfreeradius-
> server.so
> No symbol table info available.
> #5 0x00007ffff7bc51ab in ?? () from /usr/lib/freeradius/libfreeradius-
> server.so
> No symbol table info available.
> #6 0x00007ffff7bc66b3 in radius_xlat () from
> /usr/lib/freeradius/libfreeradius-server.so
> No symbol table info available.
> #7 0x0000000000426999 in ?? ()
> No symbol table info available.
> #8 0x00000000004256e9 in ?? ()
> No symbol table info available.
> #9 0x00000000004259fc in ?? ()
> No symbol table info available.
> #10 0x00000000004256e9 in ?? ()
> No symbol table info available.
> #11 0x00000000004259fc in ?? ()
> No symbol table info available.
> #12 0x00000000004256e9 in ?? ()
> No symbol table info available.
> #13 0x00000000004259fc in ?? ()
> No symbol table info available.
> #14 0x0000000000426b06 in modcall ()
> No symbol table info available.
> #15 0x00000000004216fd in indexed_modcall () No symbol table info
> available.
> #16 0x000000000040fe61 in rad_accounting () No symbol table info available.
> #17 0x000000000043579a in ?? ()
> No symbol table info available.
> #18 0x000000000042e208 in ?? ()
> No symbol table info available.
> #19 0x00007ffff6c8e6ba in start_thread (arg=0x7fffedf2f700) at
> pthread_create.c:333
> __res = <optimized out>
> pd = 0x7fffedf2f700
> now = <optimized out>
> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737185511168, -
> 6108926390961328707, 0, 140737488348175, 140737185511872, 1,
> 6108957202548895165, 6108946259262287293}, mask_was_saved = 0}}, priv =
> {pad = {0x0, 0x0, 0x0, 0x0},
> data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not_first_call = <optimized out>
> pagesize_m1 = <optimized out>
> sp = <optimized out>
> freesize = <optimized out>
> __PRETTY_FUNCTION__ = "start_thread"
> #20 0x00007ffff678c82d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
> No locals.
>
> Thread 3 (Thread 0x7fffee730700 (LWP 3992)):
> #0 0x00007ffff6c96827 in futex_abstimed_wait_cancelable (private=0,
> abstime=0x0, expected=0, futex_word=0x669d10) at
> ../sysdeps/unix/sysv/linux/futex-internal.h:205
> __ret = -512
> oldtype = 0
> err = <optimized out>
> #1 do_futex_wait (sem=sem at entry=0x669d10, abstime=0x0) at
> sem_waitcommon.c:111 No locals.
> #2 0x00007ffff6c968d4 in __new_sem_wait_slow (sem=0x669d10,
> abstime=0x0) at sem_waitcommon.c:181
> _buffer = {__routine = 0x7ffff6c967e0 <__sem_wait_cleanup>, __arg =
> 0x669d10, __canceltype = 1485522500, __prev = 0x0}
> err = <optimized out>
> d = 17179869184
> #3 0x00007ffff6c9697a in __new_sem_wait (sem=<optimized out>) at
> sem_wait.c:29 No locals.
> #4 0x000000000042df47 in ?? ()
> No symbol table info available.
> #5 0x00007ffff6c8e6ba in start_thread (arg=0x7fffee730700) at
> pthread_create.c:333
> __res = <optimized out>
> pd = 0x7fffee730700
> now = <optimized out>
> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737193903872, -
> 6108926390961328707, 0, 140737488348175, 140737193904576, 1,
> 6108964899667160509, 6108946259262287293}, mask_was_saved = 0}}, priv =
> {pad = {0x0, 0x0, 0x0, 0x0},
> data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not_first_call = <optimized out>
> pagesize_m1 = <optimized out>
> sp = <optimized out>
> freesize = <optimized out>
> __PRETTY_FUNCTION__ = "start_thread"
> #6 0x00007ffff678c82d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
> No locals.
>
> Thread 2 (Thread 0x7fffeef31700 (LWP 3991)):
> #0 0x00007ffff6c96827 in futex_abstimed_wait_cancelable (private=0,
> abstime=0x0, expected=0, futex_word=0x669d10) at
> ../sysdeps/unix/sysv/linux/futex-internal.h:205
> __ret = -512
> oldtype = 0
> err = <optimized out>
> #1 do_futex_wait (sem=sem at entry=0x669d10, abstime=0x0) at
> sem_waitcommon.c:111 No locals.
> #2 0x00007ffff6c968d4 in __new_sem_wait_slow (sem=0x669d10,
> abstime=0x0) at sem_waitcommon.c:181
> _buffer = {__routine = 0x7ffff6c967e0 <__sem_wait_cleanup>, __arg =
> 0x669d10, __canceltype = 12061904, __prev = 0x0}
> err = <optimized out>
> d = 17179869184
> #3 0x00007ffff6c9697a in __new_sem_wait (sem=<optimized out>) at
> sem_wait.c:29 No locals.
> #4 0x000000000042df47 in ?? ()
> No symbol table info available.
> #5 0x00007ffff6c8e6ba in start_thread (arg=0x7fffeef31700) at
> pthread_create.c:333
> __res = <optimized out>
> pd = 0x7fffeef31700
> now = <optimized out>
> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737202296576, -
> 6108926390961328707, 0, 140737488348175, 140737202297280, 1,
> 6108963802839887293, 6108946259262287293}, mask_was_saved = 0}}, priv =
> {pad = {0x0, 0x0, 0x0, 0x0},
> data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not_first_call = <optimized out>
> pagesize_m1 = <optimized out>
> sp = <optimized out>
> freesize = <optimized out>
> __PRETTY_FUNCTION__ = "start_thread"
> #6 0x00007ffff678c82d in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
> No locals.
>
> Thread 1 (Thread 0x7ffff7fe9740 (LWP 3986)):
> #0 0x00007ffff67829e3 in select () at ../sysdeps/unix/syscall-template.S:84
> No locals.
> #1 0x00007ffff79906b4 in fr_event_loop () from
> /usr/lib/freeradius/libfreeradius-radius.so
> No symbol table info available.
> #2 0x000000000040f971 in main ()
> No symbol table info available.
> ________________________________________ Uwaga: Treść niniejszej
> wiadomości może być poufna i objęta zakazem jej ujawniania. Jeśli czytelnik
> tej wiadomości nie jest jej zamierzonym adresatem, pracownikiem lub
> pośrednikiem upoważnionym do jej przekazania adresatowi, informujemy że
> wszelkie rozprowadzanie, rozpowszechnianie lub powielanie niniejszej
> wiadomości jest zabronione. Jeśli otrzymałeś tę wiadomość omyłkowo,
> proszę bezzwłocznie odesłać ją nadawcy, a samą wiadomość usunąć z
> komputera. Dziękujemy. ________________________________ Note:
> The information contained in this message may be privileged and confidential
> and protected from disclosure. If the reader of this message is not the
> intended recipient, or an employee or agent responsible for delivering this
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited.If you have received this communication in error, please notify
> the sender immediately by replying to the message and deleting it from your
> computer. Thank you. ________________________________
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
________________________________________ Uwaga: Treść niniejszej wiadomości może być poufna i objęta zakazem jej ujawniania. Jeśli czytelnik tej wiadomości nie jest jej zamierzonym adresatem, pracownikiem lub pośrednikiem upoważnionym do jej przekazania adresatowi, informujemy że wszelkie rozprowadzanie, rozpowszechnianie lub powielanie niniejszej wiadomości jest zabronione. Jeśli otrzymałeś tę wiadomość omyłkowo, proszę bezzwłocznie odesłać ją nadawcy, a samą wiadomość usunąć z komputera. Dziękujemy. ________________________________ Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.If you have received this communication in error, please notify the sender immediately by replying to the message and deleting it from your computer. Thank you. ________________________________
More information about the Freeradius-Users
mailing list