[code] segfault on Arch Linux using textadept-curses binary from foicica.com

From: Carlos Franke <carlos_franke.att.posteo.de>
Date: Sun, 15 Mar 2015 21:34:54 +0100


new textadept user, liking it very much so far.

Running the precompiled program (v7.9, x86_64) on Arch Linux, I
encountered a bug in textadept-curses that led to a segfault. At first
I thought it was a problem with the textadept-vi module, so I reported
it here:
After trying different combinations (self- vs. precompiled, with vs.
without textadept-vi) however, I am quite certain that the binaries
from http://foicica.com/textadept/ don't play well with my system.
(Yes, it runs flawlessly if I compile it myself, so there is not really
a problem for me. I still thought I would better report it, as it may
be a bug in the official binaries. Also, I am curious.)

As I am unfamiliar with the involved concepts and terminology
(something about "indicators"), have a look at this test script that
the author of the textadept-vi module came up with for me:

local M = {}

M.indic = _SCINTILLA.next_indic_number()

function M.test()
     buffer.indic_fore[M.indic] = 0xFF0000
     buffer.indic_style[M.indic] = _SCINTILLA.constants.INDIC_ROUNDBOX
     buffer.indic_alpha[M.indic] = 100
     -- Find all occurrences to highlight.
     buffer.indicator_current = M.indic
     buffer:indicator_clear_range(0, buffer.length)
     buffer:indicator_fill_range(1, 10)

return M

With this installed as $HOME/.textadept/modules/indic.lua, calling
"require('indic').test()" from the Lua command line, textadept-curses
crashes with a segfault. Here is a backtrace:

(gdb) bt
#0 0x00000000004d2f40 in SurfaceImpl::AlphaRectangle(PRectangle, int,
ColourDesired, int, ColourDesired, int, int) ()
#1 0x00000000004a2587 in Indicator::Draw(Surface*, PRectangle const&,
PRectangle const&, Indicator::DrawState, int) const ()
#2 0x000000000049907b in ?? ()
#3 0x00000000004992c1 in ?? ()
#4 0x000000000049d85e in EditView::DrawLine(Surface*, EditModel
const&, ViewStyle const&, LineLayout const*, int, int, int, PRectangle,
int, DrawPhase) ()
#5 0x000000000049e4e8 in EditView::PaintText(Surface*, EditModel
const&, PRectangle, PRectangle, ViewStyle const&) ()
#6 0x0000000000474abf in Editor::Paint(Surface*, PRectangle) ()
#7 0x00000000004d65a5 in ScintillaTerm::Refresh() ()
#8 0x00000000004d24d5 in scintilla_refresh ()
#9 0x00000000004dce36 in ?? ()
#10 0x00000000004dce14 in ?? ()
#11 0x00000000004e3e25 in main ()

GUI textadept is unaffected.


GPG/PGP: http://lemtank.de/data/carlos_franke.asc

You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 15 Mar 2015 - 16:34:54 EDT

This archive was generated by hypermail 2.2.0 : Mon 16 Mar 2015 - 06:36:32 EDT