Bug 707145 - [abrt] krb5-workstation-1.8.2-10.fc14: strcmp: Process /usr/bin/klist was killed by signal 11 (SIGSEGV)
[abrt] krb5-workstation-1.8.2-10.fc14: strcmp: Process /usr/bin/klist was kil...
Product: Fedora
Classification: Fedora
Component: krb5 (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Nalin Dahyabhai
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2011-05-24 04:20 EDT by Sheldon Hearn
Modified: 2011-07-06 17:34 EDT (History)
1 user (show)

See Also:
Fixed In Version: krb5-1.8.4-2.fc14
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-07-06 17:34:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
File: backtrace (58.45 KB, text/plain)
2011-05-24 04:20 EDT, Sheldon Hearn
no flags Details
core dump of segfaulting klist -s (56.30 KB, application/x-gzip)
2011-05-25 03:50 EDT, Sheldon Hearn
no flags Details
backtrace (58.45 KB, text/plain)
2011-05-25 03:51 EDT, Sheldon Hearn
no flags Details

  None (edit)
Description Sheldon Hearn 2011-05-24 04:20:36 EDT
abrt version: 1.1.18
architecture: x86_64
Attached file: backtrace, 59856 bytes
cmdline: klist -s
component: krb5
Attached file: coredump, 548864 bytes
crash_function: strcmp
executable: /usr/bin/klist
package: krb5-workstation-1.8.2-10.fc14
rating: 4
reason: Process /usr/bin/klist was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1306223272
uid: 500

Note that klist without arguments works as expected:

$ klist
Ticket cache: FILE:/tmp/krb5cc_500
Default principal: sheldonh/root@HOST-H.NET

Valid starting     Expires            Service principal
05/23/11 09:35:37  05/24/11 09:35:32  krbtgt/HOST-H.NET@HOST-H.NET

It's only klist -s that crashes.

How to reproduce
1. kinit sheldonh/root
2. Wait for ticket to expire
3. klist -s
Comment 1 Sheldon Hearn 2011-05-24 04:20:40 EDT
Created attachment 500559 [details]
File: backtrace
Comment 2 Nalin Dahyabhai 2011-05-24 11:45:10 EDT
Do you have the core dump from this crash?  When I get a TGT for nalin/admin here, and wait for it to expire, I don't see a crash.  Based on the partial klist output you gave above, the strcmp() call should be comparing two non-empty, correctly terminated strings, so it really shouldn't be triggering a segfault there.  Additionally, just to rule out any variation, are you also using glibc-2.13-1.x86_64?
Comment 3 Sheldon Hearn 2011-05-25 03:47:21 EDT
Thanks for your interest in this issue.

I installed some more debuginfo files, obtained a core file, and traced it.  I'll attach the compressed core file and the trace.

I've also confirmed that I'm using glibc-devel-2.13-1.x86_64.
Comment 4 Sheldon Hearn 2011-05-25 03:50:42 EDT
Created attachment 500751 [details]
core dump of segfaulting klist -s
Comment 5 Sheldon Hearn 2011-05-25 03:51:33 EDT
Created attachment 500753 [details]
Comment 6 Nalin Dahyabhai 2011-05-25 16:54:56 EDT
Ah, I see what's going on now.  The klist output was truncated at the interesting part: the crash is happening while examining credentials for "host/vcs.hetzner.co.za" with no realm name, which suggests that referrals were involved in getting the ticket for that server, and that's something that the KDC I usually use doesn't support yet.  With a one-off test KDC, it was pretty easy to reproduce.
Comment 7 Fedora Update System 2011-06-24 15:29:44 EDT
krb5-1.8.4-2.fc14 has been submitted as an update for Fedora 14.
Comment 8 Fedora Update System 2011-06-25 16:00:55 EDT
Package krb5-1.8.4-2.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing krb5-1.8.4-2.fc14'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 9 Fedora Update System 2011-07-06 17:34:20 EDT
krb5-1.8.4-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

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