FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.28k stars 1.24k forks source link

vtysh failed to allocate 8589934528 bytes for Thread Poll Info object #15315

Closed javier-godoy closed 7 months ago

javier-godoy commented 7 months ago

Starting vtysh in a system with ulimit unlimited, results in a memory allocation error. This case is different from #15280 because vtysh does not recognize --limit-fds

Hello, this is FRRouting (version 9.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

2024/02/06 20:42:47 out of memory: failed to allocate 8589934528 bytes for Thread Poll Info object
2024/02/06 20:42:47 No backtrace available on this platform.
log: showing active allocations in memory group vtysh
log: showing active allocations in memory group libfrr
log: memstats:  Buffer                        :      2 *         24
log: memstats:  Host config                   :      5 * (variably sized)
log: memstats:  Command Tokens                :   6250 *         72
log: memstats:  Command Token Text            :   4126 * (variably sized)
log: memstats:  Command Token Help            :   4126 * (variably sized)
log: memstats:  Command Argument Name         :   1262 * (variably sized)
log: memstats:  Graph                         :     26 *          8
log: memstats:  Graph Node                    :   7173 *         32
log: memstats:  Hash                          :     54 * (variably sized)
log: memstats:  Hash Bucket                   :   1650 *         32
log: memstats:  Hash Index                    :     27 * (variably sized)
log: memstats:  Link List                     :      4 *         40
log: memstats:  Link Node                     :     29 *         24
log: memstats:  Temporary memory              :      1 * (variably sized)
log: memstats:  Thread master                 :      2 * (variably sized)
log: memstats:  Vector                        :  14400 *         24
log: memstats:  Vector index                  :  14400 * (variably sized)
log: memstats:  VTY                           :      2 * (variably sized)
log: showing active allocations in memory group logging subsystem
Aborted (core dumped)

Versions OS Version: Alpine Linux v3.19.1 dockerized on Rocky Linux 9.3 (Blue Onyx) / Docker version 24.0.7, build afdd53b Kernel: 5.14.0-362.13.1.el9_3.x86_64 FRR Version: 9.1 configured with:

--enable-static' '--enable-static-bin' '--enable-shared' '--enable-numeric-version' '--disable-capabilities' '--disable-doc' '--disable-bgpd' '--disable-ripd' '--disable-ripngd' '--disable-ospf6d' '--disable-ldpd' '--disable-nhrpd' '--disable-babeld' '--disable-isisd' '--disable-pimd' '--disable-pbrd' '--disable-fabricd' '--disable-pathd' '--disable-bgp-announce' '--disable-bgp-vnc' '--disable-bgp-bmp' '--disable-rtadv' '--disable-irdp' '--bindir=/bin' '--sbindir=/lib/frr' '--sysconfdir=/etc/frr' '--libexecdir=/lib/frr' '--localstatedir=/var/run/frr' '--libdir=/lib/frr' '--with-moduledir=/lib/frr/modules' '--disable-dependency-tracking' '--enable-systemd=no' '--enable-vty-group=frrvty' 'SPHINXBUILD=/usr/bin/sphinx-build' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig'

mjstapp commented 7 months ago

I'll take a look