v1.1.43 hangs with GLib/GDK threads

lowhalo@hush.com lowhalo@hush.com
Mon, 8 Sep 2003 14:41:18 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



> What the h... are glib threads?

http://developer.gnome.org/doc/API/2.0/glib/glib-Threads.html

> If you report deadlocks, please always include a gdb backtrace
> (bt, bt full) and other status information (x/20i, info regs) in
> your report.

I already provided a backtrace in a previous post.  But, here is a
'bt full' and 'info reg' (although you can easily get this from
the program I wrote):

#0  0x40640a35 in __pthread_sigsuspend () from /lib/i686/libpthread.so.0
No symbol table info available.
#1  0x4063fdb8 in __pthread_wait_for_restart_signal ()
   from /lib/i686/libpthread.so.0
No symbol table info available.
#2  0x40642190 in __pthread_alt_lock () from /lib/i686/libpthread.so.0
No symbol table info available.
#3  0x4063ed77 in pthread_mutex_lock () from /lib/i686/libpthread.so.0
No symbol table info available.
#4  0x405f540d in _gcry_ath_mutex_lock (lock=0x40637810) at ath-compat.c:87
        err = -4
#5  0x405f8f9d in _gcry_secmem_malloc (size=24) at secmem.c:485
        p = (void *) 0x18
#6  0x405f871d in _gcry_private_malloc_secure (n=24) at stdmem.c:105
No locals.
#7  0x405f6145 in gcry_malloc_secure (n=0) at global.c:397
No locals.
#8  0x405f642d in gcry_xmalloc_secure (n=24) at global.c:523
        p = (void *) 0x6
#9  0x4062709d in _gcry_mpi_alloc_limb_space (nlimbs=6, secure=1)
    at mpiutil.c:82
        p = (mpi_limb_t *) 0x0
#10 0x40627067 in _gcry_mpi_alloc_secure (nlimbs=6) at mpiutil.c:71
        a = (struct gcry_mpi *) 0x804b860
#11 0x40627410 in _gcry_mpi_copy (a=0x804b2a0) at mpiutil.c:223
        i = 0
        b = (struct gcry_mpi *) 0x42138c90
#12 0x406235b5 in gcry_mpi_gcd (g=0x804b6f8, xa=0x804b2a0, xb=0x804b758)
    at mpi-gcd.c:35
        a = (struct gcry_mpi *) 0x804b2a0
        b = (struct gcry_mpi *) 0x804b758
#13 0x40619876 in gen_k (p=0x804b418) at elgamal.c:209
        k = (struct gcry_mpi *) 0x804b2a0
        temp = (struct gcry_mpi *) 0x804b6f8
        p_1 = (struct gcry_mpi *) 0x804b758
        orig_nbits = 512
        nbits = 178
        nbytes = 23
        rndbuf = 0x804b4e0 "G?M?\205$\231\001?gZRh?\202Q?s\025\214(?\030"
#14 0x40619c87 in do_encrypt (a=0x804b2d8, b=0x804b460, input=0x804b3f0,

    pkey=0xbffff740) at elgamal.c:349
        k = (struct gcry_mpi *) 0x804b460
#15 0x406196dc in test_keys (sk=0xbffff7c0, nbits=448) at elgamal.c:135
        pk = {p = 0x804b418, g = 0x804b3d8, y = 0x804bf50}
        test = (struct gcry_mpi *) 0x804b3f0
        out1_a = (struct gcry_mpi *) 0x804b2d8
        out1_b = (struct gcry_mpi *) 0x804b460
        out2 = (struct gcry_mpi *) 0x804b430
#16 0x40619b2e in generate (sk=0xbffff7c0, nbits=512, ret_factors=0xbffff898)
    at elgamal.c:315
        p = (struct gcry_mpi *) 0x804b418
        p_min1 = (struct gcry_mpi *) 0x804b318
        g = (struct gcry_mpi *) 0x804b3d8
        x = (struct gcry_mpi *) 0x804bf38
        y = (struct gcry_mpi *) 0x804bf50
        temp = (struct gcry_mpi *) 0x804b378
        qbits = 134528848
        xbits = 180
        rndbuf = (byte *) 0x804bf50 " "
#17 0x40619ef9 in _gcry_elg_generate (algo=20, nbits=512, dummy=65537,

    skey=0xbffff960, retfactors=0xbffff898) at elgamal.c:507
        sk = {p = 0x804b418, g = 0x804b3d8, y = 0x804bf50, x = 0x804bf38}
#18 0x405fba4f in pubkey_generate (algorithm=20, nbits=512, use_e=65537,

    skey=0xbffff960, retfactors=0xbffff898) at pubkey.c:473
        err = GPG_ERR_PUBKEY_ALGO
        pubkey = (struct gcry_module *) 0x804a698
#19 0x405fe23f in gcry_pk_genkey (r_key=0x804b248, s_parms=0x804b258)
    at pubkey.c:1889
        pubkey = (struct gcry_pk_spec *) 0x6
        module = (struct gcry_module *) 0x804a698
        list = (struct gcry_sexp *) 0x804b300
        l2 = (struct gcry_sexp *) 0x0
        name = 0x804b30c "512\004"
        n = 3
        rc = GPG_ERR_NO_ERROR
        i = 0
        algo_name = 0x40631798 "elg"
        sec_elems = 0x406317b4 "pgyx"
        pub_elems = 0x406317b0 "pgy"
        skey = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
        factors = (struct gcry_mpi **) 0x804b448
        nbits = 512
        use_e = 65537
#20 0x08048d72 in generate_key ()
No symbol table info available.
#21 0x08048bd2 in main ()
No symbol table info available.
#22 0x420158f7 in __libc_start_main () from /lib/i686/libc.so.6
No symbol table info available.
(gdb) info reg
eax            0xfffffffc       -4
ecx            0x8      8
edx            0x0      0
ebx            0xbffff410       -1073744880
esp            0xbffff3f4       0xbffff3f4
ebp            0xbffff3f8       0xbffff3f8
esi            0x40645078       1080316024
edi            0xbffff410       -1073744880
eip            0x40640a35       0x40640a35
eflags         0x246    582
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x7      7
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm1           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm3           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm4           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm6           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff),

    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
mxcsr          0x1f80   8064
orig_eax       0xb3     179


    - low halo

- --
low halo <lowhalo at-s1gn hush d0t c0m>
Defender of Truth and Liberty
http://ultramagnetic.sourceforge.net/

http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9BFD99BF
58CE 3215 226A 69ED 4D20 4044 C925 54F9 9BFD 99BF

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/XPhOySVU+Zv9mb8RAjEgAJ9fa4xkC8jDIoVU73pzq7ipowc8BwCg49Kz
FGZLawWFDvhZLF66+cvm7ZI=
=oZGk
-----END PGP SIGNATURE-----




Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2

Free, ultra-private instant messaging with Hush Messenger
https://www.hushmail.com/services.php?subloc=messenger&l=434

Promote security and make money with the Hushmail Affiliate Program: 
https://www.hushmail.com/about.php?subloc=affiliate&l=427