Segfault in linelog
Arnab Roy
arnabroy at mail.com
Thu Apr 27 18:56:36 CEST 2017
Hi ,
I am getting a segmentation fault when using EAP-TLS and the following
linelog statement
Access-Request
="%{User-Name};%{reply:Packet-Type};%S;%{%{%{Module-Failure-Message[*]}
:-%{reply:Reply-Message[*]}:-%{MS-CHAP-Error[*]}}:-[AUTHENTICATED]};%{C
alling-Station-Id};%{reply:[*]};%{proxy-request:Packet-Dst-IP-Address}"
On running with the -XX flags it seems to seg out at as follows
Thu Apr 27 17:50:57 2017 : Debug:
%{User-Name};%{reply:Packet-Type};%S;%{%{%{Module-Failure-Message[*]}:-
%{reply:Reply-Message[*]}:-%{MS-CHAP-Error[*]}}:-[AUTHENTICATED]};%{Cal
ling-Station-Id};%{reply:[*]};%{proxy-request:Packet-Dst-IP-Address}
Thu Apr 27 17:50:57 2017 : Debug: Parsed xlat tree:
Thu Apr 27 17:50:57 2017 : Debug: attribute --> User-Name
Thu Apr 27 17:50:57 2017 : Debug: literal --> ;
Thu Apr 27 17:50:57 2017 : Debug: attribute --> Packet-Type
Thu Apr 27 17:50:57 2017 : Debug: literal --> ;
Thu Apr 27 17:50:57 2017 : Debug: percent --> S
Thu Apr 27 17:50:57 2017 : Debug: literal --> ;
Thu Apr 27 17:50:57 2017 : Debug: XLAT-IF {
Thu Apr 27 17:50:57 2017 : Debug: XLAT-IF {
Thu Apr 27 17:50:57 2017 : Debug: attribute
--> Module-Failure-Message
Thu Apr 27 17:50:57 2017 : Debug: {
Thu Apr 27 17:50:57 2017 : Debug:
ref 2
Thu Apr 27 17:50:57 2017 : Debug:
list 1
Thu Apr 27 17:50:57 2017 : Debug:
[*]
Thu Apr 27 17:50:57 2017 : Debug: }
Thu Apr 27 17:50:57 2017 : Debug: }
Thu Apr 27 17:50:57 2017 : Debug: XLAT-ELSE {
Thu Apr 27 17:50:57 2017 : Debug: attribute
--> Reply-Message
Thu Apr 27 17:50:57 2017 : Debug: {
Thu Apr 27 17:50:57 2017 : Debug:
ref 2
Thu Apr 27 17:50:57 2017 : Debug:
list 2
Thu Apr 27 17:50:57 2017 : Debug:
[*]
Thu Apr 27 17:50:57 2017 : Debug: }
Thu Apr 27 17:50:57 2017 : Debug: literal -->
:-
Thu Apr 27 17:50:57 2017 : Debug: attribute
--> MS-CHAP-Error
Thu Apr 27 17:50:57 2017 : Debug: {
Thu Apr 27 17:50:57 2017 : Debug:
ref 2
Thu Apr 27 17:50:57 2017 : Debug:
list 1
Thu Apr 27 17:50:57 2017 : Debug:
[*]
Thu Apr 27 17:50:57 2017 : Debug: }
Thu Apr 27 17:50:57 2017 : Debug: }
Thu Apr 27 17:50:57 2017 : Debug: }
Thu Apr 27 17:50:57 2017 : Debug: XLAT-ELSE {
Thu Apr 27 17:50:57 2017 : Debug: literal --> [AUTHENTICATED]
Thu Apr 27 17:50:57 2017 : Debug: }
Thu Apr 27 17:50:57 2017 : Debug: literal --> ;
Thu Apr 27 17:50:57 2017 : Debug: attribute --> Calling-Station-Id
Thu Apr 27 17:50:57 2017 : Debug: literal --> ;
So looks like Calling-Station-Id is the culprit. Please note this only
occurs when the EAP method is TLS and not PEAP /PAP etc.
Disabling the above stops the crash.
Any suggestions happy provide further logs if required.
More information about the Freeradius-Users
mailing list