Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354459 - app-crypt/mit-krb5 fails tests
Summary: app-crypt/mit-krb5 fails tests
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
: 373803 386725 438094 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-11 11:17 UTC by Hans de Graaff
Modified: 2017-06-14 04:35 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,716.58 KB, text/plain)
2011-02-11 11:18 UTC, Hans de Graaff
Details
emerge --info (emerge-info.txt,14.49 KB, text/plain)
2011-02-11 11:18 UTC, Hans de Graaff
Details
build.log-1.9 (build.log,771.27 KB, text/plain)
2011-02-13 10:25 UTC, Hans de Graaff
Details
testlog (krb5-1.9) (testlog,2.13 KB, text/plain)
2011-02-14 19:02 UTC, Hans de Graaff
Details
the first build log, -1.9.1 (build.log,788.16 KB, text/plain)
2011-07-06 20:20 UTC, Ian Delaney (RETIRED)
Details
another first build log, -1.9.1 (build.log,881.63 KB, text/plain)
2011-07-06 21:09 UTC, Ian Delaney (RETIRED)
Details
the second build log, -1.9.1 (build.log,788.44 KB, text/plain)
2011-07-06 21:18 UTC, Ian Delaney (RETIRED)
Details
my emerge --info (emerge.info,4.54 KB, text/plain)
2011-07-06 21:20 UTC, Ian Delaney (RETIRED)
Details
build.log for test failure of mit-krb5-1.12.1-r2 (build.log,791.19 KB, text/plain)
2014-08-04 20:10 UTC, Jason Zaman
Details
emerge --info (file_354459.txt,6.07 KB, text/plain)
2014-08-04 20:13 UTC, Jason Zaman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2011-02-11 11:17:56 UTC
=== rpc_test Summary ===

# of unresolved testcases	1
# of unsupported tests		1
./client version <unknown>
./server version <unknown>
Failed, cleaning up...
make[3]: *** [unit-test-body] Error 1
Comment 1 Hans de Graaff gentoo-dev Security 2011-02-11 11:18:28 UTC
Created attachment 262111 [details]
build.log
Comment 2 Hans de Graaff gentoo-dev Security 2011-02-11 11:18:50 UTC
Created attachment 262113 [details]
emerge --info
Comment 3 Eray Aslan gentoo-dev 2011-02-11 16:11:39 UTC
I can't reproduce this and code looks OK.

What version of tcl, dejagnu and expect?
Comment 4 Hans de Graaff gentoo-dev Security 2011-02-11 16:18:01 UTC
(In reply to comment #3)
> I can't reproduce this and code looks OK.
> 
> What version of tcl, dejagnu and expect?

tcl: 8.5.8-r1
dejagnu: 1.4.4-r1
expect: 5.44.1.15
Comment 5 Eray Aslan gentoo-dev 2011-02-12 15:24:48 UTC
Bleh, still no go.

Before spending too much time on it, can you please check with mit-krb5-1.9-r1 as well?  Testing framework changed between version 1.8 and 1.9.  I would rather not debug this (rare?) hiccup if we are going to drop it in a few weeks time.
Comment 6 Hans de Graaff gentoo-dev Security 2011-02-13 10:24:50 UTC
app-crypt/mit-krb-1.9-r1 also fails for me.
Comment 7 Hans de Graaff gentoo-dev Security 2011-02-13 10:25:45 UTC
Created attachment 262327 [details]
build.log-1.9
Comment 8 Eray Aslan gentoo-dev 2011-02-14 17:55:42 UTC
> See testlog for details, or re-run with -v flag

Please attach the testlog (/var/tmp/portage/app-crypt/mit-krb5-1.9-r1/work/krb5-1.9/src/lib/krb5/krb/testlog)

> checking python2.3/Python.h usability... yes
> checking python2.3/Python.h presence... yes
> checking for python2.3/Python.h... yes
> checking python2.5/Python.h usability... no
> checking python2.5/Python.h presence... no
> checking for python2.5/Python.h... no
> checking for main in -lpython2.3... yes

Also, try without python-2.3 installed if possible.
Comment 9 Hans de Graaff gentoo-dev Security 2011-02-14 19:02:18 UTC
Created attachment 262511 [details]
testlog (krb5-1.9)
Comment 10 Hans de Graaff gentoo-dev Security 2011-02-14 19:03:04 UTC
(In reply to comment #8)

> Also, try without python-2.3 installed if possible.

Good catch, no clue why these files from 2005 were still on my system. Gone now, but no difference. See attached testlog.

Comment 11 Hans de Graaff gentoo-dev Security 2011-06-02 09:33:18 UTC
I'm seeing the same test failure with 1.9.1.
Comment 12 Eray Aslan gentoo-dev 2011-06-02 13:05:13 UTC
When the test run fails, can you run the resolv command at the command prompt?

$ /var/tmp/portage/app-crypt/mit-krb5-1.9.1/work/krb5-1.9.1/src/tests/resolve/resolve

You should get "Resolve library appears to have passed the test" as the last line of output.  If not, fiddle with /etc/hosts until you do and re-run the tests.  Please do not forget ipv6 entries as well if it is turned on, i.e. in /etc/hosts I am looking for something like:

127.0.0.1 test.example.com localhost
::1       test.example.com localhost

Also, hostname command should also be giving test.example.com as output.  Thank you.
Comment 13 Hans de Graaff gentoo-dev Security 2011-06-02 13:15:58 UTC
(In reply to comment #12)
> When the test run fails, can you run the resolv command at the command prompt?

Hostname:  graaff
Host address: 80.101.101.38
FQDN: graaff.xs4all.nl
Resolve library appears to have passed the test

> 127.0.0.1 test.example.com localhost
> ::1       test.example.com localhost
> 
> Also, hostname command should also be giving test.example.com as output.  Thank
> you.

Are you saying that I need to add this to /etc/hosts to get tests to pass? Or that something similar would get tests to fail?

This is all I have in /etc/hosts:

127.0.0.1	localhost
::1		localhost
Comment 14 Eray Aslan gentoo-dev 2011-06-02 13:19:54 UTC
(In reply to comment #13)
> This is all I have in /etc/hosts:

Please try with 

127.0.0.1 graaff.xs4all.nl localhost
::1       graaff.xs4all.nl localhost

and make sure hostname output is graaff.xs4all.nl

Thanks.
Comment 15 Hans de Graaff gentoo-dev Security 2011-06-02 13:49:38 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > This is all I have in /etc/hosts:
> 
> Please try with 
> 
> 127.0.0.1 graaff.xs4all.nl localhost
> ::1       graaff.xs4all.nl localhost
> 
> and make sure hostname output is graaff.xs4all.nl
> 
> Thanks.

That seems to work, but it also seems broken to me, since that hostname should not be associated with the loopback device. With this in place I still get a failure further on:

Running ./krb-standalone/sample.exp ...
Running ./krb-standalone/simple.exp ...
ERROR: sim_server failed to start
ERROR: error in simple.exp
: spawn id exp15 not open
Comment 16 Eray Aslan gentoo-dev 2011-06-02 14:41:44 UTC
(In reply to comment #15)
> That seems to work, but it also seems broken to me, since that hostname should
> not be associated with the loopback device.

Aye.  That was just a quick and dirty check to see if the problem is really with name resolution.  You should revert the changes in /etc/hosts and check your name lookups.  Please make sure everything is resolvable and matches.  Kerberos is picky in this regard.

> Running ./krb-standalone/sample.exp ...
> Running ./krb-standalone/simple.exp ...
> ERROR: sim_server failed to start
> ERROR: error in simple.exp
> : spawn id exp15 not open

Buildlog and testlog please.
Comment 17 Ian Delaney (RETIRED) gentoo-dev 2011-07-06 20:17:49 UTC
archtester documents # eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.1
 
yields the first 

archtester documents # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.1 *

yields the 2nd.
Comment 18 Ian Delaney (RETIRED) gentoo-dev 2011-07-06 20:20:34 UTC
Created attachment 279267 [details]
the first build log, -1.9.1
Comment 19 Ian Delaney (RETIRED) gentoo-dev 2011-07-06 21:09:03 UTC
Created attachment 279271 [details]
another first build log, -1.9.1

Ended up running the emerge again with seemingly same settings (python 2.7 selected) and it gave this slightly better run. Couldn't find a testlog that gave errors.
Comment 20 Ian Delaney (RETIRED) gentoo-dev 2011-07-06 21:18:39 UTC
Created attachment 279277 [details]
the second build log, -1.9.1
Comment 21 Ian Delaney (RETIRED) gentoo-dev 2011-07-06 21:20:20 UTC
Created attachment 279279 [details]
my emerge --info
Comment 22 Eray Aslan gentoo-dev 2011-07-14 05:41:30 UTC
*** Bug 373803 has been marked as a duplicate of this bug. ***
Comment 23 Eray Aslan gentoo-dev 2013-02-20 14:39:50 UTC
*** Bug 386725 has been marked as a duplicate of this bug. ***
Comment 24 Eray Aslan gentoo-dev 2013-02-20 14:40:42 UTC
*** Bug 438094 has been marked as a duplicate of this bug. ***
Comment 25 Jason Zaman gentoo-dev 2014-08-04 20:10:36 UTC
Created attachment 382270 [details]
build.log for test failure of mit-krb5-1.12.1-r2
Comment 26 Jason Zaman gentoo-dev 2014-08-04 20:13:37 UTC
Created attachment 382272 [details]
emerge --info

also:
# qlist -Iv dejagnu
dev-util/dejagnu-1.4.4-r3