[gnutls-devel] mini-xssl test fails on mips

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 29 23:33:36 CEST 2013

On Wed 2013-05-29 17:22:34 -0400, Nikos Mavrogiannopoulos wrote:

> It seems there is a crash. Could you check with a debugger?

not sure if this is useful:

1 (experimental_mipsel-dchroot)dkg at eder:~/src/gnutls28/gnutls28-3.1.11/tests$ gdb ./mini-xssl
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mipsel-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /home/dkg/src/gnutls28/gnutls28-3.1.11/tests/mini-xssl...done.
(gdb) run
Starting program: /home/dkg/src/gnutls28/gnutls28-3.1.11/tests/mini-xssl
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/mipsel-linux-gnu/libthread_db.so.1".

Program received signal SIGPIPE, Broken pipe.
0x77d64470 in __libc_writev (fd=7, vector=0x7fff3220, count=1)
    at ../sysdeps/unix/sysv/linux/writev.c:50
50      ../sysdeps/unix/sysv/linux/writev.c: No such file or directory.
(gdb) bt
#0  0x77d64470 in __libc_writev (fd=7, vector=0x7fff3220, count=1)
    at ../sysdeps/unix/sysv/linux/writev.c:50
#1  0x77ec617c in _gnutls_writev (giovec_cnt=1, giovec=0x7fff3220,
    session=0x42f1b0) at gnutls_buffers.c:422
#2  _gnutls_io_write_flush (session=0x42f1b0) at gnutls_buffers.c:614
#3  0x77ebf960 in _gnutls_send_tlen_int (session=0x42f1b0, type=GNUTLS_ALERT,
    htype=<optimized out>, epoch_rel=<optimized out>, _data=0x7fff33f0,
    data_size=2, target_length=2, mflags=1) at gnutls_record.c:556
#4  0x77ee7abc in _gnutls_send_int (mflags=1, data_size=2, _data=0x7fff33f0,
    epoch_rel=70001, htype=4294967295, type=GNUTLS_ALERT, session=0x42f1b0)
    at ./gnutls_record.h:42
#5  gnutls_alert_send (session=0x42f1b0, level=<optimized out>,
    desc=<optimized out>) at gnutls_alert.c:156
#6  0x77ec1a2c in gnutls_bye (session=0x42f1b0, how=GNUTLS_SHUT_WR)
    at gnutls_record.c:313
#7  0x77dff534 in xssl_deinit (sb=0x4331a8) at xssl.c:557
#8  0x0040176c in server (fd=7, vmethod=0) at mini-xssl.c:319
#9  0x004018f0 in start (vc=2, vs=0, ccert=0) at mini-xssl.c:353
#10 0x00401a80 in doit () at mini-xssl.c:395
#11 0x0040138c in main (argc=0, argv=0x7fff3774) at utils.c:155

the SIGPIPE makes me think that something is going wrong in a
subprocess, but i'm not sure how to ensure that gdb follows the

if there are specific things you'd like me to try within the debugger,
please let me know.  sorry to not be resolving this myself -- i'm
juggling several tasks right now so i haven't been able to give this as
much attention as i'd like.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 965 bytes
Desc: not available
URL: </pipermail/attachments/20130529/3c7cb59a/attachment.sig>

More information about the Gnutls-devel mailing list