Opened 11 years ago

Last modified 10 years ago

#4497 new defect

Html activity segfault on exit

Reported by: dnarvaez Owned by: erikos
Priority: Normal Milestone: 0.102.0
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: New

Description

A html activity does segfault when it closes. I added gdb to the process and got the following traceback:

Program received signal SIGSEGV, Segmentation fault.
new_threadstate (interp=0x0, init=init@entry=1) at /usr/src/debug/Python-2.7.3/Python/pystate.c:200
200 tstate->next = interp->tstate_head;
(gdb) where
#0 new_threadstate (interp=0x0, init=init@entry=1) at /usr/src/debug/Python-2.7.3/Python/pystate.c:200
#1 0x0000003161af620a in PyThreadState_New (interp=) at /usr/src/debug/Python-2.7.3/Python/pystate.c:211
#2 0x0000003161af6a8c in PyGILState_Ensure () at /usr/src/debug/Python-2.7.3/Python/pystate.c:598
#3 0x00007f44a260899e in _pygi_invoke_closure_clear_py_data (invoke_closure=, invoke_closure=)
at /home/erikos/sugar-build/source/pygobject/gi/pygi-closure.c:505
#4 0x00007f44a2608a3a in _pygi_invoke_closure_free (data=0x276af70) at /home/erikos/sugar-build/source/pygobject/gi/pygi-closure.c:594
#5 0x0000003162a05cb0 in ffi_closure_unix64_inner (closure=0x7f44acd0e3d0, rvalue=0x7fff2fa31e10, reg_args=0x7fff2fa31d60, argp=0x7fff2fa31e30 "\360Xh\002") at ../src/x86/ffi64.c:629
#6 0x0000003162a06040 in ffi_closure_unix64 () at ../src/x86/unix64.S:228
#7 0x00007f449a23779a in WTF::HashTable >, WTF::KeyValuePairKeyExtractor > >, WTF::StringHash, WTF::HashMapValueTraitsWTF::HashTraits<WTF::String, WTF::HashTraitsWTF::RefPtr<WebKitURISchemeHandler > >, WTF::HashTraitsWTF::String >::deallocateTable(WTF::KeyValuePair >, int) () from /home/erikos/sugar-build/install/lib64/libwebkit2gtk-3.0.so.25
#8 0x00007f449a235122 in webkit_web_context_finalize(_GObject) () from /home/erikos/sugar-build/install/lib64/libwebkit2gtk-3.0.so.25
#9 0x00007f44a493ef18 in g_object_unref (_object=0x26858d0) at /home/erikos/sugar-build/source/glib/gobject/gobject.c:3024
#10 0x000000315fa38df1 in run_exit_handlers () from /lib64/libc.so.6
#11 0x000000315fa38e75 in exit () from /lib64/libc.so.6
#12 0x000000315fa21a0c in
libc_start_main () from /lib64/libc.so.6
#13 0x0000000000400721 in _start ()

Change History (9)

comment:1 Changed 11 years ago by dnarvaez

Looks like it has to do with the WebKit2.WebContext, this simple example produces the same segfault:

import os

from gi.repository import WebKit2
from gi.repository import Gio

def _app_scheme_cb(request, user_data):

path = os.path.join(activity.get_bundle_path(), request.get_path())
request.finish(Gio.File.new_for_path(path).read(None),

-1, Gio.content_type_guess(path, None)[0])

context = WebKit2.WebContext.get_default()
context.register_uri_scheme("activity", _app_scheme_cb, None)

comment:2 Changed 11 years ago by manuq

  • Milestone changed from Unspecified by Release Team to 1.0

comment:4 Changed 11 years ago by erikos

Is probably an issue with the annotations, tracked here:

https://bugs.webkit.org/show_bug.cgi?id=116672

comment:5 Changed 11 years ago by dnarvaez

  • Component changed from sugar-toolkit-gtk3 to Sugar

comment:6 Changed 11 years ago by dnarvaez

  • Milestone changed from 1.0 to Unspecified

comment:7 Changed 11 years ago by dnarvaez

  • Bug Status changed from Unconfirmed to New
  • Priority changed from Unspecified by Maintainer to Urgent

comment:8 Changed 10 years ago by dnarvaez

  • Milestone changed from Unspecified to 0.102

comment:9 Changed 10 years ago by godiard

  • Priority changed from Urgent to Normal
Note: See TracTickets for help on using tickets.