Public bug reported:

This concerns krb5-auth-dialog 3.12.0-2 in Ubuntu Xenial.

When the program is invoked with the --auto option, it briefly maps the
systray icon, and then segfaults.

Here is a GDB session running on a debug build of the original package

$ gdb --args 
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from 
(gdb) r
Starting program: 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
[New Thread 0x7fffe9bf6700 (LWP 28626)]
[New Thread 0x7fffe93f5700 (LWP 28627)]
[New Thread 0x7fffe3fff700 (LWP 28630)]
[New Thread 0x7fffe37fe700 (LWP 28631)]

Thread 1 "krb5-auth-dialo" received signal SIGSEGV, Segmentation fault.
0x00007ffff7928b8f in krb5_cc_resolve (context=0x9f58a0, name=0x96f600 "am", 
    id=0x7fffffffda60) at cache.c:270
270     cache.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7928b8f in krb5_cc_resolve (context=0x9f58a0, 
    name=0x96f600 "am", id=0x7fffffffda60) at cache.c:270
#1  0x00000000004095b2 in ka_get_tgt_from_ccache (context=0x9f58a0, 
    at /tmp/krb5-auth-dialog-3.12.0/./src/ka-kerberos.c:886
#2  0x0000000000407d4b in credentials_expiring_real (applet=0x6be190)
    at /tmp/krb5-auth-dialog-3.12.0/./src/ka-kerberos.c:216
#3  0x0000000000408895 in credentials_expiring (data=0x6be190)
    at /tmp/krb5-auth-dialog-3.12.0/./src/ka-kerberos.c:520
#4  0x00000000004088e4 in credentials_expiring_once (data=0x6be190)
    at /tmp/krb5-auth-dialog-3.12.0/./src/ka-kerberos.c:536
#5  0x00007ffff604e04a in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/
#6  0x00007ffff604e3f0 in ?? () from /lib/x86_64-linux-gnu/
#7  0x00007ffff604e49c in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/
#8  0x00007ffff6615e30 in g_application_run ()
   from /usr/lib/x86_64-linux-gnu/
#9  0x000000000040c4b9 in main (argc=2, argv=0x7fffffffdee8)
    at /tmp/krb5-auth-dialog-3.12.0/./src/ka-applet.c:1235
(gdb) p context
$1 = (krb5_context) 0x9f58a0
(gdb) p *context
$2 = {etypes = 0x80101026c, etypes_des = 0x35000002b8, 
  as_etypes = 0x500730106, tgs_etypes = 0x33312e313a, 
  permitted_enctypes = 0x700750105, default_realms = 0x7328610500670108, 
  max_skew = 10611, kdc_timeout = 17187406087, host_timeout = 825110842, 
  max_retries = 7536896, kdc_sec_offset = 23, kdc_usec_offset = 778531439, 
  cf = 0x522e69707374612e, et_list = 0x79727473696765, 
  warn_dest = 0x2400730102, debug_dest = 0x793131612e67726f, 
  cc_ops = 0x442e69707374612e, num_cc_ops = 1667855973, 
  http_proxy = 0x6f72746e6f43746e <error: Cannot access memory at address 
  time_fmt = 0x72656c6c <error: Cannot access memory at address 0x72656c6c>, 
  log_utc = 7536899, 
  default_keytab = 0x6369766544746547 <error: Cannot access memory at address 
  default_keytab_modify = 0x694c746e65764565 <error: Cannot access memory at 
address 0x694c746e65764565>, use_admin_kdc = 1852142707, 
  extra_addresses = 0x1000100, scan_interfaces = 1, srv_lookup = 1, 
  srv_try_txt = 0, fcache_vno = 0, num_kt_types = 6, kt_types = 0x96ff70, 
  date_fmt = 0x7ffff796b758 "%Y-%m-%d", error_string = 0x0, error_code = 0, 
  ignore_addresses = 0x0, default_cc_name = 0x96f600 "am", 
  default_cc_name_env = 0x0, default_cc_name_set = 0, mutex = 0x9f4720, 
  large_msg_size = 1400, max_msg_size = 1024000, tgs_negative_timeout = 0, 
  flags = 39, send_to_kdc = 0x0, hx509ctx = 0x0, num_kdc_requests = 0, 
  name_canon_rules = 0x0}

As you can see, the Kerberos context object appears not to have been properly 

** Affects: krb5-auth-dialog (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  "krb5-auth-dialog --auto" segfaults on startup

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to