Bug#730011: Problem with debconf?

2013-11-24 Thread Brian May
(sid)root@aquitard:/home/brian# apt-get install gdb heimdal-dbg
[...]

(sid)root@aquitard:/home/brian# gdb kstash
GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1)
Copyright (C) 2013 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".
For bug reporting instructions, please see:
...
Reading symbols from /usr/sbin/kstash...Reading symbols from
/usr/lib/debug/usr/sbin/kstash...done.
done.
(gdb) set args --master-key-fd=0
(gdb) run
Starting program: /usr/sbin/kstash --master-key-fd=0
warning: no loadable sections found in added symbol-file system-supplied
DSO at 0x77ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".


Program received signal SIGFPE, Arithmetic exception.
0x779777fc in rr13 (len=0, src=0x605fba "", dst2=0x605fba "",
dst1=0x605f90 "\350&\204\366\377\177") at n-fold.c:40
40  n-fold.c: No such file or directory.
(gdb) bt
#0  0x779777fc in rr13 (len=0, src=0x605fba "", dst2=0x605fba "",
dst1=0x605f90 "\350&\204\366\377\177") at n-fold.c:40
#1  _krb5_n_fold (str=str@entry=0x605e70, len=len@entry=0,
key=key@entry=0x605f10,
size=size@entry=21) at n-fold.c:141
#2  0x77983fd9 in krb5_string_to_key_derived
(context=context@entry=0x603040,
str=str@entry=0x605e70, len=len@entry=0,
etype=etype@entry=KRB5_ENCTYPE_DES3_CBC_SHA1, key=key@entry=0x7fffe620)
at salt.c:276
#3  0x77984b42 in DES3_string_to_key_derived (context=0x603040,
enctype=KRB5_ENCTYPE_DES3_CBC_SHA1, password=..., salt=...,
opaque=..., key=0x7fffe620) at salt-des3.c:117
#4  0x77983d74 in krb5_string_to_key_data_salt
(context=context@entry=0x603040,
enctype=enctype@entry=KRB5_ENCTYPE_DES3_CBC_SHA1, password=...,
salt=..., key=key@entry=0x7fffe620) at salt.c:170
#5  0x77983eaf in krb5_string_to_key_salt (context=0x603040,
enctype=KRB5_ENCTYPE_DES3_CBC_SHA1,
password=password@entry=0x7fffe660 "", salt=...,
key=key@entry=0x7fffe620)
at salt.c:222
#6  0x00401347 in main (argc=, argv=)
at kstash.c:130
(gdb)

-- 
Brian May 


Bug#730011: Problem with debconf?

2013-11-24 Thread Brian May
Sorry, no, not a debconf bug. Looks like kstash is the culprit:

(sid)root@aquitard:/home/brian# /usr/share/debconf/frontend sh -x
/var/lib/dpkg/info/heimdal-kdc.postinst install 1.6~git20131117+dfsg-3
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z  ]
+ exec
+ [  ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ [ ! -f /var/log/heimdal-kdc.log ]
+ [ ! -f /etc/heimdal-kdc/.configured ]
+ [ -f /var/lib/heimdal-kdc/.configured ]
+ [ -n 1.6~git20131117+dfsg-3 ]
+ dpkg --compare-versions 1.6~git20131117+dfsg-3 lt 1.2.dfsg.1-3
+ [ ! -f /etc/heimdal-kdc/.configured ]
+ db_get heimdal/realm
+ _db_cmd GET heimdal/realm
+ _db_internal_IFS=

+ IFS=
+ printf %s\n GET heimdal/realm
+ IFS=

+ IFS=
 read -r _db_internal_line
+ RET=IN.VPAC.ORG
+ return 0
+ REALM=IN.VPAC.ORG
+ db_get heimdal-kdc/password
+ _db_cmd GET heimdal-kdc/password
+ _db_internal_IFS=

+ IFS=
+ printf %s\n GET heimdal-kdc/password
+ IFS=

+ IFS=
 read -r _db_internal_line
+ RET=
+ return 0
+ PASSWORD=
+ db_set heimdal-kdc/password
+ _db_cmd SET heimdal-kdc/password
+ _db_internal_IFS=

+ IFS=
+ printf %s\n SET heimdal-kdc/password
+ IFS=

+ IFS=
 read -r _db_internal_line
+ RET=value set
+ return 0
+ DST=/etc/heimdal-kdc/kdc.conf
+ cat /usr/share/heimdal-kdc/kdc.conf
+ [ ! -e /var/lib/heimdal-kdc/kdc.conf ]
+ DST=/etc/heimdal-kdc/kadmind.acl
+ cp -a /usr/share/heimdal-kdc/kadmind.acl /etc/heimdal-kdc/kadmind.acl
+ kstash --master-key-fd=0
Floating point exception
+ kadmin -l init --realm-max-ticket-life=unlimited
--realm-max-renewable-life=unlimited IN.VPAC.ORG
+ touch /etc/heimdal-kdc/.configured
+ printf /var/lib/dpkg/info/heimdal-kdc.postinst: incorrect arguments:
install 1.6~git20131117+dfsg-3\n
/var/lib/dpkg/info/heimdal-kdc.postinst: incorrect arguments: install
1.6~git20131117+dfs(sid)root@aquitard:/home/brian# kstash --master-key-fd=0

Floating point exception
g-3
+ exit 1

I can reproduce this:

(sid)root@aquitard:/home/brian# echo | kstash --master-key-fd=0
Floating point exception

(or push enter once instead of piping from echo)


Bug#730011: Problem with debconf?

2013-11-24 Thread Jelmer Vernooij
On Mon, Nov 25, 2013 at 09:20:04AM +1100, Brian May wrote:
> On 25 November 2013 02:37, Jelmer Vernooij  wrote:
> 
> > This appears to be happening in the debconf frontend.
> >
> > # /usr/share/debconf/frontend /var/lib/dpkg/info/heimdal-kdc.postinst
> > install 1.6~git20131117+dfsg-3
> > Floating point exception
> >
> 
> Does:
> 
> export DEBCONF_DEBUG=developer
> /usr/share/debconf/frontend /var/lib/dpkg/info/heimdal-kdc.postinst install
> 1.6~git20131117+dfsg-3
> 
> show anything?

debconf (developer): frontend started
debconf (developer): frontend running, package name is heimdal-kdc
debconf (developer): starting /var/lib/dpkg/info/heimdal-kdc.config configure 
debconf (developer): <-- TITLE Heimdal KDC
debconf (developer): --> 0
debconf (developer): <-- GET krb5-config/default_realm
debconf (developer): --> 0 REALM.NL
debconf (developer): <-- FGET heimdal/realm seen
debconf (developer): --> 0 false
debconf (developer): <-- SET heimdal/realm REALM.NL
debconf (developer): --> 0 value set
debconf (developer): <-- SUBST heimdal/realm default_realm REALM.NL
debconf (developer): --> 0
debconf (developer): <-- INPUT medium heimdal/realm
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): <-- INPUT medium heimdal-kdc/password
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): starting /var/lib/dpkg/info/heimdal-kdc.postinst
configure 
debconf (developer): <-- GET heimdal/realm
debconf (developer): --> 0 REALM.NL
debconf (developer): <-- GET heimdal-kdc/password
debconf (developer): --> 0 
debconf (developer): <-- SET heimdal-kdc/password 
debconf (developer): --> 0 value set
Floating point exception

Jelmer


signature.asc
Description: Digital signature


Bug#730011: Problem with debconf?

2013-11-24 Thread Brian May
On 25 November 2013 02:37, Jelmer Vernooij  wrote:

> This appears to be happening in the debconf frontend.
>
> # /usr/share/debconf/frontend /var/lib/dpkg/info/heimdal-kdc.postinst
> install 1.6~git20131117+dfsg-3
> Floating point exception
>

Does:

export DEBCONF_DEBUG=developer
/usr/share/debconf/frontend /var/lib/dpkg/info/heimdal-kdc.postinst install
1.6~git20131117+dfsg-3

show anything?
-- 
Brian May 


Bug#730011: Problem with debconf?

2013-11-24 Thread Jelmer Vernooij
This appears to be happening in the debconf frontend.

# /usr/share/debconf/frontend /var/lib/dpkg/info/heimdal-kdc.postinst install 
1.6~git20131117+dfsg-3
Floating point exception


signature.asc
Description: Digital signature