Bug 62820 - 0.17.4 Bus error on sparc
Summary: 0.17.4 Bus error on sparc
Status: RESOLVED DUPLICATE of bug 62819
Alias: None
Product: p11-glue
Classification: Unclassified
Component: p11-kit (show other bugs)
Version: unspecified
Hardware: SPARC All
: medium normal
Assignee: Stef Walter
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-27 15:31 UTC by Andreas Metzler
Modified: 2013-04-02 14:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Andreas Metzler 2013-03-27 15:31:02 UTC
Hello,

0.17.4 testsuite fails on sparc with a bus error:

https://buildd.debian.org/status/fetch.php?pkg=p11-kit&arch=sparc&ver=0.17.4-2&stamp=1364326834

-------------
make[4]: Entering directory `/build/buildd-p11-kit_0.17.4-2-sparc-INITzK/p11-kit-0.17.4/tools/tests'
/bin/bash: line 5:  7179 Bus error               ${dir}$tst
FAIL: test-save
...............

OK (15 tests)

PASS: test-extract
/bin/bash: line 5:  7223 Bus error               ${dir}$tst
FAIL: test-x509
/bin/bash: line 5:  7247 Bus error               ${dir}$tst
FAIL: test-pem
/bin/bash: line 5:  7270 Bus error               ${dir}$tst
FAIL: test-openssl
============================================================================
4 of 5 tests failed
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=p11-glue
-------------

cu andreas
Comment 1 Stef Walter 2013-03-27 15:59:57 UTC
Unfortunately I do not have access to a SPARC machine. Could you provide backtraces for the various crashes? Is it likely that these are related to bug #62819?
Comment 2 Andreas Metzler 2013-03-27 16:47:10 UTC
---------------------------------
(gdb) run
Starting program: /home/ametzler/P11/p11-kit-0.17.4/tools/tests/.libs/lt-test-save
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1".

Program received signal SIGBUS, Bus error.
0x00017c94 in p11_hash_murmur2 (hash=0xffffd33c, input=<optimized out>, len=8)
    at hash.c:606
606                     if (len >= 4) {
(gdb) bt
#0  0x00017c94 in p11_hash_murmur2 (hash=0xffffd33c, input=<optimized out>,
    len=8) at hash.c:606
#1  0x00014c20 in p11_dict_str_hash (string=0x2f823) at dict.c:332
#2  0x000145b4 in lookup_or_create_bucket (dict=0x2f4d8, key=0x2f823,
    create=false) at dict.c:112
#3  0x000148d4 in p11_dict_steal (dict=0x2f4d8, key=0x2f823,
    stolen_key=0xffffd460, stolen_value=0xffffd464) at dict.c:209
#4  0x00014958 in p11_dict_remove (dict=0x2f4d8, key=0x2f823) at dict.c:233
#5  0x00018c24 in test_check_directory_msg (tc=0x2f398,
    file=0x19ac8 "test-save.c", line=353,
    directory=0x2f7b8 "/tmp/test-extract.o9OXXp/extract-dir", files=0x2f4d8)
    at test.c:194
#6  0x000125d8 in test_directory_files (tc=0x2f398) at test-save.c:349
#7  0x00019218 in CuTestRun (tc=0x2f398) at cutest/CuTest.c:143
#8  0x00019714 in CuSuiteRun (testSuite=0x2e120) at cutest/CuTest.c:279
#9  0x00011604 in main () at test-save.c:558
(gdb)
---------------------------------
-------------------------------------------------
(gdb) run
Starting program: /home/ametzler/P11/p11-kit-0.17.4/tools/tests/.libs/lt-test-x509
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1".

Program received signal SIGBUS, Bus error.
0x000229f4 in p11_hash_murmur2 (hash=0xffffd34c, input=<optimized out>, len=16)
    at hash.c:606
606                     if (len >= 4) {
(gdb) bt
#0  0x000229f4 in p11_hash_murmur2 (hash=0xffffd34c, input=<optimized out>,
    len=16) at hash.c:606
#1  0x0001f980 in p11_dict_str_hash (string=0x61483) at dict.c:332
#2  0x0001f314 in lookup_or_create_bucket (dict=0x4de88, key=0x61483,
    create=false) at dict.c:112
#3  0x0001f634 in p11_dict_steal (dict=0x4de88, key=0x61483,
    stolen_key=0xffffd470, stolen_value=0xffffd474) at dict.c:209
#4  0x0001f6b8 in p11_dict_remove (dict=0x4de88, key=0x61483) at dict.c:233
#5  0x00023984 in test_check_directory_msg (tc=0x4b228,
    file=0x2e2a0 "test-x509.c", line=223,
    directory=0x4ce58 "/tmp/test-extract.7CLvfK", files=0x4de88) at test.c:194
#6  0x000122cc in test_directory (tc=0x4b228) at test-x509.c:223
#7  0x0002d9f8 in CuTestRun (tc=0x4b228) at cutest/CuTest.c:143
#8  0x0002def4 in CuSuiteRun (testSuite=0x4a120) at cutest/CuTest.c:279
#9  0x00011dc4 in main () at test-x509.c:272
-------------------------------------------------
(gdb) run
Starting program: /home/ametzler/P11/p11-kit-0.17.4/tools/tests/.libs/lt-test-pem
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1".

Program received signal SIGBUS, Bus error.
0x00023694 in p11_hash_murmur2 (hash=0xffffd34c, input=<optimized out>, len=18)
    at hash.c:606
606                     if (len >= 4) {
(gdb) bt
#0  0x00023694 in p11_hash_murmur2 (hash=0xffffd34c, input=<optimized out>,
    len=18) at hash.c:606
#1  0x00020620 in p11_dict_str_hash (string=0x610fb) at dict.c:332
#2  0x0001ffb4 in lookup_or_create_bucket (dict=0x5b288, key=0x610fb,
    create=false) at dict.c:112
#3  0x000202d4 in p11_dict_steal (dict=0x5b288, key=0x610fb,
    stolen_key=0xffffd470, stolen_value=0xffffd474) at dict.c:209
#4  0x00020358 in p11_dict_remove (dict=0x5b288, key=0x610fb) at dict.c:233
#5  0x00024624 in test_check_directory_msg (tc=0x4b228,
    file=0x2ef40 "test-pem.c", line=213,
    directory=0x5a1f0 "/tmp/test-extract.8Kum0Y", files=0x5b288) at test.c:194
#6  0x000122cc in test_directory (tc=0x4b228) at test-pem.c:213
#7  0x0002e698 in CuTestRun (tc=0x4b228) at cutest/CuTest.c:143
#8  0x0002eb94 in CuSuiteRun (testSuite=0x4a120) at cutest/CuTest.c:279
#9  0x00011dc4 in main () at test-pem.c:262
-------------------------------------------------
(gdb) run
Starting program: /home/ametzler/P11/p11-kit-0.17.4/tools/tests/.libs/lt-test-openssl
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1".

Program received signal SIGBUS, Bus error.
0x000257f4 in p11_hash_murmur2 (hash=0xffffd334, input=<optimized out>, len=16)
    at hash.c:606
606                     if (len >= 4) {
(gdb) bt
#0  0x000257f4 in p11_hash_murmur2 (hash=0xffffd334, input=<optimized out>,
    len=16) at hash.c:606
#1  0x00022780 in p11_dict_str_hash (string=0x6595b) at dict.c:332
#2  0x00022114 in lookup_or_create_bucket (dict=0x53b08, key=0x6595b,
    create=false) at dict.c:112
#3  0x00022434 in p11_dict_steal (dict=0x53b08, key=0x6595b,
    stolen_key=0xffffd458, stolen_value=0xffffd45c) at dict.c:209
#4  0x000224b8 in p11_dict_remove (dict=0x53b08, key=0x6595b) at dict.c:233
#5  0x00026784 in test_check_directory_msg (tc=0x4d3e8,
    file=0x310a0 "test-openssl.c", line=612,
    directory=0x53a28 "/tmp/test-extract.21Z8BM", files=0x53b08) at test.c:194
#6  0x00013058 in test_directory (tc=0x4d3e8) at test-openssl.c:608
#7  0x000307f8 in CuTestRun (tc=0x4d3e8) at cutest/CuTest.c:143
#8  0x00030cf4 in CuSuiteRun (testSuite=0x4c120) at cutest/CuTest.c:279
#9  0x00011ec4 in main () at test-openssl.c:678
-------------------------------------------------
Comment 3 Stef Walter 2013-03-27 17:01:55 UTC
Could you see if the patch attached to bug #62819 fixes this?
Comment 4 Andreas Metzler 2013-03-27 17:24:54 UTC
(In reply to comment #3)
> Could you see if the patch attached to bug #62819 fixes this?

It does not make a difference.

cu andreas
Comment 5 Stef Walter 2013-03-28 10:48:00 UTC
I'm unable to boot the debian squeeeze netinst.iso with qemu-system-sparc or qemu-system-sparc64. Could you please produce a patch which fixes the problem, or send me a VM/QEMU image which reproduces the issue? Thank you.
Comment 6 Stef Walter 2013-04-02 14:35:16 UTC

*** This bug has been marked as a duplicate of bug 62819 ***


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.