[Pkg-geany-team] Bug#744196: geany-plugin-debugger: geany crashes when debugging reaches pthread_create

Stefan Arnold stefan_arnold at hotmail.com
Fri Apr 11 09:25:48 UTC 2014


Package: geany-plugin-debugger
Version: 1.23+dfsg-3
Severity: normal

Using the debugger tool, geany crashes when stepping over or into
pthread_create. Try following code:

-------------------------
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>

static void *handler(void *data)
        {
        sleep(5);

        return NULL;
        }

int main(int argc, char **argv)
        {
        pthread_t thread_id;

        if(pthread_create(&thread_id, NULL, handler, NULL) != 0)
                {
                printf("\"pthread_create\" failed\n");
                return -1;
                }
        pthread_join(thread_id, NULL);

        return 0;
        }
-------------------------------

strace:
.........
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5,
events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=12, events=POLLIN}, {fd=8,
events=POLLIN}], 6, 46) = 1 ([{fd=18, revents=POLLIN}])
clock_gettime(CLOCK_MONOTONIC, {699381, 983837424}) = 0
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
read(18, "=thread-created,id=\"2\",group-id="..., 1024) = 103
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


backtrace:
Program received signal SIGSEGV, Segmentation fault.
0xf762d66d in g_type_check_is_value_type () from /usr/lib/i386-linux-
gnu/libgobject-2.0.so.0
(gdb) bt
#0  0xf762d66d in g_type_check_is_value_type () from /usr/lib/i386-linux-
gnu/libgobject-2.0.so.0
#1  0xf762faaa in g_value_init () from /usr/lib/i386-linux-
gnu/libgobject-2.0.so.0
#2  0xf7d6566a in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#3  0xf7d75196 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#4  0xf7d67a58 in gtk_tree_model_get_value () from /usr/lib/i386-linux-
gnu/libgtk-x11-2.0.so.0
#5  0xf7d687c2 in gtk_tree_model_get_valist () from /usr/lib/i386-linux-
gnu/libgtk-x11-2.0.so.0
#6  0xf7d689e0 in gtk_tree_model_get () from /usr/lib/i386-linux-
gnu/libgtk-x11-2.0.so.0
#7  0xdf433176 in stree_add_thread () from /usr/lib/i386-linux-
gnu/geany/debugger.so
#8  0xdf42be1b in ?? () from /usr/lib/i386-linux-gnu/geany/debugger.so
#9  0xdf4297a3 in ?? () from /usr/lib/i386-linux-gnu/geany/debugger.so
#10 0xf7574225 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#11 0xf752e1d7 in g_main_context_dispatch () from /lib/i386-linux-
gnu/libglib-2.0.so.0
#12 0xf752e598 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#13 0xf752e89b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#14 0xf7c78e30 in gtk_main () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#15 0x08085e9a in main ()


console output:
(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: g_string_free: assertion 'string != NULL'
failed

(geany:20437): GLib-CRITICAL **: Source ID 519 was not found when attempting to
remove it

(geany:20437): GLib-CRITICAL **: g_hash_table_remove_all: assertion 'hash_table
!= NULL' failed
Speicherzugriffsfehler
#:~/Desktop/geany-bug$ close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.10.5 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages geany-plugin-debugger depends on:
ii  geany [geany-abi-69]  1.23.1+dfsg-1
ii  geany-plugins-common  1.23+dfsg-3
ii  libc6                 2.18-4
ii  libcairo2             1.12.16-2
ii  libgdk-pixbuf2.0-0    2.30.6-1
ii  libglib2.0-0          2.40.0-2
ii  libgtk2.0-0           2.24.23-1
ii  libvte9               1:0.28.2-5

geany-plugin-debugger recommends no packages.

geany-plugin-debugger suggests no packages.

-- no debconf information



More information about the Pkg-geany-team mailing list