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