<p>Hi,<br>
I've just encountered a bug which crashes Geany. It's easily reproducible:<br>
Step 1:<br>
In a php file (saved and recognized by Geany as PHP) type the following:</p>
'.$x.'';
?>
<p>Step 2:<br>
Edit the line of code editing it in the following manner:</p>
<ul>
<li>first edit it to look like this<br>
echo ''.$x.'< '.$y.'';</li>
<li>then try to add  >(there is a space before >) before  so it would look like this:<br>
echo ''.$x.'< '.$y.' >';</li>
</ul>
<p>Step 3:<br>
Geany crashes. Below I include the backtrace.</p>
<hr>
<h2>BACKTRACE:</h2>
<p>(gdb) run -v<br>
Starting program: /usr/bin/geany -v<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br>
Geany-INFO: Geany 1.27, en_US.UTF-8<br>
Geany-INFO: GTK 2.24.30, GLib 2.48.2<br>
Geany-INFO: System data dir: /usr/share/geany<br>
Geany-INFO: User config dir: /home/myuser/.config/geany<br>
[New Thread 0x7fffebd72700 (LWP 11263)]<br>
[New Thread 0x7fffeb571700 (LWP 11264)]<br>
[New Thread 0x7fffead70700 (LWP 11265)]<br>
Geany-INFO: System plugin path: /usr/lib/x86_64-linux-gnu/geany<br>
Geany-INFO: Added filetype JSON (61).<br>
Geany-INFO: Added filetype Genie (62).<br>
Geany-INFO: Added filetype CUDA (63).<br>
Geany-INFO: Added filetype Scala (64).<br>
Geany-INFO: Added filetype Graphviz (65).<br>
Geany-INFO: Added filetype Clojure (66).<br>
Geany-INFO: Added filetype Cython (67).<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/automark.so (Auto-mark)<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/geanyextrasel.so (Extra Selection)<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/filebrowser.so (File Browser)<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/htmlchars.so (HTML Characters)<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/geanyinsertnum.so (Insert Numbers)<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/pairtaghighlighter.so (Pair Tag Highlighter)<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/projectorganizer.so (Project Organizer)<br>
Geany-INFO: Loaded:   /usr/lib/x86_64-linux-gnu/geany/xmlsnippets.so (XML Snippets)<br>
Geany-INFO: unknown : None (UTF-8)<br>
[Thread 0x7fffead70700 (LWP 11265) exited]<br>
[New Thread 0x7fffead70700 (LWP 11459)]<br>
[New Thread 0x7fffd973c700 (LWP 11460)]<br>
[New Thread 0x7fffd8f3b700 (LWP 11461)]<br>
[New Thread 0x7fffd3fff700 (LWP 11462)]<br>
[New Thread 0x7fffd37fe700 (LWP 11463)]<br>
[Thread 0x7fffd8f3b700 (LWP 11461) exited]<br>
[Thread 0x7fffd973c700 (LWP 11460) exited]<br>
[Thread 0x7fffead70700 (LWP 11459) exited]<br>
[Thread 0x7fffd3fff700 (LWP 11462) exited]<br>
[New Thread 0x7fffd3fff700 (LWP 11479)]<br>
[New Thread 0x7fffd973c700 (LWP 11480)]<br>
[Thread 0x7fffd3fff700 (LWP 11479) exited]<br>
[Thread 0x7fffd37fe700 (LWP 11463) exited]<br>
[New Thread 0x7fffd37fe700 (LWP 11496)]<br>
Geany-INFO: /home/crash.php : PHP (UTF-8)<br>
Geany-INFO: Loaded /usr/share/geany/php.tags (PHP), 10122 symbol(s).<br>
Geany-INFO: /home/crash.php : PHP (UTF-8)<br>
[Thread 0x7fffd37fe700 (LWP 11496) exited]</p>
<p>(geany:11259): Geany-CRITICAL **: sci_get_contents_range: assertion 'start < end' failed</p>
<p>Thread 1 "geany" received signal SIGSEGV, Segmentation fault.<br>
__strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:173<br>
173     ../sysdeps/x86_64/multiarch/../strcmp.S: No such file or directory.<br>
(gdb) bt<br>
#0  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:173<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1860207" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/1/hovercard" href="https://github.com/geany/geany/pull/1">#1</a>  0x00007fffda1412af in ?? () from /usr/lib/x86_64-linux-gnu/geany/pairtaghighlighter.so<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1869766" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2/hovercard" href="https://github.com/geany/geany/pull/2">#2</a>  0x00007ffff79a125c in ?? () from /usr/lib/x86_64-linux-gnu/libgeany.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1870603" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/3" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/3/hovercard" href="https://github.com/geany/geany/pull/3">#3</a>  0x00007ffff5afffa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1883601" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/4/hovercard" href="https://github.com/geany/geany/pull/4">#4</a>  0x00007ffff5b11fc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1885233" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/5" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/5/hovercard" href="https://github.com/geany/geany/pull/5">#5</a>  0x00007ffff5b1a7f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1896596" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/6" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/6/hovercard" href="https://github.com/geany/geany/pull/6">#6</a>  0x00007ffff5b1b555 in g_signal_emit_by_name () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="1942910" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/7" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/7/hovercard" href="https://github.com/geany/geany/pull/7">#7</a>  0x00007ffff79936ef in ?? () from /usr/lib/x86_64-linux-gnu/libgeany.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2025926" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/8" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/8/hovercard" href="https://github.com/geany/geany/pull/8">#8</a>  0x00007ffff5afffa5 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2064608" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/9" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/9/hovercard" href="https://github.com/geany/geany/pull/9">#9</a>  0x00007ffff5b11fc1 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2089194" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/10" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/10/hovercard" href="https://github.com/geany/geany/pull/10">#10</a> 0x00007ffff5b1ad5c in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2137956" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/11" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/11/hovercard" href="https://github.com/geany/geany/pull/11">#11</a> 0x00007ffff5b1b08f in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2160253" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/12" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/12/hovercard" href="https://github.com/geany/geany/pull/12">#12</a> 0x00007ffff79eeeaf in ?? () from /usr/lib/x86_64-linux-gnu/libgeany.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2220852" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/13" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/13/hovercard" href="https://github.com/geany/geany/pull/13">#13</a> 0x00007ffff7a1401b in ?? () from /usr/lib/x86_64-linux-gnu/libgeany.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2327352" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/14" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/14/hovercard" href="https://github.com/geany/geany/pull/14">#14</a> 0x00007ffff7a1b4ca in ?? () from /usr/lib/x86_64-linux-gnu/libgeany.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2395492" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/15" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/15/hovercard" href="https://github.com/geany/geany/pull/15">#15</a> 0x00007ffff79ee9b5 in ?? () from /usr/lib/x86_64-linux-gnu/libgeany.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2659893" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/16" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/16/hovercard" href="https://github.com/geany/geany/pull/16">#16</a> 0x00007ffff562504a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2684408" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/17" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/17/hovercard" href="https://github.com/geany/geany/pull/17">#17</a> 0x00007ffff56253f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2762354" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/18" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/18/hovercard" href="https://github.com/geany/geany/pull/18">#18</a> 0x00007ffff5625712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2811861" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/19" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/19/hovercard" href="https://github.com/geany/geany/pull/19">#19</a> 0x00007ffff6e3f697 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="2874756" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/20" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/20/hovercard" href="https://github.com/geany/geany/pull/20">#20</a> 0x00007ffff79b1457 in main_lib () from /usr/lib/x86_64-linux-gnu/libgeany.so.0<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="3098814" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/21" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/21/hovercard" href="https://github.com/geany/geany/pull/21">#21</a> 0x00007ffff737a830 in __libc_start_main (main=0x4005a0, argc=2, argv=0x7fffffffdd58, init=,<br>
fini=, rtld_fini=, stack_end=0x7fffffffdd48) at ../csu/libc-start.c:291<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="3101783" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/22" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/22/hovercard" href="https://github.com/geany/geany/pull/22">#22</a> 0x00000000004005d9 in ?? ()</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2378?email_source=notifications&email_token=AAIOWJYKYFECBHUXGMP4E53QP36LZA5CNFSM4JDPZHEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTQBR7A">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZ6WVNK6K54ICC4V2TQP36LZANCNFSM4JDPZHEA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYPOBMCC6VSZQLG7L3QP36LZA5CNFSM4JDPZHEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTQBR7A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2378?email_source=notifications\u0026email_token=AAIOWJYKYFECBHUXGMP4E53QP36LZA5CNFSM4JDPZHEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTQBR7A",
"url": "https://github.com/geany/geany/issues/2378?email_source=notifications\u0026email_token=AAIOWJYKYFECBHUXGMP4E53QP36LZA5CNFSM4JDPZHEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTQBR7A",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>