Bug#795221: gnuplot5-qt: crash in g_slist_copy_deep / assertion failures

2015-08-17 Thread Vincent Lefevre
I got another assertion failure:

ASSERT INFO:
../src/unix/threadpsx.cpp(1483): assert !m_isDetached failed in Wait(): can't 
wait for detached thread

BACKTRACE:
[1] wxThread::Wait(wxThreadWait)
[2] matherr
[3] matherr
[4] __libc_start_main

Backtrace with gdb:

Thread 4 (Thread 0x7f667a874700 (LWP 31406)):
#0  0x7f6696420009 in syscall () at 
../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x7f669847799a in g_cond_wait_until (cond=cond@entry=0x2ae3df8, 
mutex=mutex@entry=0x2ae3df0, end_time=end_time@entry=15991606336) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gthread-posix.c:1444
now = {tv_sec = 15976, tv_nsec = 606337187}
span = {tv_sec = 14, tv_nsec = 98813}
sampled = 4
res = optimized out
#2  0x7f6698407889 in g_async_queue_pop_intern_unlocked 
(queue=queue@entry=0x2ae3df0, wait=wait@entry=1, 
end_time=end_time@entry=15991606336) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gasyncqueue.c:422
retval = optimized out
__FUNCTION__ = g_async_queue_pop_intern_unlocked
#3  0x7f6698407eab in g_async_queue_timeout_pop (queue=0x2ae3df0, 
timeout=timeout@entry=1500) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gasyncqueue.c:543
end_time = 15991606336
retval = optimized out
#4  0x7f669845a3ac in g_thread_pool_thread_proxy () at 
/tmp/buildd/glib2.0-2.44.1/./glib/gthreadpool.c:167
pool = optimized out
local_wakeup_thread_serial = optimized out
last_wakeup_thread_serial = optimized out
have_relayed_thread_marker = optimized out
free_pool = optimized out
task = 0x2
pool = optimized out
#5  0x7f669845a3ac in g_thread_pool_thread_proxy (data=optimized out) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gthreadpool.c:364
free_pool = optimized out
task = 0x2
pool = optimized out
#6  0x7f6698459955 in g_thread_proxy (data=0x27a1a30) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gthread.c:764
thread = 0x27a1a30
#7  0x7f66966ef0a4 in start_thread (arg=0x7f667a874700) at 
pthread_create.c:309
__res = optimized out
pd = 0x7f667a874700
now = optimized out
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140078119077632, 
3897815560806414603, 0, 44975200, 23, 140078119077632, -3973538713952372469, 
-3973584152166319861}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 
0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = optimized out
pagesize_m1 = optimized out
sp = optimized out
freesize = optimized out
__PRETTY_FUNCTION__ = start_thread
#8  0x7f669642407d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f6682a4f700 (LWP 31372)):
#0  0x7f669641b53d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x7f6698432ebc in g_main_context_iterate (priority=2147483647, n_fds=2, 
fds=0x7f667c1d9980, timeout=-1, context=0x27ea070) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4103
poll_func = 0x7f66984423e0 g_poll
max_priority = 2147483647
timeout = -1
some_ready = optimized out
nfds = 2
allocated_nfds = 2
fds = 0x7f667c1d9980
#2  0x7f6698432ebc in g_main_context_iterate (context=0x27ea070, 
block=block@entry=1, dispatch=dispatch@entry=1, self=optimized out) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3803
max_priority = 2147483647
timeout = -1
some_ready = optimized out
nfds = 2
allocated_nfds = 2
fds = 0x7f667c1d9980
#3  0x7f6698433242 in g_main_loop_run (loop=0x27ea000) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
__FUNCTION__ = g_main_loop_run
#4  0x7f668fef6af6 in gdbus_shared_thread_func (user_data=0x27ea040) at 
/tmp/buildd/glib2.0-2.44.1/./gio/gdbusprivate.c:274
data = 0x27ea040
#5  0x7f6698459955 in g_thread_proxy (data=0x27a1b20) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gthread.c:764
thread = 0x27a1b20
#6  0x7f66966ef0a4 in start_thread (arg=0x7f6682a4f700) at 
pthread_create.c:309
__res = optimized out
pd = 0x7f6682a4f700
now = optimized out
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140078255240960, 
3897815560806414603, 0, 45207552, 22, 140078255240960, -3973626432753813237, 
-3973584152166319861}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 
0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = optimized out
pagesize_m1 = optimized out
sp = optimized out
freesize = optimized out
__PRETTY_FUNCTION__ = start_thread
#7  0x7f669642407d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f667ba93700 (LWP 31373)):
#0  0x7f669641b53d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x7f6698432ebc in g_main_context_iterate (priority=2147483647, n_fds=2, 
fds=0x7f66740008c0, timeout=-1, context=0x270e110) at 

Bug#795221: gnuplot5-qt: crash in g_slist_copy_deep / assertion failures

2015-08-11 Thread Vincent Lefevre
Package: gnuplot5-qt
Version: 5.0.1+dfsg1-2
Severity: important

I got a crash with GNUTERM=wxt, not always reproducible:

Core was generated by `/usr/bin/gnuplot -persist'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  g_slist_copy_deep (list=0xa0538bce, func=func@entry=0x0, 
user_data=user_data@entry=0x0)
at /tmp/buildd/glib2.0-2.44.1/./glib/gslist.c:610
610 /tmp/buildd/glib2.0-2.44.1/./glib/gslist.c: No such file or directory.

The backtrace:

Thread 1 (Thread 0x7f4e89a74a00 (LWP 11798)):
#0  0x7f4e87860970 in g_slist_copy_deep (list=0x-5fac7432 = {...}, 
func=func@entry=0x0, user_data=user_data@entry=0x0) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gslist.c:610
last = optimized out
new_list = 0x7f4e8a961140 = {0x7f4e8a977200}
#1  0x7f4e87860999 in g_slist_copy (list=optimized out) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gslist.c:565
#2  0x7f4e87b1cb21 in g_object_base_class_init (class=0x7f4e8a9223e0) at 
/tmp/buildd/glib2.0-2.44.1/./gobject/gobject.c:415
pclass = optimized out
#3  0x7f4e87b37034 in g_type_class_ref (pclass=0x7f4e8a922b20, 
node=0x7f4e8a948af0) at /tmp/buildd/glib2.0-2.44.1/./gobject/gtype.c:2169
class_init_base = optimized out
slist = 0x7f4e8a961190 = {0x7f4e87b1cb00 g_object_base_class_init}
init_slist = 0x7f4e8a961190 = {0x7f4e87b1cb00 
g_object_base_class_init}
i = optimized out
class = 0x7f4e8a9223e0
entries = optimized out
entry = optimized out
bnode = optimized out
ptype = optimized out
holds_ref = optimized out
pclass = optimized out
#4  0x7f4e87b37034 in g_type_class_ref (type=type@entry=139975309167344) at 
/tmp/buildd/glib2.0-2.44.1/./gobject/gtype.c:2951
ptype = optimized out
holds_ref = optimized out
pclass = optimized out
#5  0x7f4e87b1f26a in g_object_newv 
(object_type=object_type@entry=139975309167344, 
n_parameters=n_parameters@entry=0, parameters=parameters@entry=0x0) at 
/tmp/buildd/glib2.0-2.44.1/./gobject/gobject.c:1868
class = 0x0
unref_class = 0x0
object = optimized out
__FUNCTION__ = g_object_newv
#6  0x7f4e87b1f9f4 in g_object_new (object_type=139975309167344, 
first_property_name=first_property_name@entry=0x0) at 
/tmp/buildd/glib2.0-2.44.1/./gobject/gobject.c:1614
var_args = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 
0x40768000, reg_save_area = 0x4028}}
__FUNCTION__ = g_object_new
#7  0x7f4e83ac51a0 in _gtk_tooltip_handle_event 
(event=event@entry=0x7f4e8a9676d0) at 
/tmp/buildd/gtk+2.0-2.24.28/gtk/gtktooltip.c:1619
x = 360
y = 12
return_value = 0
has_tooltip_widget = 0x7f4e8a944610 [GtkToolbar]
display = 0x7f4e8a936020 [GdkDisplayX11]
current_tooltip = 0x0
#8  0x7f4e839ed548 in IA__gtk_main_do_event (event=0x7f4e8a9676d0) at 
/tmp/buildd/gtk+2.0-2.24.28/gtk/gtkmain.c:1738
event_widget = optimized out
grab_widget = 0x7f4e8a966720 [GtkWindow]
window_group = optimized out
rewritten_event = optimized out
tmp_list = optimized out
__FUNCTION__ = IA__gtk_main_do_event
#9  0x7f4e83660bbc in gdk_event_dispatch (source=optimized out, 
callback=optimized out, user_data=optimized out) at 
/tmp/buildd/gtk+2.0-2.24.28/gdk/x11/gdkevents-x11.c:2425
display = optimized out
event = 0x7f4e8a9676d0
#10 0x7f4e87842c3d in g_main_context_dispatch (context=0x7f4e8a945420) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3122
dispatch = 0x7f4e83660b70 gdk_event_dispatch
prev_source = 0x0
was_in_call = 0
user_data = 0x0
callback = 0x0
cb_funcs = optimized out
cb_data = optimized out
need_destroy = optimized out
source = 0x7f4e8a945330
current = 0x7f4e8a977250
i = 0
#11 0x7f4e87842c3d in g_main_context_dispatch 
(context=context@entry=0x7f4e8a945420) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3737
#12 0x7f4e87842f20 in g_main_context_iterate (context=0x7f4e8a945420, 
block=block@entry=1, dispatch=dispatch@entry=1, self=optimized out) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3808
max_priority = 2147483647
timeout = -1
some_ready = 1
nfds = optimized out
allocated_nfds = 2
fds = 0x7f4e6c000900
#13 0x7f4e87843242 in g_main_loop_run (loop=0x7f4e8a9f3500) at 
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
__FUNCTION__ = g_main_loop_run
#14 0x7f4e839ec5d7 in IA__gtk_main () at 
/tmp/buildd/gtk+2.0-2.24.28/gtk/gtkmain.c:1268
tmp_list = 0x0
functions = 0x0
init = optimized out
loop = 0x7f4e8a9f3500
#15 0x7f4e88913815 in wxGUIEventLoop::DoRun() (this=0x7f4e8a97ed60) at 
../src/gtk/evtloop.cpp:65
loopLevel = 0
#16 0x7f4e8826c900 in wxEventLoopBase::Run() (this=0x7f4e8a97ed60) at