Bug 47374 - test failure: test_set_clear: hash-test.c:182: should be null
Summary: test failure: test_set_clear: hash-test.c:182: should be null
Status: RESOLVED FIXED
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 13:54 UTC by Jim Lloyd
Modified: 2012-03-27 04:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jim Lloyd 2012-03-15 13:54:11 UTC
[jim@lobo p11-kit-0.12]$ uname -a
Linux lobo.silvertailsystems.com 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux[jim@lobo p11-kit-0.12]$ cat /etc/redhat-release 
CentOS Linux release 6.0 (Final)
[jim@lobo p11-kit-0.12]$ make check
Making check in p11-kit
make[1]: Entering directory `/home/jim/packages/p11-kit-0.12/p11-kit'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/jim/packages/p11-kit-0.12/p11-kit'
Making check in tools
make[1]: Entering directory `/home/jim/packages/p11-kit-0.12/tools'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/jim/packages/p11-kit-0.12/tools'
Making check in tests
make[1]: Entering directory `/home/jim/packages/p11-kit-0.12/tests'
make  check-TESTS
make[2]: Entering directory `/home/jim/packages/p11-kit-0.12/tests'
0x402eb3 setting
....F........

There was 1 failure:
1) test_set_clear: hash-test.c:182: should be null

!!!FAILURES!!!
Runs: 13 Passes: 12 Fails: 1

FAIL: hash-test
........

OK (8 tests)

PASS: ptr-array-test
..............

OK (14 tests)

PASS: conf-test
.......................................

OK (39 tests)

PASS: uri-test
.......

OK (7 tests)

PASS: pin-test
p11-kit: p11-kit initialization called recursively
...

OK (3 tests)

PASS: test-init
============================================================================
1 of 6 tests failed
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=p11-glue
============================================================================
make[2]: *** [check-TESTS] Error 1
Comment 1 Jim Lloyd 2012-03-15 13:59:48 UTC
The same bug happens with p11-kit-0.11.
I want to build gnutls-2.12.17 which requires p11-kit >= 0.11.
Comment 2 Stef Walter 2012-03-27 04:08:24 UTC
Thanks for reporting the problem. Fixed in git master.


commit af8d28014f97ab0d9e4d00961e72aefd7adb470b
Author: Stef Walter <stefw@gnome.org>
Date:   Tue Mar 27 12:14:56 2012 +0200

    Fix broken hashmap behavior
    
     * We were relying on undefined gcc behavior related to the &
       operator.
     * This would show up as a test failure when running with -O2 on
       certain GCC versions, as well as failure on clang 3.1


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.