← Back to team overview

zeitgeist team mailing list archive

[Bug 389637] Re: zeitgeist-datahub segfaults on startup

 

** Changed in: zeitgeist
       Status: Confirmed => Fix Released

** Changed in: zeitgeist
    Milestone: None => 0.2.1

-- 
zeitgeist-datahub segfaults on startup
https://bugs.launchpad.net/bugs/389637
You received this bug notification because you are a member of
Zeitgeist-Engine, which is the registrant for Zeitgeist Engine.

Status in Zeitgeist Engine: Fix Released

Bug description:
When manually starting zeitgeist-daemon and then zeitgeist-datahub I get a Segfault from the datahub:

Terminal session:
----------------------
mikkel@basalt:~/Projects/zeitgeist$ ./zeitgeist-datahub 
Monitoring Firefox history: /home/mikkel/.mozilla/firefox/ho6brbit.default/places.sqlite
Updating database with new Recently Used Documents items
Segmentation fault

GDB Session trace:
------------------------
mikkel@basalt:~/Projects/zeitgeist$ ln -s zeitgeist-daemon zeitgeist-daemon.py
mikkel@basalt:~/Projects/zeitgeist$ gdb python
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run zeitgeist-datahub.py
Starting program: /usr/bin/python zeitgeist-datahub.py
[Thread debugging using libthread_db enabled]
/usr/bin/python: can't open file 'zeitgeist-datahub.py': [Errno 2] No such file or directory

Program exited with code 02.
(gdb) bt
No stack.
(gdb) quit
mikkel@basalt:~/Projects/zeitgeist$ ls zeitgeist-datahub.py
ls: cannot access zeitgeist-datahub.py: No such file or directory
mikkel@basalt:~/Projects/zeitgeist$ ln -s zeitgeist-datahub zeitgeist-datahub.py 
mikkel@basalt:~/Projects/zeitgeist$ gdb python
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run zeitgeist-datahub.py
Starting program: /usr/bin/python zeitgeist-datahub.py
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d0d6c0 (LWP 9037)]
Monitoring Firefox history: /home/mikkel/.mozilla/firefox/ho6brbit.default/places.sqlite
[New Thread 0xb696ab90 (LWP 9040)]
[Thread 0xb696ab90 (LWP 9040) exited]
Updating database with new Recently Used Documents items
process 9037: Array or variant type requires that type string be written, but end_struct was written.
The overall signature expected here was 'a(isssssssbssss)' and we are on byte 11 of that signature.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7d0d6c0 (LWP 9037)]
0x08092263 in PyObject_Repr (v=0x8f011b8) at ../Objects/object.c:370
370	../Objects/object.c: No such file or directory.
	in ../Objects/object.c
(gdb) bt
#0  0x08092263 in PyObject_Repr (v=0x8f011b8) at ../Objects/object.c:370
#1  0x080a6a91 in tuplerepr (v=0x8ea016c) at ../Objects/tupleobject.c:241
#2  0x080922a5 in PyObject_Repr (v=0x8ea016c) at ../Objects/object.c:375
#3  0x08082e67 in list_repr (v=0x8e9196c) at ../Objects/listobject.c:380
#4  0x080922a5 in PyObject_Repr (v=0x8e9196c) at ../Objects/object.c:375
#5  0x08095129 in set_repr (so=0x8e8725c) at ../Objects/setobject.c:627
#6  0x080922a5 in PyObject_Repr (v=0x8e8725c) at ../Objects/object.c:375
#7  0x080a6a91 in tuplerepr (v=0x8c0cdac) at ../Objects/tupleobject.c:241
#8  0x080922a5 in PyObject_Repr (v=0x8c0cdac) at ../Objects/object.c:375
#9  0x080a27dc in PyString_Format (format=0x8b77288, args=0x8e83d9c) at ../Objects/stringobject.c:4860
#10 0x080616a3 in binary_op1 (v=0x8b77288, w=0x8a48050, op_slot=16) at ../Objects/abstract.c:917
#11 0x08063e16 in PyNumber_Remainder (v=0x8b77288, w=0x8e83d9c) at ../Objects/abstract.c:969
#12 0x080db4d9 in PyEval_EvalFrameEx (f=0x8ef2f74, throwflag=0) at ../Python/ceval.c:1161
#13 0x080df587 in PyEval_EvalFrameEx (f=0x8ef2e0c, throwflag=0) at ../Python/ceval.c:3792
#14 0x080df587 in PyEval_EvalFrameEx (f=0x8f06c0c, throwflag=0) at ../Python/ceval.c:3792
#15 0x080df587 in PyEval_EvalFrameEx (f=0x8ef891c, throwflag=0) at ../Python/ceval.c:3792
#16 0x080df587 in PyEval_EvalFrameEx (f=0x8ef379c, throwflag=0) at ../Python/ceval.c:3792
#17 0x080df587 in PyEval_EvalFrameEx (f=0x8ef0f34, throwflag=0) at ../Python/ceval.c:3792
#18 0x080df587 in PyEval_EvalFrameEx (f=0x8ef009c, throwflag=0) at ../Python/ceval.c:3792
#19 0x080df587 in PyEval_EvalFrameEx (f=0x8ef3b54, throwflag=0) at ../Python/ceval.c:3792
#20 0x080e00b8 in PyEval_EvalCodeEx (co=0x8b5f650, globals=0x8b5802c, locals=0x0, args=0x8e8c0d8, argcount=4, kws=0x8f028d0, kwcount=0, defs=0x8b76598, 
    defcount=2, closure=0x0) at ../Python/ceval.c:2968
#21 0x081688c6 in function_call (func=0x8ba66f4, arg=0x8e8c0cc, kw=0x8c0f1c4) at ../Objects/funcobject.c:524
#22 0x0806111a in PyObject_Call (func=0x8ba66f4, arg=0x8e8c0cc, kw=0x8c0f1c4) at ../Objects/abstract.c:2492
#23 0x080db1cd in PyEval_EvalFrameEx (f=0x8f024d4, throwflag=0) at ../Python/ceval.c:4005
#24 0x080e00b8 in PyEval_EvalCodeEx (co=0x8b5f380, globals=0x8b5802c, locals=0x0, args=0x8c45270, argcount=6, kws=0x8c45288, kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at ../Python/ceval.c:2968
#25 0x080de5f8 in PyEval_EvalFrameEx (f=0x8c450fc, throwflag=0) at ../Python/ceval.c:3802
#26 0x080e00b8 in PyEval_EvalCodeEx (co=0x8b753c8, globals=0x8ba779c, locals=0x0, args=0x8e8b2a0, argcount=7, kws=0x8edcfe0, kwcount=0, defs=0x8ba8d80, 
    defcount=3, closure=0x0) at ../Python/ceval.c:2968
#27 0x081688c6 in function_call (func=0x8bb37d4, arg=0x8e8b294, kw=0x8ea40b4) at ../Objects/funcobject.c:524
#28 0x0806111a in PyObject_Call (func=0x8bb37d4, arg=0x8e8b294, kw=0x8ea40b4) at ../Objects/abstract.c:2492
#29 0x080db1cd in PyEval_EvalFrameEx (f=0x8ed2ecc, throwflag=0) at ../Python/ceval.c:4005
#30 0x080e00b8 in PyEval_EvalCodeEx (co=0x8b759f8, globals=0x8ba7a44, locals=0x0, args=0x8e82898, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at ../Python/ceval.c:2968
#31 0x081687df in function_call (func=0x8babd84, arg=0x8e8288c, kw=0x0) at ../Objects/funcobject.c:524
#32 0x0806111a in PyObject_Call (func=0x8babd84, arg=0x8e8288c, kw=0x0) at ../Objects/abstract.c:2492
#33 0x0806801a in instancemethod_call (func=0x8babd84, arg=0x8e8288c, kw=0x0) at ../Objects/classobject.c:2579
#34 0x0806111a in PyObject_Call (func=0xb7cbffcc, arg=0x8c0cd0c, kw=0x0) at ../Objects/abstract.c:2492
---Type <return> to continue, or q <return> to quit---
#35 0x08068b65 in instance_call (func=0x8bd3aac, arg=0x8c0cd0c, kw=0x0) at ../Objects/classobject.c:2126
#36 0x0806111a in PyObject_Call (func=0x8bd3aac, arg=0x8c0cd0c, kw=0x0) at ../Objects/abstract.c:2492
#37 0x080dcfea in PyEval_EvalFrameEx (f=0x8eee084, throwflag=0) at ../Python/ceval.c:3917
#38 0x080df587 in PyEval_EvalFrameEx (f=0x8eed07c, throwflag=0) at ../Python/ceval.c:3792
#39 0x080e00b8 in PyEval_EvalCodeEx (co=0xb7caf2a8, globals=0xb7cf10b4, locals=0x0, args=0x8c0cc58, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at ../Python/ceval.c:2968
#40 0x081687df in function_call (func=0x8c0dc6c, arg=0x8c0cc4c, kw=0x0) at ../Objects/funcobject.c:524
#41 0x0806111a in PyObject_Call (func=0x8c0dc6c, arg=0x8c0cc4c, kw=0x0) at ../Objects/abstract.c:2492
#42 0x0806801a in instancemethod_call (func=0x8c0dc6c, arg=0x8c0cc4c, kw=0x0) at ../Objects/classobject.c:2579
#43 0x0806111a in PyObject_Call (func=0xb7cc602c, arg=0xb7ccd02c, kw=0x0) at ../Objects/abstract.c:2492
#44 0x080d8922 in PyEval_CallObjectWithKeywords (func=0xb7cc602c, arg=0xb7ccd02c, kw=0x0) at ../Python/ceval.c:3575
#45 0x080611b0 in PyObject_CallObject (o=0xb7cc602c, a=0xb7ccd02c) at ../Objects/abstract.c:2480
#46 0xb7b2dd87 in _pyglib_handler_marshal (user_data=0x8bce28c) at /build/buildd/pygobject-2.16.1/glib/pyglib.c:562
#47 0xb7b68c81 in ?? () from /usr/lib/libglib-2.0.so.0
#48 0xb7b6ab88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#49 0xb7b6e0eb in ?? () from /usr/lib/libglib-2.0.so.0
#50 0xb7b6e5ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#51 0xb7c3de44 in _wrap_g_main_loop_run (self=0x8d82780) at /build/buildd/pygobject-2.16.1/glib/pygmainloop.c:336
#52 0x080de7dc in PyEval_EvalFrameEx (f=0x8aacabc, throwflag=0) at ../Python/ceval.c:3690
#53 0x080e00b8 in PyEval_EvalCodeEx (co=0xb7cfb5c0, globals=0xb7cf10b4, locals=0x0, args=0x8c0cc38, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at ../Python/ceval.c:2968
#54 0x081687df in function_call (func=0x8c0db8c, arg=0x8c0cc2c, kw=0x0) at ../Objects/funcobject.c:524
#55 0x0806111a in PyObject_Call (func=0x8c0db8c, arg=0x8c0cc2c, kw=0x0) at ../Objects/abstract.c:2492
#56 0x0806801a in instancemethod_call (func=0x8c0db8c, arg=0x8c0cc2c, kw=0x0) at ../Objects/classobject.c:2579
#57 0x0806111a in PyObject_Call (func=0x8adc324, arg=0xb7ccd02c, kw=0x0) at ../Objects/abstract.c:2492
#58 0x080b2c8e in slot_tp_init (self=0x8c0e6bc, args=0xb7ccd02c, kwds=0x0) at ../Objects/typeobject.c:5632
#59 0x080ab6c1 in type_call (type=0x8a86d3c, args=0xb7ccd02c, kwds=0x0) at ../Objects/typeobject.c:745
#60 0x0806111a in PyObject_Call (func=0x8a86d3c, arg=0xb7ccd02c, kw=0x0) at ../Objects/abstract.c:2492
#61 0x080dcfea in PyEval_EvalFrameEx (f=0x8aac624, throwflag=0) at ../Python/ceval.c:3917
#62 0x080e00b8 in PyEval_EvalCodeEx (co=0xb7cafe78, globals=0xb7cf10b4, locals=0xb7cf10b4, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at ../Python/ceval.c:2968
#63 0x080e0217 in PyEval_EvalCode (co=0xb7cafe78, globals=0xb7cf10b4, locals=0xb7cf10b4) at ../Python/ceval.c:522
#64 0x080fe0e1 in PyRun_FileExFlags (fp=0x8a5bcc0, filename=0xbfb02706 "zeitgeist-datahub.py", start=257, globals=0xb7cf10b4, locals=0xb7cf10b4, 
    closeit=1, flags=0xbfb00728) at ../Python/pythonrun.c:1335
#65 0x080fe43a in PyRun_SimpleFileExFlags (fp=0x8a5bcc0, filename=0xbfb02706 "zeitgeist-datahub.py", closeit=1, flags=0xbfb00728)
    at ../Python/pythonrun.c:931
#66 0x0805c882 in Py_Main (argc=1, argv=0xbfb007f4) at ../Modules/main.c:599
#67 0x0805b972 in main (argc=Cannot access memory at address 0x3
) at ../Modules/python.c:23