Skip Menu |

This queue is for tickets about the Gnome2-Vte CPAN distribution.

Report information
The Basics
Id: 74532
Status: resolved
Priority: 0/
Queue: Gnome2-Vte

People
Owner: Nobody in particular
Requestors: dan [...] berrange.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: (no value)



Subject: Test suite fails due to invalid file descriptor usage
Using Gnome2-Vte-0.09 and vte-0.28.2-2.fc16.x86_64 $ perl t/VteTerminal.t 1..47 ok 1 - The object isa Gnome2::Vte::Terminal ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 - The object isa Gtk2::Pango::FontDescription ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 - The reference isa ARRAY ok 15 ok 16 - The reference isa ARRAY ok 17 ok 18 - The reference isa ARRAY ok 19 ok 20 - The reference isa ARRAY ok 21 - The reference isa HASH ok 22 ok 23 ok 24 ok 25 ok 26 ok 27 ok 28 - The object isa Gtk2::Gdk::Color ok 29 ok 30 - The object isa Gtk2::Gdk::Color ok 31 ok 32 ok 33 ok 34 ok 35 ok 36 ok 37 ok 38 ok 39 - The object isa Gtk2::Adjustment ok 40 ok 41 ok 42 ok 43 ok 44 ok 45 ok 46 ok 47 (VteTerminal.t:28925): Vte-0.0-CRITICAL **: vte_pty_set_utf8: assertion `priv->pty_fd > 0' failed Segmentation fault This is caused by the following code in the test case $terminal -> set_pty(fileno STDIN); STDIN has a file descriptor of 0, so it causes the assertion in the C layer to fail. Trivial fix is to use STDOUT as the file instead.
On Mon Jan 30 10:09:16 2012, DANBERR wrote: Show quoted text
> (VteTerminal.t:28925): Vte-0.0-CRITICAL **: vte_pty_set_utf8: assertion > `priv->pty_fd > 0' failed > Segmentation fault
Indeed, I can reproduce this now. Show quoted text
> This is caused by the following code in the test case > > $terminal -> set_pty(fileno STDIN); > > STDIN has a file descriptor of 0, so it causes the assertion in the C > layer to fail. Trivial fix is to use STDOUT as the file instead.
Yeah, but that causes other warnings. I think you are supposed to provide a real pseudo terminal file descriptor. So I've simply disabled this test now in git master: <http://git.gnome.org/browse/perl-Gnome2-Vte/commit/?id=2d1aaca2f6985f517de31a2533954d7d6ee38ad0>. Thanks for the report.