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

*** stack smashing detected ***: terminated #4

Closed
LoLei opened this issue Aug 28, 2020 · 3 comments
Closed

*** stack smashing detected ***: terminated #4

LoLei opened this issue Aug 28, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@LoLei
Copy link

LoLei commented Aug 28, 2020

*** stack smashing detected ***: terminated when joining a channel.

  • kirc 0.0.4
  • $ ./kirc -n kirctest
  • OS: Arch Linux (linux 5.8.4-arch1-1)
  • Terminal: Alacritty
  • Shell: ZSH
  • Log: paste

2020-08-28_13-40

@mcpcpc mcpcpc self-assigned this Aug 28, 2020
@mcpcpc mcpcpc added the bug Something isn't working label Aug 28, 2020
@mcpcpc
Copy link
Owner

mcpcpc commented Aug 28, 2020

Thank you for reporting this issue! Well detailed.

I am unable to reproduce with the current Makefile (although i am confident that i am currently not guarding against this issue). What gcc flags are you passing?

I imagine this not being a best practice, but for the short-term you could try passing -fno-stack-protector -z execstack to disable stack protection.

@LoLei
Copy link
Author

LoLei commented Aug 28, 2020

I haven't used any additional flags other than what's in the Makefile. Your suggestion works though, can join channels now. Thanks!

Ah forgot to mention, in case it matters, using gcc version 10.2.0.

@LoLei LoLei closed this as completed Aug 28, 2020
@mcpcpc
Copy link
Owner

mcpcpc commented Aug 28, 2020

commit bf12191 should now address the need for any additional flags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants