Skip to content

check before use daemon->shm_info#1229

Merged
wcawijngaards merged 1 commit into
NLnetLabs:masterfrom
eaglegai:master
Jan 21, 2025
Merged

check before use daemon->shm_info#1229
wcawijngaards merged 1 commit into
NLnetLabs:masterfrom
eaglegai:master

Conversation

@eaglegai

Copy link
Copy Markdown
Contributor

fix coredump after the command unbound-control stop unbound

fix: #1228

fix core after the command `unbound-control stop unbound`

fix:NLnetLabs#1228
Signed-off-by: eaglegai <eaglegai@163.com>

@wcawijngaards wcawijngaards left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good. Prevents failure when shminfo was not allocated.

@wcawijngaards
wcawijngaards merged commit 073c730 into NLnetLabs:master Jan 21, 2025
wcawijngaards added a commit that referenced this pull request Jan 21, 2025
- Merge #1229: check before use daemon->shm_info.
jedisct1 added a commit to jedisct1/unbound that referenced this pull request Mar 18, 2025
* nlnet/master: (37 commits)
  - Fix for windows compile create ssl contexts.
  - Fix NLnetLabs#1251: WSAPoll first argument cannot be NULL.
  - Fix representation of types GPOS and RESINFO, add rdf type for
  - Fix 'unbound-control flush_negative' when reporting removed data;   reported by David 'eqvinox' Lamparter.
  Changelog nore for NLnetLabs#1238 and add `--help` description. - Merge NLnetLabs#1238: Prefer SOURCE_DATE_EPOCH over actual time.   Add --help output description for the SOURCE_DATE_EPOCH variable.
  Prefer SOURCE_DATE_EPOCH over actual time (NLnetLabs#1238)
  Changelog note for NLnetLabs#1243 - Merge NLnetLabs#1243: Do not shadow tm on line 236.
  Do not shadow tm on line 236. (NLnetLabs#1243)
  - Fix hash calculation for cachedb to ignore case. Previously, cached   records there were only relevant for same case queries (if not   already in Unbound's internal cache).
  Changelog entry for NLnetLabs#1241: - Merge NLnetLabs#1241: Fix infra-keep-probing for low infra-cache-max-rtt   values.
  - The maximum value of a probe rto was not aligned with the   (configurable) infra-cache-max-rtt value. That could result in   infra-keep-probing not working if an infra-cache-max-rtt value was chosen   that was below 12000 ms. This fix still uses a default value of 12000   ms for the probe but caps it to the infra-cache-max-rtt if that is   lower.
  - Fix static analysis report about unhandled EOF on error conditions   when reading anchor key files.
  - Consider reconfigurations when calculating the still_useful_timeout   for servers in the infrastructure cache.
  - Fix NLnetLabs#986: Resolving sas.com with dnssec-validation fails though   signed delegations seem to be (mostly) correct.
  - Make the default value of module-config "validator iterator"   regardless of compilation options. --enable-subnet would implicitly   change the value to enable the subnetcache module by default in the   past.
  Changelog entry for NLnetLabs#1220: - Merge NLnetLabs#1220 from Petr Menšík, Add unbound members group access to   control key.
  Changelog entry for NLnetLabs#1224: - Merge NLnetLabs#1224 from Theo Buehler: Do not use DSA API unless USE_DSA is   set.
  Changelog note for NLnetLabs#1229 - Merge NLnetLabs#1229: check before use daemon->shm_info.
  check before use daemon->shm_info (NLnetLabs#1229)
  - Do not open unencrypted channels next to encrypted ones on the same   port.
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

coredump after command unbound-control stop unbound

2 participants