Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apache segmentation fault when config invalid #303

Closed
iconoeugen opened this issue Oct 10, 2017 · 1 comment
Closed

apache segmentation fault when config invalid #303

iconoeugen opened this issue Oct 10, 2017 · 1 comment

Comments

@iconoeugen
Copy link

@iconoeugen iconoeugen commented Oct 10, 2017

Environment
  • mod_auth_openidc-2.3.2 - init - cjose 0.5.1, OpenSSL 1.0.2k-fips 26 Jan 2017, EC=yes, GCM=yes, Redis=yes, JQ=no
  • mod_ssl/2.4.6 compiled against Server: Apache/2.4.6, Library: OpenSSL/1.0.2k
  • CentOS Linux release 7.4.1708 (Core) docker image
Expected behaviour

Apache should stop running with error log entry stating the configuration is invalid

Actual behaviour

Apache stops with Segmentation Fault:

Minimized example

Configure invalid value for OIDCProviderMetadataURL to trigger the Segmentation Fault, ie:

OIDCProviderMetadataURL example.com/auth/realms/test/.well-known/openid-configuration

If value has protocol then Apache start successfully:

OIDCProviderMetadataURL https://example.com/auth/realms/test/.well-known/openid-configuration
Configuration and Log files
[Tue Oct 10 13:46:40.487319 2017] [auth_openidc:info] [pid 121] mod_auth_openidc-2.3.2 - init - cjose 0.5.1, OpenSSL 1.0.2k-fips  26 Jan 2017, EC=yes, GCM=yes, Redis=yes, JQ=no
[Tue Oct 10 13:46:40.488648 2017] [auth_openidc:debug] [pid 121] src/cache/shm.c(130): oidc_cache_shm_post_config: initialized shared memory with a cache size (# entries) of: 500, and a max (single) entry size of: 16913
[Tue Oct 10 13:46:40.489708 2017] [auth_openidc:debug] [pid 121] src/cache/shm.c(130): oidc_cache_shm_post_config: initialized shared memory with a cache size (# entries) of: 500, and a max (single) entry size of: 16913
[Tue Oct 10 13:46:40.489718 2017] [auth_openidc:debug] [pid 121] src/config.c(1892): oidc_config_check_vhost_config: enter
Segmentation fault (core dumped)
@zandbelt zandbelt closed this in 6581138 Oct 10, 2017
@zandbelt

This comment has been minimized.

Copy link
Contributor

@zandbelt zandbelt commented Oct 10, 2017

Good catch, thanks; the fix will be included in 2.3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.