Skip to content

Commit

Permalink
To fix: redis-cli build broken on Debian/Bookworm (librdb use-after-f…
Browse files Browse the repository at this point in the history
…ree) (sonic-net#20759)

Fix sonic-net#20757

Why I did it
To Fix the issue: redis-cli build broken on Debian/Bookworm (librdb use-after-free)
sonic-net#20757

How I did it
This issue is a known open issue below:
redis/librdb#55

According to Walter Doekes's solution, currently to work around it by adding -floto=auto compiler option.

	make -j$(SONIC_CONFIG_MAKE_JOBS) WARNS='-Wall -Wextra -pedantic -flto=auto'
  • Loading branch information
JunhongMao authored Nov 12, 2024
1 parent 3e5f024 commit bd6ac78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rdb-cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
rm -rf ./librdb
git clone https://github.com/redis/librdb.git
pushd ./librdb/
git checkout 2fdfc0c2bc914d643fe3f86e6715aeb843d8966e
git checkout tags/v1.0.0
git submodule update --init --recursive
make -j$(SONIC_CONFIG_MAKE_JOBS)
# Set WARNS=... to work around https://github.com/redis/librdb/issues/55
make -j$(SONIC_CONFIG_MAKE_JOBS) WARNS='-Wall -Wextra -pedantic -flto=auto'
mv bin/rdb-cli $(DEST)/

0 comments on commit bd6ac78

Please sign in to comment.