Crash/Hangs when writing a new file

Bug #793141 reported by Luca Bruno
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
valide
Confirmed
Undecided
Unassigned

Bug Description

Hello,
I've installed valide from latest bazaar tip. This is what I do:
1) Click on "New file"
2) Start writing "public class Foo"
3) During writing valide either hangs or crash.

This is the output when it crashed:

valide: ../../src/xcb_io.c:221: poll_for_event: Assertion `(((long) (event_sequence) - (long) (dpy->request)) <= 0)' failed.
valide: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

This is the output when it hangs:

valide: ../../src/xcb_io.c:140: dequeue_pending_request: Assertion `req == dpy->xcb->pending_requests' failed.

The bug is always reproducible in either an hang or a crash. Looks like some problem related to threading and gdk locks.

Revision history for this message
Luca Bruno (lucabru) wrote :

This is the stack trace, I guess it will be useless even if using debug symbols:

#0 0x00007ffff3c183d5 in raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff3c1b650 in abort () at abort.c:92
#2 0x00007ffff3c11581 in __assert_fail (
    assertion=0x7ffff3749650 "(((long) (event_sequence) - (long) (dpy->request)) <= 0)", file=<value optimized out>, line=221,
    function=0x7ffff3749757 "poll_for_event") at assert.c:81
#3 0x00007ffff36d41d2 in ?? () from /usr/lib/libX11.so.6
#4 0x00007ffff36d4545 in ?? () from /usr/lib/libX11.so.6
#5 0x00007ffff36d4a4d in _XEventsQueued () from /usr/lib/libX11.so.6
#6 0x00007ffff36c548d in XPending () from /usr/lib/libX11.so.6
#7 0x00007ffff6c9c3b3 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#8 0x00007ffff492711c in g_main_context_check () from /lib/libglib-2.0.so.0
#9 0x00007ffff4927a02 in ?? () from /lib/libglib-2.0.so.0
#10 0x00007ffff49282f2 in g_main_loop_run () from /lib/libglib-2.0.so.0
#11 0x00007ffff738b2b7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#12 0x0000000000402352 in valide_application_run ()
#13 0x0000000000402d90 in _vala_main ()
#14 0x00007ffff3c04ead in __libc_start_main (main=<value optimized out>,
    argc=<value optimized out>, ubp_av=<value optimized out>,
    init=<value optimized out>, fini=<value optimized out>,
    rtld_fini=<value optimized out>, stack_end=0x7fffffffe218)
    at libc-start.c:228
---Type <return> to continue, or q <return> to quit---
#15 0x0000000000402019 in _start ()

Revision history for this message
Monkey (monkey-libre) wrote :
Download full text (4.8 KiB)

Thanks for the report, I can confirm this bug, also after clicking in New file, two new files are opened, the first one without problem but the second one crash with your steps.
This is my debug log

[Nuevo Thread 0xb42f6b70 (LWP 6752)]
valide: ../../src/xcb_io.c:140: dequeue_pending_request: La declaración `req == dpy->xcb->pending_requests' no se cumple.

Program received signal SIGABRT, Aborted.
[Cambiando a Thread 0xb42f6b70 (LWP 6752)]
0x0012e416 in __kernel_vsyscall ()
(gdb) bt
#0 0x0012e416 in __kernel_vsyscall ()
#1 0x00fdde71 in raise () from /lib/i386-linux-gnu/libc.so.6
#2 0x00fe134e in abort () from /lib/i386-linux-gnu/libc.so.6
#3 0x00fd6888 in __assert_fail () from /lib/i386-linux-gnu/libc.so.6
#4 0x01184b98 in ?? () from /usr/lib/i386-linux-gnu/libX11.so.6
#5 0x01185c13 in _XReply () from /usr/lib/i386-linux-gnu/libX11.so.6
#6 0x0116aff9 in XGetSelectionOwner ()
   from /usr/lib/i386-linux-gnu/libX11.so.6
#7 0x007e04b3 in gdk_selection_owner_set_for_display ()
   from /usr/lib/libgdk-x11-2.0.so.0
#8 0x00420f9a in gtk_selection_owner_set_for_display ()
   from /usr/lib/libgtk-x11-2.0.so.0
#9 0x00502b0a in gtk_clipboard_clear () from /usr/lib/libgtk-x11-2.0.so.0
#10 0x0039fcfa in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#11 0x00326c4e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#12 0x00b7c48c in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#13 0x00b5ecc7 in ?? () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#14 0x00b60372 in g_closure_invoke ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#15 0x00b727b6 in ?? () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#16 0x00b7bb29 in g_signal_emit_valist ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#17 0x00b7bcc2 in g_signal_emit ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#18 0x004ed962 in gtk_widget_map () from /usr/lib/libgtk-x11-2.0.so.0
#19 0x004f9030 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#20 0x00b7c48c in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#21 0x00b5ecc7 in ?? () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#22 0x00b60372 in g_closure_invoke ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#23 0x00b727b6 in ?? () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#24 0x00b7bb29 in g_signal_emit_valist ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#25 0x00b7bcc2 in g_signal_emit ()
   from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#26 0x004ee3f2 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00327c18 in gtk_dialog_run () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x001c4a5c in valide_window_message (self=0x80e80d8, log_domain=0x0,
    log_levels=G_LOG_LEVEL_CRITICAL,
    message=0x8523328 "vala_source_file_construct: assertion `filename != NULL' ---Type <return> to continue, or q <return> to quit---
failed") at debug/libvalide/window.c:505
#29 0x001c9bd1 in _valide_window_message_glog_func (log_domain=0x0,
    log_levels=G_LOG_LEVEL_CRITICAL,
    message=0x8523328 "vala_source_file_construct: assertion `fil...

Read more...

Changed in valide:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.