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

rrdtool v 1.8.0 - Segmentation fault on start (Alpine Linux) #1241

Closed
goricz opened this issue Dec 15, 2023 · 2 comments
Closed

rrdtool v 1.8.0 - Segmentation fault on start (Alpine Linux) #1241

goricz opened this issue Dec 15, 2023 · 2 comments

Comments

@goricz
Copy link

goricz commented Dec 15, 2023

Describe the bug

# rrdtool 
RRDtool 1.8.0  Copyright by Tobias Oetiker <tobi@oetiker.ch>
Segmentation fault (core dumped)

Older version 1.7.2 is running well

see https://gitlab.alpinelinux.org/alpine/aports/-/issues/15416

To Reproduce
Steps to reproduce the behavior:

  1. install rrdtool v. 1.8.0 in Alpine Linux
  2. run rrdtool

Desktop (please complete the following information):

  • OS: Alpine Linux
  • Version 3.18+

Additional context
It's failing because of this commit:
6040d8f

If BUILD_DATE is defined, there is the last parameter missing in fprintf()

#ifdef BUILD_DATE
    fprintf(stdout, _(help_main), PACKAGE_VERSION, BUILD_DATE);
#else
    fprintf(stdout, _(help_main), PACKAGE_VERSION, __DATE__, __TIME__);
#endif

I've tried to compile with empty string in place of last parameter:
fprintf(stdout, _(help_main), PACKAGE_VERSION, BUILD_DATE, "");

and it worked well

@c72578
Copy link
Collaborator

c72578 commented Dec 15, 2023

@goricz
Copy link
Author

goricz commented Dec 15, 2023

Thanks, I didn't notice that patch.
I'll include it in rrdtool APKBUILD.

@c72578 c72578 closed this as completed Dec 15, 2023
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

No branches or pull requests

2 participants