Bug 1295893 - Chrome crash in spnego_gss_inquire_context()
Summary: Chrome crash in spnego_gss_inquire_context()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: krb5
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robbie Harwood
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/krb5/krb5/pull/385
Whiteboard:
Depends On:
Blocks: 1296241
TreeView+ depends on / blocked
 
Reported: 2016-01-05 17:32 UTC by David Woodhouse
Modified: 2016-01-26 03:20 UTC (History)
5 users (show)

Fixed In Version: krb5-1.14-5.fc23 krb5-1.13.2-11.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1296241 (view as bug list)
Environment:
Last Closed: 2016-01-14 08:53:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Woodhouse 2016-01-05 17:32:40 UTC
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd6468700 (LWP 5331)]
spnego_gss_inquire_context (minor_status=0x7fffd6466f64, context_handle=0x0, 
    src_name=0x7fffd6466de0, targ_name=0x7fffd6466dd8, 
    lifetime_rec=0x7fffd6466f4c, mech_type=0x7fffd6466dd0, 
    ctx_flags=0x7fffd6466f3c, locally_initiated=0x7fffd6466f38, 
    opened=0x7fffd6466f34) at spnego_mech.c:2256
2256			*locally_initiated = sc->initiate;
(gdb) p sc
$1 = (spnego_gss_ctx_id_t) 0x0
(gdb) bt
#0  0x00007fffeedc5902 in spnego_gss_inquire_context (minor_status=0x7fffd6466f64, context_handle=0x0, src_name=0x7fffd6466de0, targ_name=0x7fffd6466dd8, lifetime_rec=0x7fffd6466f4c, mech_type=0x7fffd6466dd0, ctx_flags=0x7fffd6466f3c, locally_initiated=0x7fffd6466f38, opened=0x7fffd6466f34) at spnego_mech.c:2256
#1  0x00007fffeeda5fc4 in gss_inquire_context (minor_status=0x7fffd6466f64, context_handle=<optimized out>, src_name=0x7fffd6466f58, targ_name=0x7fffd6466f50, lifetime_rec=0x7fffd6466f4c, mech_type=0x7fffd6466f40, ctx_flags=0x7fffd6466f3c, locally_initiated=0x7fffd6466f38, opened=0x7fffd6466f34) at g_inq_context.c:114
#2  0x00005555568388af in  ()

Comment 1 David Woodhouse 2016-01-05 17:34:07 UTC
Addressed by https://github.com/krb5/krb5/pull/385

Comment 2 David Woodhouse 2016-01-05 17:35:03 UTC
Seen in F22 too

Comment 3 Robbie Harwood 2016-01-06 13:38:26 UTC
I'll backport the fix from upstream once Simo's PR has merged.

Comment 4 David Woodhouse 2016-01-08 16:56:10 UTC
It's merged now: https://github.com/krb5/krb5/commit/3beb564cea3

Scratch build for F23 at
http://koji.fedoraproject.org/koji/taskinfo?taskID=12468174

I don't seem to be able to build for F22 though; the build fails (in an apparently unrelated way). When it fails, the failure in 
http://koji.fedoraproject.org/koji/taskinfo?taskID=12468199 should look something like:

PYTHONPATH=../../../util VALGRIND="" python ./t_cccol.py 
NWRAP_ERROR(1678) - nwrap_add_hname: Unable to add alias: test.example.com
NWRAP_ERROR(1678) - nwrap_parse_file: Unable to parse line file: 127.0.0.1
NWRAP_ERROR(1678) - nwrap_files_cache_reload: Failed to reload /home/dwmw2/fedora/krb5/f22/krb5-1.13.2/nss_wrapper/fakehosts
NWRAP_ERROR(1678) - nwrap_files_getaddrinfo: error loading hosts file
Traceback (most recent call last):
  File "./t_cccol.py", line 2, in <module>
    from k5test import *
  File "/home/dwmw2/fedora/krb5/f22/krb5-1.13.2/src/util/k5test.py", line 1183, in <module>
    hostname = _get_hostname()
  File "/home/dwmw2/fedora/krb5/f22/krb5-1.13.2/src/util/k5test.py", line 465, in _get_hostname
    ai = socket.getaddrinfo(hostname, None, 0, 0, 0, socket.AI_CANONNAME)
socket.error: [Errno 2] No such file or directory
Makefile:756: recipe for target 'check-pytests' failed
make[2]: *** [check-pytests] Error 1

Comment 5 Robbie Harwood 2016-01-08 18:59:37 UTC
Yeah, as per comments on IRC that's due to a bug in nss_wrapper.  I've fixed it before in f23 and rawhide, so I guess f22 will get the fix too with this update.

Anyway, packages are building; expect a bodhi update in an hour or so.

Comment 6 Fedora Update System 2016-01-08 19:38:33 UTC
krb5-1.14-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-59825bca79

Comment 7 Fedora Update System 2016-01-09 18:21:07 UTC
krb5-1.14-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-59825bca79

Comment 8 Fedora Update System 2016-01-09 18:21:55 UTC
krb5-1.13.2-11.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-91d16b7dc4

Comment 9 Fedora Update System 2016-01-14 08:53:11 UTC
krb5-1.14-5.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-01-26 03:20:48 UTC
krb5-1.13.2-11.fc22 has been pushed to the Fedora 22 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.