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

Investigate crash on Ubuntu and other glibc Linux distros #191

Closed
rdbo opened this issue Feb 27, 2024 · 1 comment
Closed

Investigate crash on Ubuntu and other glibc Linux distros #191

rdbo opened this issue Feb 27, 2024 · 1 comment

Comments

@rdbo
Copy link
Owner

rdbo commented Feb 27, 2024

On Ubuntu and Debian, when linking against static libmem built with musl, it crashes on linux/utils.c:

if (LM_GETLINE(&stat_line, &buf_len, stat_file) > 0 && !regexec(&regex, stat_line, LM_ARRLEN(matches), matches, 0)) {
		stat_line[matches[1].rm_eo] = LM_STR('\x00'); /* place null terminator to do 'LM_STRCMP' later */
		// CRASHES IN THE LINE ABOVE!
		// GDB shows wrong values in the `matches` array
}
@rdbo rdbo changed the title Investigate crash on Ubuntu and other glibc Investigate crash on Ubuntu and other glibc Linux distros Feb 27, 2024
@rdbo
Copy link
Owner Author

rdbo commented May 30, 2024

This no longer seems to be happening

@rdbo rdbo closed this as completed May 30, 2024
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

1 participant