Red Hat Bugzilla – Bug 1293668
Segmentation Fault strncpy in libc.so.6 from libcrack.so.2.8.1 symbol Fascistcheck()
Last modified: 2015-12-28 03:37:02 EST
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");
*** 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
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
libc.so.6 -> libc-2.12.s0
I created a mywords.txt file in my home directory, containing a few simple words to test:
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.
Can you please report this issue through regular Red Hat support channels so it can be properly investigated and prioritized?
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.