Skip to content

To Fix the issue: redis-cli build broken on Debian/Bookworm (librdb use-after-free)#20759

Merged
rlhui merged 1 commit intosonic-net:masterfrom
JunhongMao:master
Nov 12, 2024
Merged

To Fix the issue: redis-cli build broken on Debian/Bookworm (librdb use-after-free)#20759
rlhui merged 1 commit intosonic-net:masterfrom
JunhongMao:master

Conversation

@JunhongMao
Copy link
Copy Markdown
Contributor

@JunhongMao JunhongMao commented Nov 11, 2024

Why I did it

To Fix the issue: redis-cli build broken on Debian/Bookworm (librdb use-after-free)
#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'

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202405

Tested branch (Please provide the tested image version)

Description for the changelog

@JunhongMao
Copy link
Copy Markdown
Contributor Author

@rlhui , please cherry-pick this to 202405. Thanks.

qiluo-msft
qiluo-msft previously approved these changes Nov 11, 2024
@saiarcot895
Copy link
Copy Markdown
Contributor

It doesn't look like -flto=auto is taking effect here.

@JunhongMao
Copy link
Copy Markdown
Contributor Author

It doesn't look like -flto=auto is taking effect here.

Addressed.

@wdoekes
Copy link
Copy Markdown
Contributor

wdoekes commented Nov 12, 2024

LGTM

(1:1 my original fix + 1 version update, so should be good 😛)
(and I see it was indeed merged to 202405 as well, so needs cherry-pick)

@rlhui rlhui merged commit bd6ac78 into sonic-net:master Nov 12, 2024
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Nov 13, 2024
…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'
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202405: #20779

mssonicbld pushed a commit that referenced this pull request Nov 13, 2024
…ree) (#20759)

Fix #20757

Why I did it
To Fix the issue: redis-cli build broken on Debian/Bookworm (librdb use-after-free)
#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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants