Closed lumirl closed 8 years ago
I've pushed a fix for v3.1.x. The gdb backtrace was exactly what I needed to fix it.
Looking at v3.0.x, I can't see where a similar crash would occur. Can you post a gdb backtrace for v3.0.x HEAD?
I donno what is a gdb HEAD backtrace but I did the same as is written in your howto... If i should do any other tests then I need your instructions how to do them...
In 3.0.11 it crashes not always. Sometimes - usually the first time it send access reject but the second time it's always a crash.
Here is gdb output:
====================================================================
gdb ./sbin/radiusd
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
Copyright (C) 2013 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/freeradius3/sbin/radiusd...done.
(gdb) run -xfl stdout
Starting program: /usr/local/freeradius3/./sbin/radiusd -xfl stdout
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Copyright (C) 1999-2016 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
Detaching after fork from child process 76779.
Starting - reading configuration files ...
Found debugger attached
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Creating attribute SQL-Group
Creating attribute Unix-Group
rlm_sql_mysql: libmysql version: 5.5.47-MariaDB
[New Thread 0x7fffef7f2700 (LWP 76780)]
[Thread 0x7fffef7f2700 (LWP 76780) exited]
rlm_sql (sql): Attempting to connect to database "radius"
rlm_sql (sql): Initialising connection pool
rlm_sql (sql): Opening additional connection (0), 1 of 32 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql (sql): Opening additional connection (1), 1 of 31 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql (sql): Opening additional connection (2), 1 of 30 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql (sql): Opening additional connection (3), 1 of 29 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql (sql): Opening additional connection (4), 1 of 28 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
tls: Using cached TLS configuration from previous invocation
tls: Using cached TLS configuration from previous invocation
[/usr/local/freeradius3/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay" found in filter list for realm "DEFAULT".
[/usr/local/freeradius3/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay-USec" found in filter list for realm "DEFAULT".
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
rlm_mschap (mschap): using internal authentication
[New Thread 0x7fffef7f2700 (LWP 76786)]
[New Thread 0x7fffedcc3700 (LWP 76787)]
[New Thread 0x7fffed4c2700 (LWP 76788)]
[New Thread 0x7fffeccc1700 (LWP 76789)]
[New Thread 0x7fffe7fff700 (LWP 76790)]
radiusd: #### Opening IP addresses and Ports ####
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address * port 1816 bound to server default
Listening on acct address * port 1817 bound to server default
Listening on proxy address * port 54722
Ready to process requests
Waking up in 0.3 seconds.
(0) Received Accounting-Request Id 238 from 62.245.76.18:1029 to 81.2.216.206:1817 length 129
(0) User-Name = "lumir"
(0) NAS-Identifier = "P660HW-T3"
(0) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(0) Calling-Station-Id = "c4-42-02-64-71-65"
(0) Acct-Status-Type = Interim-Update
(0) Acct-Input-Octets = 26936
(0) Acct-Output-Octets = 118238
(0) Acct-Input-Packets = 258
(0) Acct-Output-Packets = 265
(0) Acct-Session-Time = 80
(0) Acct-Input-Gigawords = 0
(0) Acct-Output-Gigawords = 0
(0) # Executing section preacct from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(0) &Acct-Unique-Session-Id := a7e046ae9383d3c8e00f80b98aecd15a
(0) # Executing section accounting from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
rlm_sql (sql): Reserved connection (0)
(0) sql: SQL query returned: success
(0) sql: 17 record(s) updated
rlm_sql (sql): Released connection (0)
rlm_sql (sql): Need 5 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (5), 1 of 27 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
(0) Sent Accounting-Response Id 238 from 81.2.216.206:1817 to 62.245.76.18:1029 length 0
Ready to process requests
Waking up in 0.3 seconds.
(1) Received Accounting-Request Id 239 from 62.245.76.18:1029 to 81.2.216.206:1817 length 129
(1) User-Name = "lumir"
(1) NAS-Identifier = "P660HW-T3"
(1) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(1) Calling-Station-Id = "c4-42-02-64-71-65"
(1) Acct-Status-Type = Interim-Update
(1) Acct-Input-Octets = 26936
(1) Acct-Output-Octets = 118238
(1) Acct-Input-Packets = 258
(1) Acct-Output-Packets = 265
(1) Acct-Session-Time = 90
(1) Acct-Input-Gigawords = 0
(1) Acct-Output-Gigawords = 0
(1) # Executing section preacct from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(1) &Acct-Unique-Session-Id := a7e046ae9383d3c8e00f80b98aecd15a
(1) # Executing section accounting from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
rlm_sql (sql): Reserved connection (1)
(1) sql: SQL query returned: success
(1) sql: 17 record(s) updated
rlm_sql (sql): Released connection (1)
rlm_sql (sql): Need 4 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (6), 1 of 26 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
(1) Sent Accounting-Response Id 239 from 81.2.216.206:1817 to 62.245.76.18:1029 length 0
Ready to process requests
Waking up in 0.3 seconds.
(2) Received Accounting-Request Id 240 from 62.245.76.18:1029 to 81.2.216.206:1817 length 141
(2) User-Name = "lumir"
(2) NAS-Identifier = "P660HW-T3"
(2) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(2) Calling-Station-Id = "c4-42-02-64-71-65"
(2) Acct-Status-Type = Stop
(2) Acct-Input-Octets = 26936
(2) Acct-Output-Octets = 118238
(2) Acct-Input-Packets = 258
(2) Acct-Output-Packets = 265
(2) Acct-Delay-Time = 0
(2) Acct-Session-Time = 93
(2) Acct-Terminate-Cause = Lost-Carrier
(2) Acct-Input-Gigawords = 0
(2) Acct-Output-Gigawords = 0
(2) # Executing section preacct from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(2) &Acct-Unique-Session-Id := a7e046ae9383d3c8e00f80b98aecd15a
(2) # Executing section accounting from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
rlm_sql (sql): Reserved connection (2)
(2) sql: SQL query returned: success
(2) sql: 17 record(s) updated
rlm_sql (sql): Released connection (2)
rlm_sql (sql): Need 3 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (7), 1 of 25 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
(2) Sent Accounting-Response Id 240 from 81.2.216.206:1817 to 62.245.76.18:1029 length 0
Ready to process requests
Waking up in 0.3 seconds.
(3) Received Access-Request Id 241 from 62.245.76.18:1028 to 81.2.216.206:1816 length 129
(3) User-Name = "lumir"
(3) NAS-IP-Address = 192.168.101.254
(3) NAS-Identifier = "P660HW-T3"
(3) Framed-MTU = 1496
(3) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(3) Calling-Station-Id = "c4-42-02-64-71-65"
(3) NAS-Port-Type = Wireless-802.11
(3) EAP-Message = 0x0201000a016c756d6972
(3) Message-Authenticator = 0xc50735bf83ef6addd64fb4657cc17ef5
(3) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(3) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(3) eap: EAP session adding &reply:State = 0x1a481f971a4a067a
(3) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(3) Sent Access-Challenge Id 241 from 81.2.216.206:1816 to 62.245.76.18:1028 length 0
(3) EAP-Message = 0x010200061920
(3) Message-Authenticator = 0x00000000000000000000000000000000
(3) State = 0x1a481f971a4a067ac89016a059ab3729
Waking up in 0.3 seconds.
(4) Received Access-Request Id 242 from 62.245.76.18:1028 to 81.2.216.206:1816 length 333
(4) User-Name = "lumir"
(4) NAS-IP-Address = 192.168.101.254
(4) NAS-Identifier = "P660HW-T3"
(4) Framed-MTU = 1496
(4) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(4) Calling-Station-Id = "c4-42-02-64-71-65"
(4) NAS-Port-Type = Wireless-802.11
(4) EAP-Message = 0x020200c41980000000ba16030100b5010000b10301bc42029cfb6c93299990e47bfafe47d6bd7abb0ca9a741a1989ca419264bdcab000048c014c00a00390038c00fc0050035c013c00900330032c00ec004002fc011c007c00cc00200050004c012c00800160013c00dc003000a001500120009001400
(4) State = 0x1a481f971a4a067ac89016a059ab3729
(4) Message-Authenticator = 0xdc518bc7738c7f3b9d2a765224978d6e
(4) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(4) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(4) eap: Expiring EAP session with state 0x1a481f971a4a067a
(4) eap: Finished EAP session with state 0x1a481f971a4a067a
(4) eap: Previous EAP request found for state 0x1a481f971a4a067a, released from the list
(4) eap: EAP session adding &reply:State = 0x1a481f971b4b067a
(4) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(4) Sent Access-Challenge Id 242 from 81.2.216.206:1816 to 62.245.76.18:1028 length 0
(4) EAP-Message = 0x010303ec19c000000a8f1603010059020000550301d0ec6fba2269f0da0b05741190a46acba2e93a10d03b76f1148e9c525bae732b2023425814d17cf875914b653f5ca2f06ba6823c70fef241392d60a1bd41614283c01400000dff01000100000b00040300010216030108d30b0008cf0008cc0003de
(4) Message-Authenticator = 0x00000000000000000000000000000000
(4) State = 0x1a481f971b4b067ac89016a059ab3729
Waking up in 0.2 seconds.
(5) Received Access-Request Id 243 from 62.245.76.18:1028 to 81.2.216.206:1816 length 143
(5) User-Name = "lumir"
(5) NAS-IP-Address = 192.168.101.254
(5) NAS-Identifier = "P660HW-T3"
(5) Framed-MTU = 1496
(5) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(5) Calling-Station-Id = "c4-42-02-64-71-65"
(5) NAS-Port-Type = Wireless-802.11
(5) EAP-Message = 0x020300061900
(5) State = 0x1a481f971b4b067ac89016a059ab3729
(5) Message-Authenticator = 0xf5bb40fbda3854ac6f1acb086d48182e
(5) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(5) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(5) eap: Expiring EAP session with state 0x1a481f971b4b067a
(5) eap: Finished EAP session with state 0x1a481f971b4b067a
(5) eap: Previous EAP request found for state 0x1a481f971b4b067a, released from the list
(5) eap: EAP session adding &reply:State = 0x1a481f97184c067a
(5) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(5) Sent Access-Challenge Id 243 from 81.2.216.206:1816 to 62.245.76.18:1028 length 0
(5) EAP-Message = 0x010403e819400a5747e1cfc015d21f4ae374aaf440359214dea76f6bf450b59c9a7b43e0c25f38970fedbcb51ec28aaf7fabe577346986d2d381cdf688196d13105d0009d5ed5bb7a08ac48561f5a6aa5fc8ed87202d9e23c1b4c4f73599fa17d923f9efc6fa2a0e6acfca1c08f31c0004e8308204e430
(5) Message-Authenticator = 0x00000000000000000000000000000000
(5) State = 0x1a481f97184c067ac89016a059ab3729
Waking up in 0.2 seconds.
(6) Received Access-Request Id 244 from 62.245.76.18:1028 to 81.2.216.206:1816 length 143
(6) User-Name = "lumir"
(6) NAS-IP-Address = 192.168.101.254
(6) NAS-Identifier = "P660HW-T3"
(6) Framed-MTU = 1496
(6) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(6) Calling-Station-Id = "c4-42-02-64-71-65"
(6) NAS-Port-Type = Wireless-802.11
(6) EAP-Message = 0x020400061900
(6) State = 0x1a481f97184c067ac89016a059ab3729
(6) Message-Authenticator = 0xa4ee3508c1e3a24c39a78a97ff9bef41
(6) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(6) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(6) eap: Expiring EAP session with state 0x1a481f97184c067a
(6) eap: Finished EAP session with state 0x1a481f97184c067a
(6) eap: Previous EAP request found for state 0x1a481f97184c067a, released from the list
(6) eap: EAP session adding &reply:State = 0x1a481f97194d067a
(6) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(6) Sent Access-Challenge Id 244 from 81.2.216.206:1816 to 62.245.76.18:1028 length 0
(6) EAP-Message = 0x010502d1190020417574686f72697479820900d516dbd495d0f03d300f0603551d130101ff040530030101ff30360603551d1f042f302d302ba029a0278625687474703a2f2f7777772e6578616d706c652e6f72672f6578616d706c655f63612e63726c300d06092a864886f70d01010b050003820101
(6) Message-Authenticator = 0x00000000000000000000000000000000
(6) State = 0x1a481f97194d067ac89016a059ab3729
Waking up in 0.2 seconds.
(7) Received Access-Request Id 245 from 62.245.76.18:1028 to 81.2.216.206:1816 length 281
(7) User-Name = "lumir"
(7) NAS-IP-Address = 192.168.101.254
(7) NAS-Identifier = "P660HW-T3"
(7) Framed-MTU = 1496
(7) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(7) Calling-Station-Id = "c4-42-02-64-71-65"
(7) NAS-Port-Type = Wireless-802.11
(7) EAP-Message = 0x020500901980000000861603010046100000424104f614aaadbfaa1c01ab0e5d3b7312cc64c9c1061a7fce000907c9c95767c44ec20645e6336e071b66221728b892275ab017307f96461efbe7b10ff833e0276dbc1403010001011603010030273ce63c08b0d0dec7e1dc4f622c027d29c7c2ec92363c
(7) State = 0x1a481f97194d067ac89016a059ab3729
(7) Message-Authenticator = 0xfb883fd8c7a20c544f23bd4d6cd194e9
(7) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(7) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(7) eap: Expiring EAP session with state 0x1a481f97194d067a
(7) eap: Finished EAP session with state 0x1a481f97194d067a
(7) eap: Previous EAP request found for state 0x1a481f97194d067a, released from the list
(7) eap: EAP session adding &reply:State = 0x1a481f971e4e067a
(7) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(7) Sent Access-Challenge Id 245 from 81.2.216.206:1816 to 62.245.76.18:1028 length 0
(7) EAP-Message = 0x0106004119001403010001011603010030471dea12bd95450cb1d72f4cff8dd22ae48bf2d9309f9a9e2b562dcc9ebd704ca7fd1722518aa87ff21d1038fea42a16
(7) Message-Authenticator = 0x00000000000000000000000000000000
(7) State = 0x1a481f971e4e067ac89016a059ab3729
Waking up in 0.1 seconds.
(8) Received Access-Request Id 246 from 62.245.76.18:1028 to 81.2.216.206:1816 length 143
(8) User-Name = "lumir"
(8) NAS-IP-Address = 192.168.101.254
(8) NAS-Identifier = "P660HW-T3"
(8) Framed-MTU = 1496
(8) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(8) Calling-Station-Id = "c4-42-02-64-71-65"
(8) NAS-Port-Type = Wireless-802.11
(8) EAP-Message = 0x020600061900
(8) State = 0x1a481f971e4e067ac89016a059ab3729
(8) Message-Authenticator = 0xdfab60a9c5c3a9b0c10d8b0e8cc96fa7
(8) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(8) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(8) eap: Expiring EAP session with state 0x1a481f971e4e067a
(8) eap: Finished EAP session with state 0x1a481f971e4e067a
(8) eap: Previous EAP request found for state 0x1a481f971e4e067a, released from the list
(8) eap: EAP session adding &reply:State = 0x1a481f971f4f067a
(8) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(8) Sent Access-Challenge Id 246 from 81.2.216.206:1816 to 62.245.76.18:1028 length 0
(8) EAP-Message = 0x0107002b1900170301002092772c6084d7a2cc06332090e75181439b49eca897d04a08a26f6983768f187d
(8) Message-Authenticator = 0x00000000000000000000000000000000
(8) State = 0x1a481f971f4f067ac89016a059ab3729
Waking up in 0.1 seconds.
(9) Received Access-Request Id 247 from 62.245.76.18:1028 to 81.2.216.206:1816 length 180
(9) User-Name = "lumir"
(9) NAS-IP-Address = 192.168.101.254
(9) NAS-Identifier = "P660HW-T3"
(9) Framed-MTU = 1496
(9) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(9) Calling-Station-Id = "c4-42-02-64-71-65"
(9) NAS-Port-Type = Wireless-802.11
(9) EAP-Message = 0x0207002b19001703010020d106c3c3baf4bdd60c5b5b7ed47588fce2263adc14ed4bc8315565bd37f99a6e
(9) State = 0x1a481f971f4f067ac89016a059ab3729
(9) Message-Authenticator = 0x74ef4e417f49e35242e8296709851cf8
(9) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(9) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(9) eap: Expiring EAP session with state 0x1a481f971f4f067a
(9) eap: Finished EAP session with state 0x1a481f971f4f067a
(9) eap: Previous EAP request found for state 0x1a481f971f4f067a, released from the list
(9) eap_peap: Got inner identity 'lumir'
(9) Virtual server inner-tunnel received request
(9) EAP-Message = 0x0207000a016c756d6972
(9) FreeRADIUS-Proxied-To = 127.0.0.1
(9) User-Name = "lumir"
(9) WARNING: Outer and inner identities are the same. User privacy is compromised.
(9) server inner-tunnel {
(9) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/inner-tunnel
(9) &Proxy-To-Realm := LOCAL
(9) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/inner-tunnel
(9) eap: EAP session adding &reply:State = 0xf6ce16b8f6c60c60
(9) } # server inner-tunnel
(9) Virtual server sending reply
(9) EAP-Message = 0x0108002b1a0108002610cc4cd1ff5417a393c12aee74842f330c667265657261646975732d332e302e3131
(9) Message-Authenticator = 0x00000000000000000000000000000000
(9) State = 0xf6ce16b8f6c60c60a2ecbd579aa43c60
(9) eap_peap: Got tunneled reply RADIUS code 11
(9) eap_peap: EAP-Message = 0x0108002b1a0108002610cc4cd1ff5417a393c12aee74842f330c667265657261646975732d332e302e3131
(9) eap_peap: Message-Authenticator = 0x00000000000000000000000000000000
(9) eap_peap: State = 0xf6ce16b8f6c60c60a2ecbd579aa43c60
(9) eap: EAP session adding &reply:State = 0x1a481f971c40067a
(9) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(9) Sent Access-Challenge Id 247 from 81.2.216.206:1816 to 62.245.76.18:1028 length 0
(9) EAP-Message = 0x0108004b1900170301004085c806d7c231f52cb9a1c0537e5bcb007e7077336b23e6814b6a55857e3e606dde17d703d2d118020b7dcb66c704687fa1b4822bc180967fb27e6b1ef96248ea
(9) Message-Authenticator = 0x00000000000000000000000000000000
(9) State = 0x1a481f971c40067ac89016a059ab3729
Waking up in 0.1 seconds.
(10) Received Access-Request Id 248 from 62.245.76.18:1028 to 81.2.216.206:1816 length 244
(10) User-Name = "lumir"
(10) NAS-IP-Address = 192.168.101.254
(10) NAS-Identifier = "P660HW-T3"
(10) Framed-MTU = 1496
(10) Called-Station-Id = "00-02-cf-b4-27-e7:VOIP"
(10) Calling-Station-Id = "c4-42-02-64-71-65"
(10) NAS-Port-Type = Wireless-802.11
(10) EAP-Message = 0x0208006b1900170301006016f9d0113af9a6ef5dfc13be957f9a13f1761ce3fffa8afc10e1902599e64ab1b683d648fac24286f301c7224a12b369718b3bfc3fb23dff6c209c09fef44b11d81ffab9403be2dd00a670075eb15bc928f1dc9f1fd4c58a46864273f3cb8a8b
(10) State = 0x1a481f971c40067ac89016a059ab3729
(10) Message-Authenticator = 0xb1fc0ac1f839fb3939c2adf09115303a
(10) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(10) # Executing group from file /usr/local/freeradius3/etc/raddb/sites-enabled/default
(10) eap: Expiring EAP session with state 0xf6ce16b8f6c60c60
(10) eap: Finished EAP session with state 0x1a481f971c40067a
(10) eap: Previous EAP request found for state 0x1a481f971c40067a, released from the list
(10) Virtual server inner-tunnel received request
(10) EAP-Message = 0x020800401a0208003b318942a6ff58d566a6beeccfd4758b232c0000000000000000bdcc7c3bd440bdba9638102405da8a03b39591dffd4180c0006c756d6972
(10) FreeRADIUS-Proxied-To = 127.0.0.1
(10) User-Name = "lumir"
(10) State = 0xf6ce16b8f6c60c60a2ecbd579aa43c60
(10) WARNING: Outer and inner identities are the same. User privacy is compromised.
(10) server inner-tunnel {
(10) # Executing section authorize from file /usr/local/freeradius3/etc/raddb/sites-enabled/inner-tunnel
(10) &Proxy-To-Realm := LOCAL
rlm_sql (sql): Reserved connection (3)
rlm_sql (sql): Released connection (3)
rlm_sql (sql): Need 2 more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (8), 1 of 24 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
(10) sql_groupcmp
rlm_sql (sql): Reserved connection (4)
rlm_sql (sql): Released connection (4)
(10) sql_groupcmp finished: User is NOT a member of group wifi
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeccc1700 (LWP 76789)]
paircompare (request=request@entry=0x99ac70, req_list=0x7fffe8001540, check=check@entry=0x7fffe80098a0, rep_list=rep_list@entry=0x0)
at src/main/pair.c:537
537 if ((auth_item->da == from) || (!from)) {
Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.6.x86_64 pcre-8.32-15.el7_2.1.x86_64
(gdb) bt
#0 paircompare (request=request@entry=0x99ac70, req_list=0x7fffe8001540, check=check@entry=0x7fffe80098a0, rep_list=rep_list@entry=0x0)
at src/main/pair.c:537
#1 0x00007ffff7bb8521 in cond_cmp_values (request=0x99ac70, lhs_type=<optimized out>, lhs=<optimized out>, lhs_len=<optimized out>,
rhs_type=PW_TYPE_STRING, rhs=0x7fffeccbf1d0, rhs_len=4, c=<optimized out>, c=<optimized out>) at src/main/evaluate.c:315
#2 0x00007ffff7bb8951 in cond_normalise_and_cmp (request=0x99ac70, c=c@entry=0x8bc9c0, lhs_type=lhs_type@entry=PW_TYPE_INVALID,
lhs_enumv=lhs_enumv@entry=0x0, lhs=lhs@entry=0x0, lhs_len=lhs_len@entry=0) at src/main/evaluate.c:585
#3 0x00007ffff7bb928c in radius_evaluate_map (request=request@entry=0x99ac70, modreturn=modreturn@entry=2, depth=depth@entry=0, c=c@entry=0x8bc9c0)
at src/main/evaluate.c:654
#4 0x00007ffff7bb9380 in radius_evaluate_cond (request=request@entry=0x99ac70, modreturn=2, depth=depth@entry=0, c=0x8bc9c0) at src/main/evaluate.c:750
#5 0x0000000000424c77 in modcall_recurse (request=<optimized out>, component=MOD_AUTHORIZE, depth=1, entry=entry@entry=0x7fffeccbf728,
do_next_sibling=true) at src/main/modcall.c:479
#6 0x00000000004249c9 in modcall_child (request=<optimized out>, component=<optimized out>, depth=<optimized out>, entry=0x7fffeccbf710,
c=<optimized out>, result=0x7fffeccbf584, do_next_sibling=true) at src/main/modcall.c:408
#7 0x0000000000424b9e in modcall_recurse (request=request@entry=0x99ac70, component=component@entry=MOD_AUTHORIZE, depth=depth@entry=0,
entry=entry@entry=0x7fffeccbf710, do_next_sibling=do_next_sibling@entry=true) at src/main/modcall.c:785
#8 0x0000000000425db3 in modcall (component=component@entry=MOD_AUTHORIZE, c=c@entry=0x96cff0, request=request@entry=0x99ac70)
at src/main/modcall.c:1130
#9 0x0000000000420c8d in indexed_modcall (comp=comp@entry=MOD_AUTHORIZE, idx=idx@entry=0, request=request@entry=0x99ac70) at src/main/modules.c:1028
#10 0x0000000000421c1f in process_authorize (autz_type=autz_type@entry=0, request=request@entry=0x99ac70) at src/main/modules.c:2123
#11 0x0000000000410916 in rad_authenticate (request=request@entry=0x99ac70) at src/main/auth.c:489
#12 0x00000000004111f4 in rad_virtual_server (request=request@entry=0x99ac70) at src/main/auth.c:812
#13 0x00007fffee3d6909 in eappeap_process (handler=handler@entry=0x7fffdc000ba0, tls_session=tls_session@entry=0x7fffdc0023d0, auth_type_eap=2497330)
at src/modules/rlm_eap/types/rlm_eap_peap/peap.c:1006
#14 0x00007fffee3d4b8a in mod_process (arg=0x952de0, handler=0x7fffdc000ba0) at src/modules/rlm_eap/types/rlm_eap_peap/rlm_eap_peap.c:328
#15 0x00007ffff2862672 in eap_module_call (handler=handler@entry=0x7fffdc000ba0, module=<optimized out>, module=<optimized out>)
at src/modules/rlm_eap/eap.c:202
#16 0x00007ffff2862b93 in eap_method_select (inst=inst@entry=0x8e8160, handler=handler@entry=0x7fffdc000ba0) at src/modules/rlm_eap/eap.c:464
#17 0x00007ffff2861a39 in mod_authenticate (instance=0x8e8160, request=0x999c60) at src/modules/rlm_eap/rlm_eap.c:286
#18 0x000000000042589f in call_modsingle (request=0x999c60, sp=0x972e90, component=MOD_AUTHENTICATE) at src/main/modcall.c:302
#19 modcall_recurse (request=<optimized out>, component=MOD_AUTHENTICATE, depth=1, entry=entry@entry=0x7fffeccc0628, do_next_sibling=true)
at src/main/modcall.c:574
#20 0x00000000004249c9 in modcall_child (request=<optimized out>, component=<optimized out>, depth=<optimized out>, entry=0x7fffeccc0610,
c=<optimized out>, result=0x7fffeccc0484, do_next_sibling=true) at src/main/modcall.c:408
#21 0x0000000000424b9e in modcall_recurse (request=request@entry=0x999c60, component=component@entry=MOD_AUTHENTICATE, depth=depth@entry=0,
entry=entry@entry=0x7fffeccc0610, do_next_sibling=do_next_sibling@entry=true) at src/main/modcall.c:785
#22 0x0000000000425db3 in modcall (component=component@entry=MOD_AUTHENTICATE, c=c@entry=0x972d90, request=request@entry=0x999c60)
at src/main/modcall.c:1130
#23 0x0000000000420c8d in indexed_modcall (comp=comp@entry=MOD_AUTHENTICATE, idx=idx@entry=2497330, request=request@entry=0x999c60)
at src/main/modules.c:1028
#24 0x0000000000421c2c in process_authenticate (auth_type=auth_type@entry=2497330, request=request@entry=0x999c60) at src/main/modules.c:2131
#25 0x0000000000410cce in rad_check_password (request=0x999c60) at src/main/auth.c:252
---Type <return> to continue, or q <return> to quit---
#26 rad_authenticate (request=0x999c60) at src/main/auth.c:570
#27 0x00000000004335d2 in request_running (request=0x999c60, action=<optimized out>) at src/main/process.c:1527
#28 0x000000000042c994 in request_handler_thread (arg=0x988c10) at src/main/threads.c:690
#29 0x00007ffff63e6dc5 in start_thread () from /lib64/libpthread.so.0
#30 0x00007ffff5edcced in clone () from /lib64/libc.so.6
====================================================================
I believe that issue has already been fixed in the v3.0.x branch. Please try that instead of 3.0.11.
After I have downloaded latest 3.0.x branch using git it's working... I didn't know that latest stable 3.0.11 version has known bugs inside. Maybe you can put some info on the webpage to inform other users that there are some bugs in latest version and that they should use git to get all fixes... Thank you very much for your time!
The only way a stable version wouldn't have know bugs if is we released a new stable version every time we found a bug?
This is why I think version numbers are for weak minded people and are detrimental to the software industry as a whole.
..all software has bugs. of course the latest stable has known issues - eventually once all the KNOWN issues are known to be okay, the next version comes out - 3.0.12 - but you already have the pre-release of that with the HEAD version. thats better for you than eg me with my $$NETWORKVENDOR where I have to wait until engineers give me advanced access to special release code after weeks of emails....
On 18 May 2016 at 20:41, lumirl notifications@github.com wrote:
After I have downloaded latest 3.0.x branch using git it's working... I didn't know that latest stable 3.0.11 version has known bugs inside. Maybe you can put some info on the webpage to inform other users that there are some bugs in latest version and that they should use git to get all fixes... Thank you very much for your time!
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/FreeRADIUS/freeradius-server/issues/1611#issuecomment-220135760
Issue type
Defect/Feature description
How to reproduce issue
Users must be members of a group in SQL in order to get access to vpn or wifi. When they are members of a certain group then the server works fine. When they are NOT members of a group the server crashes. In this example the user is a member of only group openvpn and not wifi and is trying to connect to wifi... I have tried with 3.0.10 3.0.11 and now with development 3.1.0 - it alwyas crash at the same point.
In sites-enabled/default is added this: ... -sql
if (NAS-Identifier == "OpenVpn") { if (SQL-Group == "openvpn") { } else { reject } } ... In inner tunnel for peap is this: ... -sql if (SQL-Group == "wifi") { } else { reject } ...
Output of
[radiusd|freeradius] -X
showing issue ocurring