segfault with 3.0.3 on rhel 6.5
I built 3.0.3 from the tar.gz on ftp.freeradius.org with a standard ./configure; make; sudo make install The server builds fine without warning but dies with a segmentation fault on startup with all the default configuration files in place. I can reproduce this on other boxes boxes running the same distribution but I can’t reproduce it on my OSX machines or my FreeBSD box. The detailed versions of all the linked libs are outlined towards the end of the GDB output. System Info: [root@cwp-test-dev ~]# uname -a Linux cwp-test-dev.corp.ena.net 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 11:15:18 CDT 2014 x86_64 x86_64 x86_64 GNU/Linux [root@cwp-test-dev ~]# cat /etc/redhat-release Scientific Linux release 6.5 (Carbon) GDB output: [root@cwp-test-dev ~]# gdb /usr/local/sbin/radiusd GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/sbin/radiusd...done. (gdb) run -t -X Starting program: /usr/local/sbin/radiusd -t -X [Thread debugging using libthread_db enabled] radiusd: FreeRADIUS Version 3.0.3, for host x86_64-unknown-linux-gnu, built on May 14 2014 at 09:38:31 Copyright (C) 1999-2014 The FreeRADIUS server project and contributors There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/local/share/freeradius/dictionary including dictionary file /usr/local/share/freeradius/dictionary.dhcp including dictionary file /usr/local/share/freeradius/dictionary.vqp including dictionary file /usr/local/etc/raddb/dictionary including configuration file /usr/local/etc/raddb/radiusd.conf including configuration file /usr/local/etc/raddb/proxy.conf including configuration file /usr/local/etc/raddb/clients.conf including files in directory /usr/local/etc/raddb/mods-enabled/ including configuration file /usr/local/etc/raddb/mods-enabled/detail.log including configuration file /usr/local/etc/raddb/mods-enabled/utf8 including configuration file /usr/local/etc/raddb/mods-enabled/realm including configuration file /usr/local/etc/raddb/mods-enabled/unix including configuration file /usr/local/etc/raddb/mods-enabled/passwd including configuration file /usr/local/etc/raddb/mods-enabled/expr including configuration file /usr/local/etc/raddb/mods-enabled/pap including configuration file /usr/local/etc/raddb/mods-enabled/detail including configuration file /usr/local/etc/raddb/mods-enabled/files including configuration file /usr/local/etc/raddb/mods-enabled/radutmp including configuration file /usr/local/etc/raddb/mods-enabled/always including configuration file /usr/local/etc/raddb/mods-enabled/dhcp including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth including configuration file /usr/local/etc/raddb/mods-enabled/chap including configuration file /usr/local/etc/raddb/mods-enabled/soh including configuration file /usr/local/etc/raddb/mods-enabled/expiration including configuration file /usr/local/etc/raddb/mods-enabled/linelog including configuration file /usr/local/etc/raddb/mods-enabled/mschap including configuration file /usr/local/etc/raddb/mods-enabled/digest including configuration file /usr/local/etc/raddb/mods-enabled/replicate including configuration file /usr/local/etc/raddb/mods-enabled/preprocess including configuration file /usr/local/etc/raddb/mods-enabled/echo including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp including configuration file /usr/local/etc/raddb/mods-enabled/logintime including configuration file /usr/local/etc/raddb/mods-enabled/exec including configuration file /usr/local/etc/raddb/mods-enabled/eap including configuration file /usr/local/etc/raddb/mods-enabled/unpack including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap including files in directory /usr/local/etc/raddb/policy.d/ including configuration file /usr/local/etc/raddb/policy.d/operator-name including configuration file /usr/local/etc/raddb/policy.d/dhcp including configuration file /usr/local/etc/raddb/policy.d/filter including configuration file /usr/local/etc/raddb/policy.d/accounting including configuration file /usr/local/etc/raddb/policy.d/canonicalization including configuration file /usr/local/etc/raddb/policy.d/cui including configuration file /usr/local/etc/raddb/policy.d/control including configuration file /usr/local/etc/raddb/policy.d/eap including files in directory /usr/local/etc/raddb/sites-enabled/ including configuration file /usr/local/etc/raddb/sites-enabled/default including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel main { security { allow_core_dumps = no } } main { name = "radiusd" Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7783a3e in _talloc_free () from /usr/lib64/libtalloc.so.2 Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-10.el6_4.6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libpcap-1.4.0-1.20130826git2dbcaa1.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 libtalloc-2.0.7-2.el6.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 nss-softokn-freebl-3.14.3-9.el6.x86_64 openssl-1.0.1e-16.el6_5.7.x86_64 pcre-7.8-6.el6.x86_64 readline-6.0-4.el6.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) next Single stepping until exit from function _talloc_free, which has no line number information. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb)
One quick followup. I just built 3.0.2 (after removing 3.0.3) on the same machine and it appears to run without issue. — Aaron On May 14, 2014, at 9:48 AM, Aaron Hurt <ahurt@ena.com> wrote:
I built 3.0.3 from the tar.gz on ftp.freeradius.org with a standard ./configure; make; sudo make install
The server builds fine without warning but dies with a segmentation fault on startup with all the default configuration files in place. I can reproduce this on other boxes boxes running the same distribution but I can’t reproduce it on my OSX machines or my FreeBSD box. The detailed versions of all the linked libs are outlined towards the end of the GDB output.
System Info:
[root@cwp-test-dev ~]# uname -a Linux cwp-test-dev.corp.ena.net 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 11:15:18 CDT 2014 x86_64 x86_64 x86_64 GNU/Linux [root@cwp-test-dev ~]# cat /etc/redhat-release Scientific Linux release 6.5 (Carbon)
GDB output:
[root@cwp-test-dev ~]# gdb /usr/local/sbin/radiusd GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/sbin/radiusd...done. (gdb) run -t -X Starting program: /usr/local/sbin/radiusd -t -X [Thread debugging using libthread_db enabled] radiusd: FreeRADIUS Version 3.0.3, for host x86_64-unknown-linux-gnu, built on May 14 2014 at 09:38:31 Copyright (C) 1999-2014 The FreeRADIUS server project and contributors There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/local/share/freeradius/dictionary including dictionary file /usr/local/share/freeradius/dictionary.dhcp including dictionary file /usr/local/share/freeradius/dictionary.vqp including dictionary file /usr/local/etc/raddb/dictionary including configuration file /usr/local/etc/raddb/radiusd.conf including configuration file /usr/local/etc/raddb/proxy.conf including configuration file /usr/local/etc/raddb/clients.conf including files in directory /usr/local/etc/raddb/mods-enabled/ including configuration file /usr/local/etc/raddb/mods-enabled/detail.log including configuration file /usr/local/etc/raddb/mods-enabled/utf8 including configuration file /usr/local/etc/raddb/mods-enabled/realm including configuration file /usr/local/etc/raddb/mods-enabled/unix including configuration file /usr/local/etc/raddb/mods-enabled/passwd including configuration file /usr/local/etc/raddb/mods-enabled/expr including configuration file /usr/local/etc/raddb/mods-enabled/pap including configuration file /usr/local/etc/raddb/mods-enabled/detail including configuration file /usr/local/etc/raddb/mods-enabled/files including configuration file /usr/local/etc/raddb/mods-enabled/radutmp including configuration file /usr/local/etc/raddb/mods-enabled/always including configuration file /usr/local/etc/raddb/mods-enabled/dhcp including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth including configuration file /usr/local/etc/raddb/mods-enabled/chap including configuration file /usr/local/etc/raddb/mods-enabled/soh including configuration file /usr/local/etc/raddb/mods-enabled/expiration including configuration file /usr/local/etc/raddb/mods-enabled/linelog including configuration file /usr/local/etc/raddb/mods-enabled/mschap including configuration file /usr/local/etc/raddb/mods-enabled/digest including configuration file /usr/local/etc/raddb/mods-enabled/replicate including configuration file /usr/local/etc/raddb/mods-enabled/preprocess including configuration file /usr/local/etc/raddb/mods-enabled/echo including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp including configuration file /usr/local/etc/raddb/mods-enabled/logintime including configuration file /usr/local/etc/raddb/mods-enabled/exec including configuration file /usr/local/etc/raddb/mods-enabled/eap including configuration file /usr/local/etc/raddb/mods-enabled/unpack including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap including files in directory /usr/local/etc/raddb/policy.d/ including configuration file /usr/local/etc/raddb/policy.d/operator-name including configuration file /usr/local/etc/raddb/policy.d/dhcp including configuration file /usr/local/etc/raddb/policy.d/filter including configuration file /usr/local/etc/raddb/policy.d/accounting including configuration file /usr/local/etc/raddb/policy.d/canonicalization including configuration file /usr/local/etc/raddb/policy.d/cui including configuration file /usr/local/etc/raddb/policy.d/control including configuration file /usr/local/etc/raddb/policy.d/eap including files in directory /usr/local/etc/raddb/sites-enabled/ including configuration file /usr/local/etc/raddb/sites-enabled/default including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel main { security { allow_core_dumps = no } } main { name = "radiusd"
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7783a3e in _talloc_free () from /usr/lib64/libtalloc.so.2 Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-10.el6_4.6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libpcap-1.4.0-1.20130826git2dbcaa1.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 libtalloc-2.0.7-2.el6.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 nss-softokn-freebl-3.14.3-9.el6.x86_64 openssl-1.0.1e-16.el6_5.7.x86_64 pcre-7.8-6.el6.x86_64 readline-6.0-4.el6.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) next Single stepping until exit from function _talloc_free, which has no line number information.
Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
I get a segfault on CentOS 6.5 as well; here’s a backtrace: #0 0x00000035a2402a3e in _talloc_free () from /usr/lib64/libtalloc.so.2 #1 0x00000035a200aade in cf_item_parse (cs=0x868c30, name=0x44236e "prefix", type=100, data=0x65b958, dflt=<value optimized out>) at src/main/conffile.c:1006 #2 0x00000035a200b089 in cf_section_parse (cs=0x868c30, base=0x0, variables=0x657380) at src/main/conffile.c:1288 #3 0x000000000041a161 in main_config_init () at src/main/mainconfig.c:888 #4 0x0000000000422359 in main (argc=1, argv=0x7fffffffe648) at src/main/radiusd.c:315 I get the same behavior from 3.0.3 as I do from the 3.0.x branch. — Bruce Bruce Bauman - Systems Administrator Telecommunications Division - Rutgers University University Network Architecture and Applications Office: 848.445.6363 On May 14, 2014, at 10:56 AM, Aaron Hurt <ahurt@ena.com> wrote:
One quick followup. I just built 3.0.2 (after removing 3.0.3) on the same machine and it appears to run without issue.
— Aaron
On May 14, 2014, at 9:48 AM, Aaron Hurt <ahurt@ena.com> wrote:
I built 3.0.3 from the tar.gz on ftp.freeradius.org with a standard ./configure; make; sudo make install
The server builds fine without warning but dies with a segmentation fault on startup with all the default configuration files in place. I can reproduce this on other boxes boxes running the same distribution but I can’t reproduce it on my OSX machines or my FreeBSD box. The detailed versions of all the linked libs are outlined towards the end of the GDB output.
System Info:
[root@cwp-test-dev ~]# uname -a Linux cwp-test-dev.corp.ena.net 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 11:15:18 CDT 2014 x86_64 x86_64 x86_64 GNU/Linux [root@cwp-test-dev ~]# cat /etc/redhat-release Scientific Linux release 6.5 (Carbon)
GDB output:
[root@cwp-test-dev ~]# gdb /usr/local/sbin/radiusd GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/sbin/radiusd...done. (gdb) run -t -X Starting program: /usr/local/sbin/radiusd -t -X [Thread debugging using libthread_db enabled] radiusd: FreeRADIUS Version 3.0.3, for host x86_64-unknown-linux-gnu, built on May 14 2014 at 09:38:31 Copyright (C) 1999-2014 The FreeRADIUS server project and contributors There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/local/share/freeradius/dictionary including dictionary file /usr/local/share/freeradius/dictionary.dhcp including dictionary file /usr/local/share/freeradius/dictionary.vqp including dictionary file /usr/local/etc/raddb/dictionary including configuration file /usr/local/etc/raddb/radiusd.conf including configuration file /usr/local/etc/raddb/proxy.conf including configuration file /usr/local/etc/raddb/clients.conf including files in directory /usr/local/etc/raddb/mods-enabled/ including configuration file /usr/local/etc/raddb/mods-enabled/detail.log including configuration file /usr/local/etc/raddb/mods-enabled/utf8 including configuration file /usr/local/etc/raddb/mods-enabled/realm including configuration file /usr/local/etc/raddb/mods-enabled/unix including configuration file /usr/local/etc/raddb/mods-enabled/passwd including configuration file /usr/local/etc/raddb/mods-enabled/expr including configuration file /usr/local/etc/raddb/mods-enabled/pap including configuration file /usr/local/etc/raddb/mods-enabled/detail including configuration file /usr/local/etc/raddb/mods-enabled/files including configuration file /usr/local/etc/raddb/mods-enabled/radutmp including configuration file /usr/local/etc/raddb/mods-enabled/always including configuration file /usr/local/etc/raddb/mods-enabled/dhcp including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth including configuration file /usr/local/etc/raddb/mods-enabled/chap including configuration file /usr/local/etc/raddb/mods-enabled/soh including configuration file /usr/local/etc/raddb/mods-enabled/expiration including configuration file /usr/local/etc/raddb/mods-enabled/linelog including configuration file /usr/local/etc/raddb/mods-enabled/mschap including configuration file /usr/local/etc/raddb/mods-enabled/digest including configuration file /usr/local/etc/raddb/mods-enabled/replicate including configuration file /usr/local/etc/raddb/mods-enabled/preprocess including configuration file /usr/local/etc/raddb/mods-enabled/echo including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp including configuration file /usr/local/etc/raddb/mods-enabled/logintime including configuration file /usr/local/etc/raddb/mods-enabled/exec including configuration file /usr/local/etc/raddb/mods-enabled/eap including configuration file /usr/local/etc/raddb/mods-enabled/unpack including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap including files in directory /usr/local/etc/raddb/policy.d/ including configuration file /usr/local/etc/raddb/policy.d/operator-name including configuration file /usr/local/etc/raddb/policy.d/dhcp including configuration file /usr/local/etc/raddb/policy.d/filter including configuration file /usr/local/etc/raddb/policy.d/accounting including configuration file /usr/local/etc/raddb/policy.d/canonicalization including configuration file /usr/local/etc/raddb/policy.d/cui including configuration file /usr/local/etc/raddb/policy.d/control including configuration file /usr/local/etc/raddb/policy.d/eap including files in directory /usr/local/etc/raddb/sites-enabled/ including configuration file /usr/local/etc/raddb/sites-enabled/default including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel main { security { allow_core_dumps = no } } main { name = "radiusd"
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7783a3e in _talloc_free () from /usr/lib64/libtalloc.so.2 Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-10.el6_4.6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libpcap-1.4.0-1.20130826git2dbcaa1.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 libtalloc-2.0.7-2.el6.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 nss-softokn-freebl-3.14.3-9.el6.x86_64 openssl-1.0.1e-16.el6_5.7.x86_64 pcre-7.8-6.el6.x86_64 readline-6.0-4.el6.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) next Single stepping until exit from function _talloc_free, which has no line number information.
Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Bruce Bauman wrote:
I get a segfault on CentOS 6.5 as well; here’s a backtrace:
I don't see it at all on a new install of CentOS 6.5. My guess (again) is that it's a shared library issue. Please be sure that *all* of the 3.0.2 libraries have been removed from your system, and try again. Alan DeKok.
On May 14, 2014, at 10:03 AM, A.L.M.Buxey@lboro.ac.uk wrote:
Hi,
I built 3.0.3 from the tar.gz on ftp.freeradius.org with a standard ./configure; make; sudo make install
radiusd -xv
(just to get environment info)
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
I installed all the debug info symbols as well … here it is with -xv and -t -X (again) and a backtrace (gdb) run -xv Starting program: /usr/local/sbin/radiusd -xv [Thread debugging using libthread_db enabled] Wed May 14 10:19:25 2014 : Info: radiusd: FreeRADIUS Version 3.0.3, for host x86_64-unknown-linux-gnu, built on May 14 2014 at 10:17:43 Wed May 14 10:19:25 2014 : Debug: Server was built with: Wed May 14 10:19:25 2014 : Debug: accounting Wed May 14 10:19:25 2014 : Debug: authentication Wed May 14 10:19:25 2014 : Debug: ascend binary attributes Wed May 14 10:19:25 2014 : Debug: coa Wed May 14 10:19:25 2014 : Debug: control-socket Wed May 14 10:19:25 2014 : Debug: detail Wed May 14 10:19:25 2014 : Debug: dhcp Wed May 14 10:19:25 2014 : Debug: dynamic clients Wed May 14 10:19:25 2014 : Debug: proxy Wed May 14 10:19:25 2014 : Debug: regex-pcre Wed May 14 10:19:25 2014 : Debug: session-management Wed May 14 10:19:25 2014 : Debug: stats Wed May 14 10:19:25 2014 : Debug: tcp Wed May 14 10:19:25 2014 : Debug: threads Wed May 14 10:19:25 2014 : Debug: tls Wed May 14 10:19:25 2014 : Debug: unlang Wed May 14 10:19:25 2014 : Debug: vmps Wed May 14 10:19:25 2014 : Debug: Server core libs: Wed May 14 10:19:25 2014 : Debug: talloc : 2.0.* Wed May 14 10:19:25 2014 : Debug: ssl : OpenSSL 1.0.1e-fips 11 Feb 2013 0x01000105f (1.0.1e-15) Wed May 14 10:19:25 2014 : Debug: Library magic number: Wed May 14 10:19:25 2014 : Debug: 0xf403000300000000 Wed May 14 10:19:25 2014 : Debug: Endianess: Wed May 14 10:19:25 2014 : Debug: little Wed May 14 10:19:25 2014 : Info: Copyright (C) 1999-2014 The FreeRADIUS server project and contributors Wed May 14 10:19:25 2014 : Info: There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A Wed May 14 10:19:25 2014 : Info: PARTICULAR PURPOSE Wed May 14 10:19:25 2014 : Info: You may redistribute copies of FreeRADIUS under the terms of the Wed May 14 10:19:25 2014 : Info: GNU General Public License Wed May 14 10:19:25 2014 : Info: For more information about these matters, see the file named COPYRIGHT Program exited normally. (gdb) run -t -X Starting program: /usr/local/sbin/radiusd -t -X [Thread debugging using libthread_db enabled] radiusd: FreeRADIUS Version 3.0.3, for host x86_64-unknown-linux-gnu, built on May 14 2014 at 10:17:43 Copyright (C) 1999-2014 The FreeRADIUS server project and contributors There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ... including dictionary file /usr/local/share/freeradius/dictionary including dictionary file /usr/local/share/freeradius/dictionary.dhcp including dictionary file /usr/local/share/freeradius/dictionary.vqp including dictionary file /usr/local/etc/raddb/dictionary including configuration file /usr/local/etc/raddb/radiusd.conf including configuration file /usr/local/etc/raddb/proxy.conf including configuration file /usr/local/etc/raddb/clients.conf including files in directory /usr/local/etc/raddb/mods-enabled/ including configuration file /usr/local/etc/raddb/mods-enabled/detail.log including configuration file /usr/local/etc/raddb/mods-enabled/utf8 including configuration file /usr/local/etc/raddb/mods-enabled/realm including configuration file /usr/local/etc/raddb/mods-enabled/unix including configuration file /usr/local/etc/raddb/mods-enabled/passwd including configuration file /usr/local/etc/raddb/mods-enabled/expr including configuration file /usr/local/etc/raddb/mods-enabled/pap including configuration file /usr/local/etc/raddb/mods-enabled/detail including configuration file /usr/local/etc/raddb/mods-enabled/files including configuration file /usr/local/etc/raddb/mods-enabled/radutmp including configuration file /usr/local/etc/raddb/mods-enabled/always including configuration file /usr/local/etc/raddb/mods-enabled/dhcp including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth including configuration file /usr/local/etc/raddb/mods-enabled/chap including configuration file /usr/local/etc/raddb/mods-enabled/soh including configuration file /usr/local/etc/raddb/mods-enabled/expiration including configuration file /usr/local/etc/raddb/mods-enabled/linelog including configuration file /usr/local/etc/raddb/mods-enabled/mschap including configuration file /usr/local/etc/raddb/mods-enabled/digest including configuration file /usr/local/etc/raddb/mods-enabled/replicate including configuration file /usr/local/etc/raddb/mods-enabled/preprocess including configuration file /usr/local/etc/raddb/mods-enabled/echo including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp including configuration file /usr/local/etc/raddb/mods-enabled/logintime including configuration file /usr/local/etc/raddb/mods-enabled/exec including configuration file /usr/local/etc/raddb/mods-enabled/eap including configuration file /usr/local/etc/raddb/mods-enabled/unpack including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap including files in directory /usr/local/etc/raddb/policy.d/ including configuration file /usr/local/etc/raddb/policy.d/operator-name including configuration file /usr/local/etc/raddb/policy.d/dhcp including configuration file /usr/local/etc/raddb/policy.d/filter including configuration file /usr/local/etc/raddb/policy.d/accounting including configuration file /usr/local/etc/raddb/policy.d/canonicalization including configuration file /usr/local/etc/raddb/policy.d/cui including configuration file /usr/local/etc/raddb/policy.d/control including configuration file /usr/local/etc/raddb/policy.d/eap including files in directory /usr/local/etc/raddb/sites-enabled/ including configuration file /usr/local/etc/raddb/sites-enabled/default including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel main { security { allow_core_dumps = no } } main { name = "radiusd" Program received signal SIGSEGV, Segmentation fault. _talloc_free (ptr=0x7e, location=0x7ffff7df302c "src/main/conffile.c:1006") at ../talloc.c:1348 1348 tc = talloc_chunk_from_ptr(ptr); (gdb) bt #0 _talloc_free (ptr=0x7e, location=0x7ffff7df302c "src/main/conffile.c:1006") at ../talloc.c:1348 #1 0x00007ffff7de55ee in cf_item_parse (cs=0x65eb00, name=0x43e3a8 "prefix", type=100, data=0x656938, dflt=<value optimized out>) at src/main/conffile.c:1006 #2 0x00007ffff7de5a79 in cf_section_parse (cs=0x65eb00, base=0x0, variables=0x652380) at src/main/conffile.c:1288 #3 0x0000000000419584 in main_config_init () at src/main/mainconfig.c:888 #4 0x0000000000420b39 in main (argc=3, argv=0x7fffffffe548) at src/main/radiusd.c:315 (gdb)
On May 14, 2014, at 10:40 AM, Alan DeKok <aland@deployingradius.com> wrote:
valgrind --tool=memcheck radiusd -XvmM
valgrind --tool=memcheck /usr/local/sbin/radiusd -XvmM http://pastie.org/pastes/9175464/text valgrind -v --tool=memcheck --leak-check=full /usr/local/sbin/radiusd -XvmM http://pastie.org/pastes/9175469/text — Aaron
Aaron Hurt wrote:
On May 14, 2014, at 10:40 AM, Alan DeKok <aland@deployingradius.com <mailto:aland@deployingradius.com>> wrote:
valgrind --tool=memcheck radiusd -XvmM
valgrind --tool=memcheck /usr/local/sbin/radiusd -XvmM
That's content-free. <sigh> I'll try a CentOS 6.5 image locally. Alan DeKOk.
hi, take Alans suggestion (I have seen this either) - ensure that traces of older versions arent around - eg in used PATHs ...and after the make ; make install do ldconfig -v then see.... alan
Just installed a fresh new VM with 6.5 … and performed the following steps: sudo yum groupinstall “Development Tools” sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz tar zvxf freeradius-server-3.0.3.tar.gz cd freeradius-server-3.0.3 ./configure; make; sudo make install sudo su - /usr/local/sbin/radiusd -X …. SEGFAULT ….. I’ll install all of the debugging tools there as well and post that in a moment. On May 14, 2014, at 2:07 PM, <A.L.M.Buxey@lboro.ac.uk> <A.L.M.Buxey@lboro.ac.uk> wrote:
hi,
take Alans suggestion (I have seen this either) - ensure that traces of older versions arent around - eg in used PATHs ...and after the make ; make install
do
ldconfig -v
then see....
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
On 14 May 2014, at 20:46, Aaron Hurt <ahurt@ena.com> wrote:
Just installed a fresh new VM with 6.5 … and performed the following steps:
sudo yum groupinstall “Development Tools”
sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel
wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz
tar zvxf freeradius-server-3.0.3.tar.gz
cd freeradius-server-3.0.3
./configure; make; sudo make install
sudo su -
/usr/local/sbin/radiusd -X
…. SEGFAULT …..
I’ll install all of the debugging tools there as well and post that in a moment.
I'm not surprised. The library version checks are pretty comprehensive, and although they were only added recently, you should get symbol resolution errors for older versions of the libraries before bad things happen (the checks are done very early). Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On May 14, 2014, at 2:51 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 14 May 2014, at 20:46, Aaron Hurt <ahurt@ena.com> wrote:
Just installed a fresh new VM with 6.5 … and performed the following steps:
sudo yum groupinstall “Development Tools”
sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel
wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz
tar zvxf freeradius-server-3.0.3.tar.gz
cd freeradius-server-3.0.3
./configure; make; sudo make install
sudo su -
/usr/local/sbin/radiusd -X
…. SEGFAULT …..
I’ll install all of the debugging tools there as well and post that in a moment.
I'm not surprised. The library version checks are pretty comprehensive, and although they were only added recently, you should get symbol resolution errors for older versions of the libraries before bad things happen (the checks are done very early).
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
ldd -v /usr/local/sbin/radiusd … http://pastie.org/pastes/9176044/text gdb with backtrace: http://pastie.org/pastes/9176068/text This seems to be the same on the new VM as I saw on the other system. — Aaron
On 14 May 2014, at 20:58, Aaron Hurt <ahurt@ena.com> wrote:
On May 14, 2014, at 2:51 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 14 May 2014, at 20:46, Aaron Hurt <ahurt@ena.com> wrote:
Just installed a fresh new VM with 6.5 … and performed the following steps:
sudo yum groupinstall “Development Tools”
sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel
wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz
tar zvxf freeradius-server-3.0.3.tar.gz
cd freeradius-server-3.0.3
./configure; make; sudo make install
sudo su -
/usr/local/sbin/radiusd -X
…. SEGFAULT …..
I’ll install all of the debugging tools there as well and post that in a moment.
I'm not surprised. The library version checks are pretty comprehensive, and although they were only added recently, you should get symbol resolution errors for older versions of the libraries before bad things happen (the checks are done very early).
No crash on 6.3 *sigh*. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On May 14, 2014, at 3:28 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 14 May 2014, at 20:58, Aaron Hurt <ahurt@ena.com> wrote:
On May 14, 2014, at 2:51 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 14 May 2014, at 20:46, Aaron Hurt <ahurt@ena.com> wrote:
Just installed a fresh new VM with 6.5 … and performed the following steps:
sudo yum groupinstall “Development Tools”
sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel
wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz
tar zvxf freeradius-server-3.0.3.tar.gz
cd freeradius-server-3.0.3
./configure; make; sudo make install
sudo su -
/usr/local/sbin/radiusd -X
…. SEGFAULT …..
I’ll install all of the debugging tools there as well and post that in a moment.
I'm not surprised. The library version checks are pretty comprehensive, and although they were only added recently, you should get symbol resolution errors for older versions of the libraries before bad things happen (the checks are done very early).
No crash on 6.3 *sigh*.
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
This is a list of ALL the installed packages with version info on my test VM: https://gist.github.com/leprechau/57412c966e0a256be89a — Aaron
On May 14, 2014, at 3:28 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 14 May 2014, at 20:58, Aaron Hurt <ahurt@ena.com> wrote:
No crash on 6.3 *sigh*.
I’d be happy to post the virtualbox image of the machine I just built where this is happening if it would help? — Aaron
That would help, thanks. Sent from my iPhone
On May 14, 2014, at 5:32 PM, Aaron Hurt <ahurt@ena.com> wrote:
On May 14, 2014, at 3:28 PM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 14 May 2014, at 20:58, Aaron Hurt <ahurt@ena.com> wrote:
No crash on 6.3 *sigh*.
I’d be happy to post the virtualbox image of the machine I just built where this is happening if it would help?
— Aaron - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
On May 14, 2014, at 6:57 PM, Alan DeKok <aland@deployingradius.com> wrote:
That would help, thanks.
It’s right around 1GB exported from VirtualBox and uploaded to my dropbox account. The sources are right in root’s home directory and the password is just: password https://www.dropbox.com/s/hx4ez074mt04pjh/sles65-frtest.ova -- Aaron
Aaron, Alan D, et al. Just to confirm, I've been able to reproduce on my CentOS 6.5 system with an RPM version of this. :-/ Stefan From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Aaron Hurt Sent: 14 May 2014 20:46 To: FreeRadius developers mailing list Subject: Re: segfault with 3.0.3 on rhel 6.5 Just installed a fresh new VM with 6.5 ... and performed the following steps: sudo yum groupinstall "Development Tools" sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz tar zvxf freeradius-server-3.0.3.tar.gz cd freeradius-server-3.0.3 ./configure; make; sudo make install sudo su - /usr/local/sbin/radiusd -X .... SEGFAULT ..... I'll install all of the debugging tools there as well and post that in a moment. On May 14, 2014, at 2:07 PM, <A.L.M.Buxey@lboro.ac.uk<mailto:A.L.M.Buxey@lboro.ac.uk>> <A.L.M.Buxey@lboro.ac.uk<mailto:A.L.M.Buxey@lboro.ac.uk>> wrote: hi, take Alans suggestion (I have seen this either) - ensure that traces of older versions arent around - eg in used PATHs ...and after the make ; make install do ldconfig -v then see.... alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
Oh, and to follow up on this, this CentOS 6.5 image has *never* seen FreeRADIUS before. It has only ever been used to *build* FreeRADIUS, never to deploy it. I'll go back through Aaron's thread and pull together all the debug stuff that he has. Stefan From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Stefan Paetow Sent: 15 May 2014 09:56 To: FreeRadius developers mailing list Subject: RE: segfault with 3.0.3 on rhel 6.5 Aaron, Alan D, et al. Just to confirm, I've been able to reproduce on my CentOS 6.5 system with an RPM version of this. :-/ Stefan From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org<mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org> [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Aaron Hurt Sent: 14 May 2014 20:46 To: FreeRadius developers mailing list Subject: Re: segfault with 3.0.3 on rhel 6.5 Just installed a fresh new VM with 6.5 ... and performed the following steps: sudo yum groupinstall "Development Tools" sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz tar zvxf freeradius-server-3.0.3.tar.gz cd freeradius-server-3.0.3 ./configure; make; sudo make install sudo su - /usr/local/sbin/radiusd -X .... SEGFAULT ..... I'll install all of the debugging tools there as well and post that in a moment. On May 14, 2014, at 2:07 PM, <A.L.M.Buxey@lboro.ac.uk<mailto:A.L.M.Buxey@lboro.ac.uk>> <A.L.M.Buxey@lboro.ac.uk<mailto:A.L.M.Buxey@lboro.ac.uk>> wrote: hi, take Alans suggestion (I have seen this either) - ensure that traces of older versions arent around - eg in used PATHs ...and after the make ; make install do ldconfig -v then see.... alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238 Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
Alan D, Aaron C-B, My debug bits of said problems are at: https://www.dropbox.com/sh/sbqyy7gvzrd3egt/AACx7nSY3pBIFPJNCaP5yKaCa/FreeRAD... Let me know if there are any other bits you want me to run. Have snapshotted the system just in case. Stefan From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Stefan Paetow Sent: 15 May 2014 09:56 To: FreeRadius developers mailing list Subject: RE: segfault with 3.0.3 on rhel 6.5 Aaron, Alan D, et al. Just to confirm, I've been able to reproduce on my CentOS 6.5 system with an RPM version of this. :-/ Stefan From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org<mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org> [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Aaron Hurt Sent: 14 May 2014 20:46 To: FreeRadius developers mailing list Subject: Re: segfault with 3.0.3 on rhel 6.5 Just installed a fresh new VM with 6.5 ... and performed the following steps: sudo yum groupinstall "Development Tools" sudo yum install openssl-devel libtalloc-devel zlib-devel unixODBC-devel readline-devel gdbm-devel pam-devel net-snmp-devel net-snmp-utils libpcap-devel pcre-devel wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.3.tar.gz tar zvxf freeradius-server-3.0.3.tar.gz cd freeradius-server-3.0.3 ./configure; make; sudo make install sudo su - /usr/local/sbin/radiusd -X .... SEGFAULT ..... I'll install all of the debugging tools there as well and post that in a moment. On May 14, 2014, at 2:07 PM, <A.L.M.Buxey@lboro.ac.uk<mailto:A.L.M.Buxey@lboro.ac.uk>> <A.L.M.Buxey@lboro.ac.uk<mailto:A.L.M.Buxey@lboro.ac.uk>> wrote: hi, take Alans suggestion (I have seen this either) - ensure that traces of older versions arent around - eg in used PATHs ...and after the make ; make install do ldconfig -v then see.... alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238 Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
On 15 May 2014, at 14:09, Stefan Paetow <Stefan.Paetow@ja.net> wrote:
Alan D, Aaron C-B,
My debug bits of said problems are at:
https://www.dropbox.com/sh/sbqyy7gvzrd3egt/AACx7nSY3pBIFPJNCaP5yKaCa/FreeRAD...
Let me know if there are any other bits you want me to run. Have snapshotted the system just in case.
It really needs to be with --enable-developer so the optimisation is turned off, else the backtraces aren't useful. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On 15/05/14 09:56, Stefan Paetow wrote:
Aaron, Alan D, et al.
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I *can't* repro this on a 6.5 box compiled from source. Can I just confirm people are seeing it segfault on startup with a default config? No action required?
On 15 May 2014, at 14:56, Phil Mayers <p.mayers@IMPERIAL.AC.UK> wrote:
On 15/05/14 09:56, Stefan Paetow wrote:
Aaron, Alan D, et al.
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I *can't* repro this on a 6.5 box compiled from source.
Can I just confirm people are seeing it segfault on startup with a default config? No action required?
Difference appears to be whether it's built with --enable-developer or not. Not results in SEGV. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On May 15, 2014, at 9:00 AM, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 15 May 2014, at 14:56, Phil Mayers <p.mayers@IMPERIAL.AC.UK> wrote:
On 15/05/14 09:56, Stefan Paetow wrote:
Aaron, Alan D, et al.
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I *can't* repro this on a 6.5 box compiled from source.
Can I just confirm people are seeing it segfault on startup with a default config? No action required?
Difference appears to be whether it's built with --enable-developer or not.
Not results in SEGV.
I can confirm this on machine where I have been testing the 'freeradius-server-3.0.3.tar.gz’ tarball … ./configure —enable-developer; make; make install NO SEGV ./configure; make; make install SEGV — Aaron
On 15/05/14 15:30, Phil Mayers wrote:
On 15/05/14 15:00, Arran Cudbard-Bell wrote:
Difference appears to be whether it's built with --enable-developer or not.
Not results in SEGV.
Let's see if a git-bisect can help here... firing one off now.
Bah. Scratch that - something is triggering a ./configure on every checkout and I can't run it from within the build dir on my dev box. Sorry.
Yes, that’s the case for me. No action required. Bruce Bauman - Systems Administrator Telecommunications Division - Rutgers University University Network Architecture and Applications Office: 848.445.6363 On May 15, 2014, at 9:56 AM, Phil Mayers <p.mayers@imperial.ac.uk> wrote:
On 15/05/14 09:56, Stefan Paetow wrote:
Aaron, Alan D, et al.
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I *can't* repro this on a 6.5 box compiled from source.
Can I just confirm people are seeing it segfault on startup with a default config? No action required? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Yes. System is a CentOS 6.4 system that was upgraded to 6.5. Packages were built with rpmbuild -ba and the SPEC that I've included in the URL (refresh your page). I've also set a panic action, yet when I try to start the service, it says none is set. :-/ Stefan -----Original Message----- From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Phil Mayers Sent: 15 May 2014 14:56 To: freeradius-devel@lists.freeradius.org Subject: Re: segfault with 3.0.3 on rhel 6.5 On 15/05/14 09:56, Stefan Paetow wrote:
Aaron, Alan D, et al.
Just to confirm, I've been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I *can't* repro this on a 6.5 box compiled from source. Can I just confirm people are seeing it segfault on startup with a default config? No action required? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
Alan’s commit does indeed fix the issue in all my testing environments. The below is a simple patch which should apply to the freeradius-server-3.0.3 dist source. From f9e2d539599345b03dde495a36d4ec8bd90d78a5 Mon Sep 17 00:00:00 2001 From: Alan T. DeKok <aland@freeradius.org> Date: Thu, 15 May 2014 10:31:23 -0400 Subject: [PATCH] Use the correct data type. Closes #634 --- src/main/mainconfig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/mainconfig.c b/src/main/mainconfig.c index 86757df..4564778 100644 --- a/src/main/mainconfig.c +++ b/src/main/mainconfig.c @@ -83,7 +83,7 @@ static char const *radlog_dest = NULL; */ static char const *localstatedir = NULL; static char const *prefix = NULL; -static char my_name; +static char const *my_name = NULL; static char const *sbindir = NULL; static char const *run_dir = NULL; static char *syslog_facility = NULL; -- 1.7.1 On May 15, 2014, at 9:29 AM, Stefan Paetow <Stefan.Paetow@ja.net> wrote:
Yes. System is a CentOS 6.4 system that was upgraded to 6.5.
Packages were built with rpmbuild -ba and the SPEC that I've included in the URL (refresh your page).
I've also set a panic action, yet when I try to start the service, it says none is set.
:-/
Stefan
-----Original Message----- From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Phil Mayers Sent: 15 May 2014 14:56 To: freeradius-devel@lists.freeradius.org Subject: Re: segfault with 3.0.3 on rhel 6.5
On 15/05/14 09:56, Stefan Paetow wrote:
Aaron, Alan D, et al.
Just to confirm, I've been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I *can't* repro this on a 6.5 box compiled from source.
Can I just confirm people are seeing it segfault on startup with a default config? No action required? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Confirmed on this end. Stefan -----Original Message----- From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Aaron Hurt Sent: 15 May 2014 15:55 To: FreeRadius developers mailing list Subject: Re: segfault with 3.0.3 on rhel 6.5 Alan's commit does indeed fix the issue in all my testing environments. The below is a simple patch which should apply to the freeradius-server-3.0.3 dist source.
From f9e2d539599345b03dde495a36d4ec8bd90d78a5 Mon Sep 17 00:00:00 2001 From: Alan T. DeKok <aland@freeradius.org> Date: Thu, 15 May 2014 10:31:23 -0400 Subject: [PATCH] Use the correct data type. Closes #634
--- src/main/mainconfig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/mainconfig.c b/src/main/mainconfig.c index 86757df..4564778 100644 --- a/src/main/mainconfig.c +++ b/src/main/mainconfig.c @@ -83,7 +83,7 @@ static char const *radlog_dest = NULL; */ static char const *localstatedir = NULL; static char const *prefix = NULL; -static char my_name; +static char const *my_name = NULL; static char const *sbindir = NULL; static char const *run_dir = NULL; static char *syslog_facility = NULL; -- 1.7.1 On May 15, 2014, at 9:29 AM, Stefan Paetow <Stefan.Paetow@ja.net> wrote:
Yes. System is a CentOS 6.4 system that was upgraded to 6.5.
Packages were built with rpmbuild -ba and the SPEC that I've included in the URL (refresh your page).
I've also set a panic action, yet when I try to start the service, it says none is set.
:-/
Stefan
-----Original Message----- From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius .org] On Behalf Of Phil Mayers Sent: 15 May 2014 14:56 To: freeradius-devel@lists.freeradius.org Subject: Re: segfault with 3.0.3 on rhel 6.5
On 15/05/14 09:56, Stefan Paetow wrote:
Aaron, Alan D, et al.
Just to confirm, I've been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I *can't* repro this on a 6.5 box compiled from source.
Can I just confirm people are seeing it segfault on startup with a default config? No action required? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
Ahh, smashing! Glad you found it (or something). I never got to run the 3.0.3 RC to see if there was a problem or not. S. -----Original Message----- From: freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org [mailto:freeradius-devel-bounces+stefan.paetow=ja.net@lists.freeradius.org] On Behalf Of Alan DeKok Sent: 15 May 2014 15:34 To: FreeRadius developers mailing list Subject: Re: segfault with 3.0.3 on rhel 6.5 Stefan Paetow wrote:
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I've pushed a fix. It turns out that changing a "char*" pointer to a "char" variable causes problems. Arran owes me a beer. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
On 15/05/14 15:33, Alan DeKok wrote:
Stefan Paetow wrote:
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I've pushed a fix. It turns out that changing a "char*" pointer to a "char" variable causes problems.
Crazy! Given when the commit was made, I guess there's gcc-fu causing it to not be triggered on older/other systems.
On 15 May 2014, at 15:33, Alan DeKok <aland@deployingradius.com> wrote:
Stefan Paetow wrote:
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I've pushed a fix. It turns out that changing a "char*" pointer to a "char" variable causes problems.
Arran owes me a beer.
I do *sigh*. I've added a line to the build matrix to build with -O2 and various env variables which enabled extra checks in Malloc. Hopefully one of those things will catch this sort of stupidity in future. The compiler can't catch these issues as were taking the pointer or an offset assigning it to a void* and then writing to it as the config is parsed. None of the normal type checking works. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On 15 May 2014, at 17:17, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 15 May 2014, at 15:33, Alan DeKok <aland@deployingradius.com> wrote:
Stefan Paetow wrote:
Just to confirm, I’ve been able to reproduce on my CentOS 6.5 system with an RPM version of this.
I've pushed a fix. It turns out that changing a "char*" pointer to a "char" variable causes problems.
Arran owes me a beer.
I do *sigh*.
I've added a line to the build matrix to build with -O2 and various env variables which enabled extra checks in Malloc. Hopefully one of those things will catch this sort of stupidity in future.
The compiler can't catch these issues as were taking the pointer or an offset assigning it to a void* and then writing to it as the config is parsed. None of the normal type checking works.
Just a heads up, memory scribbling is now turned on by default in builds against glibc with --enable-developer (or from .git). If there are any use after free issues, or instances where uninitialised memory is accessed it's very likely the server will crash. This will also likely uncover defects in our dependencies as I imagine malloc and free will work in the same way for those libraries. So if you suddenly start seeing crashes in testing when you didn't before that's most likely why. I think were also to need to do RC releases a couple of week before minor releases just to check that nobody has any issues until the test suite is more comprehensive. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On 16/05/14 13:28, Arran Cudbard-Bell wrote:
I've added a line to the build matrix to build with -O2 and various env variables which enabled extra checks in Malloc. Hopefully one of those things will catch this sort of stupidity in future.
M_CHECK_ACTION=3 might be of interest too. But M_PERTURB is definitely a good "devel" action to have on.
On 16 May 2014, at 14:03, Phil Mayers <p.mayers@IMPERIAL.AC.UK> wrote:
On 16/05/14 13:28, Arran Cudbard-Bell wrote:
I've added a line to the build matrix to build with -O2 and various env variables which enabled extra checks in Malloc. Hopefully one of those things will catch this sort of stupidity in future.
M_CHECK_ACTION=3 might be of interest too. But M_PERTURB is definitely a good "devel" action to have on.
done. MALLOC_CHECK_ACTION_ was already on for a travis build. I didn't add it to debug.c because of the performance hit, but I guess if you have --enable-developer on then you don't care about performance. Just a reminder if you're building from git and are using FreeRADIUS in performance critical situations you must pass --disable-developer to the configure script. There are significant numbers of extra memory checks which which will harm performance. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (7)
-
A.L.M.Buxey@lboro.ac.uk -
Aaron Hurt -
Alan DeKok -
Arran Cudbard-Bell -
Bruce Bauman -
Phil Mayers -
Stefan Paetow