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

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

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

JunhongMao
Copy link
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
Contributor Author

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

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

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

@JunhongMao
Copy link
Contributor Author

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

Addressed.

@wdoekes
Copy link
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
22 checks passed
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
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'
aidan-gallagher pushed a commit to aidan-gallagher/sonic-buildimage that referenced this pull request Nov 16, 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'
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