-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
systemd-sysusers segfaults #6512
Comments
|
Ouch... any chance you can redo that with debug symbols in place? |
|
here is stack trace from v234-stable built with buildtype=debug |
|
gshadow line length is: |
|
hmmm, did i get this right? you have a gshadow line in place there that is extremely long? our code uses fgetsgent() to read a shadow entry, and then patches in |
|
Yes, and this is first very long line in gshadow. Others are near 200-300 characters length. |
|
Any chance you can run this through valgrind? That should tell us enough about what we are doing wrong there... Either this is actually a bug in glibc, or we are supposed to do a deep copy of the group entry here, which isn't entirely clear to me... |
|
|
I think, I have steps-to-reproduce for you: |
|
The issue seems to be the same as coreos/bugs#1394, which was fixed by https://sourceware.org/ml/libc-alpha/2016-06/msg01015.html. Is there any chance you could give the patch a try? |
|
Yes, patching glibc fixes segfault. |
|
Excellent. Closing this hence, given that this is a bug in glibc and has already been fixed there. |
|
It does look like a bug in glibc and it's not fixed there yet; the related glibc report has been pretty much completely ignored. |
|
This bug has higher visibility and priority given that it's impacting more users. We don't actively try to ignore bugs, but like the kernel, we have limited resources to review and fix bugs. We need to get filtered detailed reports like this one which indicate (a) the the bug is real, and (b) that a patched glibc with the fix for bug 20338 fixes the issue. I've linked up the various downstream bugs: |
|
Reported to Ubuntu/launchpad as this affects systemd-sysusers on Ubuntu 20.04: https://bugs.launchpad.net/glibc/+bug/1890535 |
|
Fixed for glibc 2.32 via: commit 2add4235ef674988948155f9a8f60a8c7b09bcff |
Submission type
systemd version the issue has been seen with
Used distribution
In case of bug report: Expected behaviour you didn't see
In case of bug report: Unexpected behaviour you saw
In case of bug report: Steps to reproduce the problem
GDB log and description
I guess it is because of I have few users with dot, "firstname.lastname" format. Yes, I know that dot should not be used, but sigsegv is not good anyway.
The text was updated successfully, but these errors were encountered: