After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690610 - vte_terminal_get_text use with instrospection
vte_terminal_get_text use with instrospection
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.34.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-21 14:24 UTC by Gonzalo Odiard
Modified: 2013-05-30 11:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gonzalo Odiard 2012-12-21 14:24:33 UTC
This is a continuation of #690003. 

After solve that ticket, and the related #690041 (in pygobject and gobject-introspecion), I continue crashing my simple python test case [1]

(More information in the sugar ticket [2])

Another related issue:

I have found the attributes parameter in the method vte_terminal_get_text should have (allow-none) (at least the code in vte_terminal_get_text_range_maybe_wrapped looks like support it). But if I add that, and try to do:

self.vte.get_text(None, None, None)

I get another segfault (worst, worked the first two times, and later segfaulted!)

bt show:

  • #0 __memcpy_ssse3
    at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S line 119
  • #1 g_array_append_vals
    at garray.c line 419
  • #2 vte_g_array_fill
    at vte.c line 333
  • #3 vte_terminal_get_text_range_maybe_wrapped
    at vte.c line 6349
  • #4 vte_terminal_get_text_maybe_wrapped
    at vte.c line 6429
  • #5 vte_terminal_get_text
    at vte.c line 6461
  • #6 ffi_call_unix64
    at ../src/x86/unix64.S line 75
  • #7 ffi_call
    at ../src/x86/ffi64.c line 486

Line #5 is interesting, is_selected=0, but "attributes" is not 0.

Right now, I think these are two different problems (or may be 3), and don't know if this is a pyobject or a vte issue. Any help is welcomed.

[1] http://bugs.sugarlabs.org/attachment/ticket/4131/test_vte_get_text.py

[2] http://bugs.sugarlabs.org/ticket/4131#comment:11
Comment 1 Gonzalo Odiard 2013-05-30 11:46:53 UTC
My test case was wrong, is working with the changes done in #676999