sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sks-devel] SKS segfaulting on Fedora 17


From: Robert J. Hansen
Subject: [Sks-devel] SKS segfaulting on Fedora 17
Date: Thu, 31 May 2012 09:33:18 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

keyservers.org is a Fedora 15/x64 system running on hardware that's
coming to the end of its expected useful life.  isaiah.keyservers.org is
a Fedora 17/x64 system running on much newer and beefier hardware.  The
old system runs SKS 1.1.1; the new runs SKS 1.1.3.  Both come from the
Fedora repos.

I made a dump of the current KDB from keyservers.org and migrated it
over to isaiah, where it was placed in a subdirectory 'dump' off of my
sks dir (/var/sks).

Once there, from /var/sks I did an sks build run as follows:

        sks build -n 10 -cache 100 /var/sks/dump/*.pgp

And bam, instant segfault.  build.log is not useful:

        2012-05-31 01:51:59 Opening log
        2012-05-31 01:51:59 Opening KeyDB database

That's it.  Running gdb on the sks binary reveals:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Loading keys...done

Program received signal SIGSEGV, Segmentation fault.
SHA1_copy_and_swap (numwords=<optimized out>, dst=0x7fffff7feff0,
    src=0x7ffff7cbe948) at sha1.c:38
38          d[0] = s[3];
(gdb) l
33        unsigned char * s, * d;
34        unsigned char a, b;
35        for (s = src, d = dst; numwords > 0; s += 4, d += 4, numwords--) {
36          a = s[0];
37          b = s[1];
38          d[0] = s[3];
39          d[1] = s[2];
40          d[2] = b;
41          d[3] = a;
42        }


Now for where things get wacky: running the exact same command, but with
-n 20 instead of -n 10, causes a segfault in a different part of the code:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Loading keys...done

Program received signal SIGSEGV, Segmentation fault.
0x0000000000509713 in caml_darken ()
(gdb) l
1       /* interp - add information about dynamic loader to shared library
objects.
2          Copyright (C) 1996 Free Software Foundation, Inc.
3          This file is part of the GNU C Library.
4       
5          The GNU C Library is free software; you can redistribute it and/or
6          modify it under the terms of the GNU Lesser General Public
7          License as published by the Free Software Foundation; either
8          version 2.1 of the License, or (at your option) any later version.
9       
10         The GNU C Library is distributed in the hope that it will be useful,



... If any of the SKS maintainers want to take a look at this _in situ_,
I'd be happy to provide access to isaiah for debugging purposes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]