Bug 18187 - SegFault of __strcpy() in glibc.so.6
SegFault of __strcpy() in glibc.so.6
Product: Red Hat Linux
Classification: Retired
Component: sysklogd (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 2000-10-03 02:50 EDT by Need Real Name
Modified: 2014-03-16 22:16 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-04 00:00:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
strace of ncftp (rpm standard) (11.66 KB, text/plain)
2000-10-03 20:37 EDT, Need Real Name
no flags Details

  None (edit)
Description Need Real Name 2000-10-03 02:50:17 EDT
/sbin/checkpc and syslogd both segfault for the same reason (ie, a call to __strcpy() in glibc.so.6, or atleast that's the point gdb returns a 
Platform is an upgraded RH6.2 -> 7.0, K6-3 box.
Comment 1 Jakub Jelinek 2000-10-03 03:31:30 EDT
No, that probably means just a segfault somewhere in the main program which
has stripped symbols (try to compile a simple program calling strcpy and then
*(int *)0 = 0 in main, strip it and see what gdb shows you. The __strcpy symbol
comes from the .plt and as there are no more symbols, you get __strcpy+something.
So, could you please fill this as a sysklogd bug (but with description on how
you get it to segfault, it does not segfault for me - BTW: do you have the
security errata for sysklogd?) and I don't know where checkpc comes from?
Comment 2 Bill Nottingham 2000-10-03 09:42:11 EDT
checkpc is part of LPRng. What does rpm -q glibc say?
Comment 3 Need Real Name 2000-10-03 17:59:12 EDT
Okay... this isn't a sysklogd problem alone. checkpc, syslogd and ncftp all segfault. Nothing special needs to be done, just run them.
syslogd will run but rang (annoying as start up). Using the -d flag will make it segfault and core dump.
ncftp and checkpc just need to be run in order to create a segfault and core dump (yes, both).

rpm -q glibc returns glibc-2.1.92-14
Comment 4 Bill Nottingham 2000-10-03 18:12:39 EDT
Can you rebuild a debugging version of ncftp and get a backtrace
of where it crashes?

Do you have your locale set to anything in particular?
Comment 5 Need Real Name 2000-10-03 20:37:44 EDT
Created attachment 3698 [details]
strace of ncftp (rpm standard)
Comment 6 Need Real Name 2000-10-03 21:15:27 EDT
locale is set to en_US
Comment 7 Bill Nottingham 2000-10-03 21:24:33 EDT
Can you post your /etc/hosts file, and your /etc/nsswitch.conf?
Comment 8 Need Real Name 2000-10-04 00:00:54 EDT
Well... /etc/hosts was revealing. Removed the the last entry. Things don't segfault now. Closed(?).

## /etc/hosts	Minion.gmu.edu	Minion	localhost.localdomain	localhost	Minion	Minion

Note You need to log in before you can comment on or make changes to this bug.