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

bird1: fix out of memory error when parsing /etc/config/bird{4,6} /etc/init.d/bird{4,6} start #921

Merged
merged 1 commit into from Mar 6, 2023

Conversation

rogerpueyo
Copy link
Contributor

@rogerpueyo rogerpueyo commented Nov 16, 2022

Maintainer: @rogerpueyo
Compile tested: x86_64 VirtualBox VM, OpenWrt snapshot 2022/11/16
Run tested: x86_64 VirtualBox VM, OpenWrt snapshot 2022/11/16

Description: the bird4-lib.sh and bird6-lib.sh implement a get_bool() function that collides with the one provided by /lib/functions.sh.

This patch renames the get_bool() functions implemented in the init.d helper files bird4-lib.sh and bird6-lib.sh to get_a_bool(), as well as all the calls to them. This way, we avoid colliding with the get_bool() function provided by /lib/functions.sh, which caused an out-of-memory error when parsing the UCI-based bird4/bird6 config.

Fixes #920.

Signed-off-by: Roger Pueyo Centelles roger.pueyo@guifi.net

@xarbot
Copy link

xarbot commented Nov 22, 2022

It is very important for our Community Guifi.Net
Please commit it

xarbot

@mwarning
Copy link
Contributor

@rogerpueyo please restart the pipeline.
@eloicaso please review

@rogerpueyo
Copy link
Contributor Author

rogerpueyo commented Jan 26, 2023

Hi, @mwarning,

The pipeline will still fail, even if the packages are actually built.

I submitted PR #928 which merges the two Makefiles (for IPv4 and IPv6, each in its respective folder) into a single Makefile. After that, the pipeline checks shall succeed. Would you please consider merging #928 first?

Thanks for taking care of the PR!

PS: the failing check on PR #928 seems to be related to ucode, rather than to the bird1-openwrt package:

    ERROR: package/feeds/base/ucode failed to build.

@p4u
Copy link
Contributor

p4u commented Feb 19, 2023

Hello. What's the current status for this PR? Since PR #928 is already merged, restarting the pipelines might fix the compile errors @rogerpueyo

@rogerpueyo
Copy link
Contributor Author

Hi, @p4u,

Thanks for bumping this. PR #928 is not yet merged. We should get that one merged first.

Unfortunately, there's one single architecture for which the tests don't pass (powerpc_8540), which is blocking #928 from being merged. I believe it is not caused by the commit itself.

@BKPepe
Copy link
Member

BKPepe commented Mar 4, 2023

@PolynomialDivision merge this, please and backport this to stable branches

This patch renames the get_bool() function, implemented in the
bird4-lib.sh and bird6-lib.sh files (respectively, for the IPv4 and
the IPv6 versions of the package), as well as all the calls to it.
This way, we avoid a function name collision with the one provided by
file /lib/functions.sh, which is slightly different and caused an
out-of-memory error when parsing the bird4/bird6 UCI config files.

Fixes openwrt#920.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
@BKPepe BKPepe self-assigned this Mar 6, 2023
@BKPepe BKPepe merged commit d32f93e into openwrt:master Mar 6, 2023
9 of 10 checks passed
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.

bird1: out of memory when executing /etc/init.d/bird4
5 participants