Bug 1221905 - named crashes on startup: mem.c:736: fatal error: malloc failed: Cannot allocate memory
Summary: named crashes on startup: mem.c:736: fatal error: malloc failed: Cannot alloc...
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Network (show other bugs)
Version: Leap 15.5
Hardware: x86-64 openSUSE Leap 15.5
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jorik Cronenberg
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-24 17:22 UTC by Georg Pfuetzenreuter
Modified: 2024-05-21 03:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
strace (200.09 KB, text/plain)
2024-03-24 17:22 UTC, Georg Pfuetzenreuter
Details
dmesg (167.61 KB, text/plain)
2024-03-24 17:22 UTC, Georg Pfuetzenreuter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Pfuetzenreuter 2024-03-24 17:22:23 UTC
Created attachment 873759 [details]
strace

Hi,

BIND from the update repositories works on our virtual machines, but does not start on a physical one:

```
Mar 24 17:20:07 stonehat systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
Mar 24 17:20:07 stonehat named[49737]: starting BIND 9.16.48 (Extended Support Version) <id:0dab57e>
Mar 24 17:20:07 stonehat named[49737]: running on Linux x86_64 5.14.21-150500.55.52-default #1 SMP PREEMPT_DYNAMIC Tue Mar 5 16:53:41 UTC 2024 (a62851f)
Mar 24 17:20:07 stonehat named[49737]: built with '--host=x86_64-suse-linux-gnu' '--build=x86_64-suse-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/et>
Mar 24 17:20:07 stonehat named[49737]: running as: named -u named
Mar 24 17:20:07 stonehat named[49737]: compiled by GCC 7.5.0
Mar 24 17:20:07 stonehat named[49737]: compiled with OpenSSL version: OpenSSL 1.1.1l-fips  24 Aug 2021 SUSE release SUSE_OPENSSL_RELEASE
Mar 24 17:20:07 stonehat named[49737]: linked to OpenSSL version: OpenSSL 1.1.1l-fips  24 Aug 2021 SUSE release 150500.17.25.1
Mar 24 17:20:07 stonehat named[49737]: compiled with libuv version: 1.44.2
Mar 24 17:20:07 stonehat named[49737]: linked to libuv version: 1.44.2
Mar 24 17:20:07 stonehat named[49737]: compiled with libxml2 version: 2.10.3
Mar 24 17:20:07 stonehat named[49737]: linked to libxml2 version: 21003
Mar 24 17:20:07 stonehat named[49737]: compiled with json-c version: 0.13
Mar 24 17:20:07 stonehat named[49737]: linked to json-c version: 0.13
Mar 24 17:20:07 stonehat named[49737]: compiled with zlib version: 1.2.13
Mar 24 17:20:07 stonehat named[49737]: linked to zlib version: 1.2.13
Mar 24 17:20:07 stonehat named[49737]: ----------------------------------------------------
Mar 24 17:20:07 stonehat named[49737]: BIND 9 is maintained by Internet Systems Consortium,
Mar 24 17:20:07 stonehat named[49737]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
Mar 24 17:20:07 stonehat named[49737]: corporation.  Support and training for BIND 9 are
Mar 24 17:20:07 stonehat named[49737]: available at https://www.isc.org/support
Mar 24 17:20:07 stonehat named[49737]: ----------------------------------------------------
Mar 24 17:20:07 stonehat named[49737]: adjusted limit on open files from 524288 to 1048576
Mar 24 17:20:07 stonehat named[49737]: found 64 CPUs, using 64 worker threads
Mar 24 17:20:07 stonehat named[49737]: using 64 UDP listeners per interface
Mar 24 17:20:07 stonehat named[49737]: using up to 21000 sockets
Mar 24 17:20:07 stonehat named[49737]: DNSSEC algorithms: RSASHA1 NSEC3RSASHA1 RSASHA256 RSASHA512 ECDSAP256SHA256 ECDSAP384SHA384 ED25519 ED448
Mar 24 17:20:07 stonehat named[49737]: DS algorithms: SHA-1 SHA-256 SHA-384
Mar 24 17:20:07 stonehat named[49737]: HMAC algorithms: HMAC-MD5 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512
Mar 24 17:20:07 stonehat named[49737]: TKEY mode 2 support (Diffie-Hellman): yes
Mar 24 17:20:07 stonehat named[49737]: TKEY mode 3 support (GSS-API): yes
Mar 24 17:20:07 stonehat named[49737]: loading configuration from '/etc/named.conf'
Mar 24 17:20:07 stonehat named[49737]: reading built-in trust anchors from file '/etc/bind.keys'
Mar 24 17:20:07 stonehat named[49737]: looking for GeoIP2 databases in '/usr/share/GeoIP'
Mar 24 17:20:07 stonehat named[49737]: using default UDP/IPv4 port range: [32768, 60999]
Mar 24 17:20:07 stonehat named[49737]: using default UDP/IPv6 port range: [32768, 60999]
Mar 24 17:20:07 stonehat named[49737]: listening on IPv4 interface lo, 127.0.0.1#53
Mar 24 17:20:07 stonehat named[49737]: listening on IPv4 interface prg2_asgard1, 172.16.201.6#53
Mar 24 17:20:07 stonehat named[49737]: listening on IPv4 interface prg2_asgard2, 172.16.202.6#53
Mar 24 17:20:07 stonehat named[49737]: listening on IPv4 interface private, 192.168.87.1#53
Mar 24 17:20:07 stonehat named[49737]: generating session key for dynamic DNS
Mar 24 17:20:07 stonehat named[49737]: sizing zone task pool based on 18 zones
Mar 24 17:20:08 stonehat named[49737]: obtaining root key for view _default from '/etc/bind.keys'
Mar 24 17:20:08 stonehat named[49737]: set up managed keys zone for view _default, file '/var/lib/named/dyn//managed-keys.bind'
Mar 24 17:20:08 stonehat named[49737]: mem.c:736: fatal error:
Mar 24 17:20:08 stonehat named[49737]: malloc failed: Cannot allocate memory
Mar 24 17:20:08 stonehat named[49737]: exiting (due to fatal error in library)
Mar 24 17:20:08 stonehat systemd[1]: named.service: Control process exited, code=exited, status=1/FAILURE
Mar 24 17:20:08 stonehat systemd[1]: named.service: Failed with result 'exit-code'.
Mar 24 17:20:08 stonehat systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
```

With the bind-9.16.38-150400.5.20.2 package from the GA repository, named starts fine.
We don't know which update introduced the problem. I tried disabling "zone-statistics", but that did not help.
Strace output while running named in foreground is attached.
No related kernel log entries are observed, but dmesg is attached as well.

Cheers,
Georg
Comment 1 Georg Pfuetzenreuter 2024-03-24 17:22:52 UTC
Created attachment 873760 [details]
dmesg