| Summary: | Segmentation Fault strncpy in libc.so.6 from libcrack.so.2.8.1 symbol Fascistcheck() | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | JL Laine <j.l.laine> |
| Component: | cracklib | Assignee: | Tomas Mraz <tmraz> |
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.0 | CC: | j.l.laine, nalin, toneata |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-01-13 16:47:35 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Can you please report this issue through regular Red Hat support channels so it can be properly investigated and prioritized? http://www.redhat.com/support Also I suppose this is not really Red Hat Enterprise Linux 4 but Red Hat Enterprise Linux 6, isn't it? cat /proc/version said 4.4.7-11 thank you for pointing me to the regular support channel, I will submit there. That's version of the gcc compiler the kernel was built with. The version of the system is in /etc/redhat-release. |
Description of problem: I have been chasing a segmentation fault in our C/C++ code and reduced it to the following minimal recreation: handle = dlopen("libcrack.so.2", RTLD_LZY); *(void **)(&PamFascistCheck) = dlsym(handle,"FascistCheck"); val=(*PamFascistcheck)("cat","/usr/share/dict/PSDict"); *** Segmentation Fault *** program terminated with signal 11, Segmentation Fault. in __strncpy_ssse3 () from /lib64/libc.so.6 in FascistCheck () from /usr/lib64/libcrack.so.6 from ~jlaine/testprog Version-Release number of selected component (if applicable): Linux Version 2.6.32-504.el6.x86_64 gcc version 4.4.7 Red Hat 4.4.7-11 libcrack.so.2.8.1 libc.so.6 -> libc-2.12.s0 How reproducible: I created a mywords.txt file in my home directory, containing a few simple words to test: cat dog horse password secret and used the /usr/sbin/create-cracklib-dict -o /usr/share/dict/PSDict ./mywords.txt I then put the 3 lines of code noted above in a c/c++ program and compiled it. It ended reporting a segmentation fault my enviorment is missing some of the debug modules but gdb was able to report the above error/trackback for me.