[Geany-devel] Crash when pasting a Zero-width space

Lex Trotman elextr at xxxxx
Tue Jun 26 10:16:34 UTC 2012


On 26 June 2012 20:09, Harold Aling <geany at sait.nl> wrote:
> On Tue, Jun 26, 2012 at 12:05 PM, Lex Trotman <elextr at gmail.com> wrote:
>> On 26 June 2012 20:01, Thomas Martitz
>> <thomas.martitz at student.htw-berlin.de> wrote:
>>> Am 26.06.2012 11:53, schrieb Harold Aling:
>>>
>>>> Updated to Geany 1.23 (git >= 40da14b)
>>>>
>>>> 1. Create a new document (ctrl-n)
>>>> 2. Copy/paste "mA" (already has a zero-width space in the middle)
>>>> 3. Press 'home'
>>>> 4. Press 'delete'
>>>> 5. Crash -> 100% CPU
>>>
>>>
>>> Works for me. No crash and no 100% CPU usage.
>>>
>>>
>>>> Geany also counts that character as 3 positions instead of 1.
>>>
>>>
>>> Depending on your POV, this is the correct behavior (the pos field actually
>>> shows the byte offset since the start of the file, hence it's 0-based also).
>>
>> Yes, the column count only counts it as one though pos counts as 3.
>> Pos is bytes, thats a scintilla definition.
>>
>> I would guess its something about the Ubuntu specials, just for comparison
>>
>> 08:47:15: Geany INFO            : Geany 1.23 (git >= 8187268), en_AU.UTF-8
>> 08:47:15: Geany INFO            : GTK 2.24.10, GLib 2.30.2
>>
>>  (From the help->debug messages GUI :)
>>
>> Whats yours say?
>
> 11:59:08: Geany INFO            : Geany 1.23 (git >= 40da14b), en_US.UTF-8
> 11:59:08: Geany INFO            : GTK 2.24.10, GLib 2.32.3

Oh, I'm missing a commit, never mind not relevant.

Yeah, that looks ok, your file is UTF-8 which is fine, the difference
in Glib shouldn't affect it, all I can think of is that its Ubuntu
specific, they are known to add patches to GTK, so maybe its one of
those?

Can you run Geany under gdb and get a backtrace?

Cheers
Lex

>
> -H-
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel



More information about the Devel mailing list