We're running a Policy Server and when we start it, this one crashes
and the system messages reports an error in the XPS library :
[1542986.545010] smpolicysrv[32323]: segfault at 200000121 ip
00007f318710b324 sp 00007fff348e5640 error 4 in
libXPS.so[7f318702d000+26c000]
How can we fix this ?
Policy Server 12.8SP2 on RedHat 7;
Policy Store on CA Directory 14;
Looking at both DataCenter Policy Servers smps.log, we can notice the
following :
- The DataCenterA Policy Server reports 12014 objects from the Policy
Store as the DataCenterB one reports 12377 objects !!! As both
DataCenter Policy Stores are replicated, we expect the same amount
of data in both smps.log;
- The DataCenterA Policy Server reports the following logs, which show no
error at start time :
[10845/140074337883968][Sat Dec 28 2019
11:29:06][Database.cpp:666][InitDB][INFO][sm-xpsxps-00120]
Initializing XPS Version 12.8.0200.1992
[10845/140074337883968][Sat Dec 28 2019
11:29:06][XPSLDAP.cpp:806][CreateRoot][INFO][sm-xpsxps-01160] LDAP
Provider Info String = CA Directory
[10845/140074337883968][Sat Dec 28 2019
11:29:06][XPSIO.cpp:470][InitialLoad][INFO][sm-xpsxps-00560]
Database Transactions are 0.
[10845/140074337883968][Sat Dec 28 2019
11:29:06][XPSIO.cpp:497][InitialLoad][INFO][sm-xpsxps-00300] 1
Parameter(s) loaded from Policy Store, 2 total.
[10845/140074337883968][Sat Dec 28 2019
11:29:06][XPSIO.cpp:502][InitialLoad][INFO][sm-xpsxps-00330]
Caching Policy Data...
[10845/140074337883968][Sat Dec 28 2019
11:29:07][XPSIO.cpp:521][InitialLoad][INFO][sm-xpsxps-00310] 12014
object(s) loaded from the Policy Store.
[10845/140074337883968][Sat Dec 28 2019
11:29:07][XPSIO.cpp:585][SetPolicyStoreID][INFO][sm-xpsxps-00430]
Policy Store ID is "5e565e14-4e56-42dd-9def-f3243ceb84b3".
- The DataCenterB Policy Server reports the following logs, which show many
errors at start time :
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Database.cpp:666][InitDB][INFO][sm-xpsxps-00120]
Initializing XPS Version 12.8.0200.1992
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSLDAP.cpp:806][CreateRoot][INFO][sm-xpsxps-01160] LDAP
Provider Info String = CA Directory
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSIO.cpp:470][InitialLoad][INFO][sm-xpsxps-00560]
Database Transactions are 0.
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSIO.cpp:497][InitialLoad][INFO][sm-xpsxps-00300] 1
Parameter(s) loaded from Policy Store, 1 total.
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSIO.cpp:502][InitialLoad][INFO][sm-xpsxps-00330]
Caching Policy Data...
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCClient: Assert failed:
at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCAdminConfig: Assert
failed: at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCScopes: Assert failed:
at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCClaims: Assert failed:
at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCScopeAndClaimsMapping:
Assert failed: at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect
Administration.CA.FED::OIDCClaimAndUserAttributeMapping: Assert
failed: at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][Reference.cpp:404][Reference][WARN][Assert] Assert
failed: String && *String
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCClient: Assert failed:
at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCAdminConfig: Assert
failed: at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCScopes: Assert failed:
at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCClaims: Assert failed:
at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect Administration.CA.FED::OIDCScopeAndClaimsMapping:
Assert failed: at
[31224/139793521055552][Fri Jan 03 2020
07:10:56][XPSDDClassCategory.cpp:329][setSpecificAttr][WARN][Assert]
!OpenID Connect
Administration.CA.FED::OIDCClaimAndUserAttributeMapping: Assert
failed: at
[31224/139793521055552][Fri Jan 03 2020
07:10:57][XPSIO.cpp:521][InitialLoad][INFO][sm-xpsxps-00310] 12377
object(s) loaded from the Policy Store.
[31224/139793521055552][Fri Jan 03 2020
07:10:57][XPSIO.cpp:585][SetPolicyStoreID][INFO][sm-xpsxps-00430]
Policy Store ID is "5e565e14-4e56-42dd-9def-f3243ceb84b3".
As such, because the DataCenterB Policy Stores are replicated of the master
DataCenterA Policy Store, you should fix the LDAP replication between
both and / or review their replication configuration.
Fixing the replication between your Policy Stores solved the issue.