google-code-export / google-gadgets-for-linux

Automatically exported from code.google.com/p/google-gadgets-for-linux
0 stars 0 forks source link

ggl-gtk: Segmentation fault #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ ggl-gtk 
Not a regular file: /
Initialize default_framework extension.
Initialize gtk_edit_element extension.
Failed to load module gtkmoz-browser-element
Initialize gst_mediaplayer_element extension.
Initialize gtk_system_framework extension.
Initialize gst_audio_framework extension.
org.freedesktop.NetworkManager.NoDevices: There are no available network
devices.
No slot registered to handle this reply.
No slot registered to handle this reply.
Demarshal failed. Type dismatch, message type: , expected: s
Demarshal failed. Type dismatch, message type: , expected: s
Initialize linux_system_framework extension.
Initialize smjs_script_runtime extension.
Failed to load module curl-xml-http-request
Register smjs_script_runtime extension.
Call DBusWatchCallBack, watch id: 4
Call DBusWatchCallBack, watch id: 6
Segmentation fault

gdb backtrace:
(gdb) bt
#0  0xb6b36a7a in
ggadget::google::GoogleGadgetManager::UpdateGadgetsMetadata () from
/usr/local/lib/google-gadgets/modules/google-gadget-manager.so
#1  0xb6b36b65 in ggadget::google::GoogleGadgetManager::OnUpdateTimer ()
from /usr/local/lib/google-gadgets/modules/google-gadget-manager.so
#2  0xb6b3cc87 in ggadget::MethodSlot1<bool, int,
ggadget::google::GoogleGadgetManager, bool
(ggadget::google::GoogleGadgetManager::*)(int)>::Call ()
   from /usr/local/lib/google-gadgets/modules/google-gadget-manager.so
#3  0xb7c55c13 in ggadget::WatchCallbackSlot::Call () from
/usr/local/lib/libggadget-gtk-1.0.so.0
#4  0xb7c4e4b5 in ggadget::gtk::MainLoop::Impl::TimeoutCallback () from
/usr/local/lib/libggadget-gtk-1.0.so.0
#5  0xb74bb081 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0x080fe8b0 in ?? ()
#7  0xb7331a0c in __pthread_mutex_unlock_usercnt () from
/lib/tls/i686/cmov/libpthread.so.0
#8  0xb74bcbf8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#9  0xb74bfe5e in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x08063e00 in ?? ()
#11 0x00000064 in ?? ()
#12 0x0812b090 in ?? ()
#13 0x00000005 in ?? ()
#14 0x00000005 in ?? ()
#15 0xb75355f8 in ?? () from /usr/lib/libglib-2.0.so.0
#16 0xb7535620 in ?? () from /usr/lib/libglib-2.0.so.0
#17 0xbfa9bd04 in ?? ()
#18 0x00000001 in ?? ()
#19 0x00000001 in ?? ()
#20 0x08063e00 in ?? ()
#21 0x0812b090 in ?? ()
#22 0xb72a6b90 in ?? () from /lib/tls/i686/cmov/libc.so.6
#23 0xb7331df0 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
#24 0xb7330520 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
#25 0xb74e4502 in g_thread_self () from /usr/lib/libglib-2.0.so.0
#26 0xb74c01e7 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#27 0xb7a01264 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#28 0x0804e0c5 in main ()

valgrind log:
$ valgrind ./ggl-gtk 
==18997== Memcheck, a memory error detector.
==18997== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==18997== Using LibVEX rev 1804, a library for dynamic binary translation.
==18997== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==18997== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation
framework.
==18997== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==18997== For more details, rerun with: -v
==18997== 
Not a regular file: /
Initialize default_framework extension.
Initialize gtk_edit_element extension.
Failed to load module gtkmoz-browser-element
Initialize gst_mediaplayer_element extension.
Initialize gtk_system_framework extension.
Initialize gst_audio_framework extension.
==18998== 
==18998== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 127 from 1)
==18998== malloc/free: in use at exit: 502,062 bytes in 6,583 blocks.
==18998== malloc/free: 20,947 allocs, 14,364 frees, 1,497,441 bytes allocated.
==18998== For counts of detected errors, rerun with: -v
==18998== searching for pointers to 6,583 not-freed blocks.
==18998== checked 1,010,600 bytes.
==18998== 
==18998== LEAK SUMMARY:
==18998==    definitely lost: 156 bytes in 11 blocks.
==18998==      possibly lost: 55,391 bytes in 114 blocks.
==18998==    still reachable: 446,515 bytes in 6,458 blocks.
==18998==         suppressed: 0 bytes in 0 blocks.
==18998== Rerun with --leak-check=full to see details of leaked memory.
org.freedesktop.NetworkManager.NoDevices: There are no available network
devices.
No slot registered to handle this reply.
No slot registered to handle this reply.
Demarshal failed. Type dismatch, message type: , expected: s
Demarshal failed. Type dismatch, message type: , expected: s
Initialize linux_system_framework extension.
Initialize smjs_script_runtime extension.
Failed to load module curl-xml-http-request
Register smjs_script_runtime extension.
Call DBusWatchCallBack, watch id: 4
Call DBusWatchCallBack, watch id: 6
==18997== Invalid read of size 4
==18997==    at 0x57FBA7A:
ggadget::google::GoogleGadgetManager::UpdateGadgetsMetadata(bool) (in
/usr/local/lib/google-gadgets/modules/google-gadget-manager.so)
==18997==    by 0x57FBB64:
ggadget::google::GoogleGadgetManager::OnUpdateTimer(int) (in
/usr/local/lib/google-gadgets/modules/google-gadget-manager.so)
==18997==    by 0x5801C86: ggadget::MethodSlot1<bool, int,
ggadget::google::GoogleGadgetManager, bool
(ggadget::google::GoogleGadgetManager::*)(int)>::Call(int, ggadget::Variant
const*) const (in
/usr/local/lib/google-gadgets/modules/google-gadget-manager.so)
==18997==    by 0x430FC12:
ggadget::WatchCallbackSlot::Call(ggadget::MainLoopInterface*, int) (in
/usr/local/lib/libggadget-gtk-1.0.so.0.0.0)
==18997==    by 0x43084B4:
ggadget::gtk::MainLoop::Impl::TimeoutCallback(void*) (in
/usr/local/lib/libggadget-gtk-1.0.so.0.0.0)
==18997==    by 0x4A4E080: (within /usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4A4FBF7: g_main_context_dispatch (in
/usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4A52E5D: (within /usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4A531E6: g_main_loop_run (in
/usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4464263: gtk_main (in /usr/lib/libgtk-x11-2.0.so.0.1200.9)
==18997==    by 0x804E0C4: main (in /usr/local/bin/ggl-gtk)
==18997==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18997== 
==18997== Process terminating with default action of signal 11 (SIGSEGV)
==18997==  Access not within mapped region at address 0x0
==18997==    at 0x57FBA7A:
ggadget::google::GoogleGadgetManager::UpdateGadgetsMetadata(bool) (in
/usr/local/lib/google-gadgets/modules/google-gadget-manager.so)
==18997==    by 0x57FBB64:
ggadget::google::GoogleGadgetManager::OnUpdateTimer(int) (in
/usr/local/lib/google-gadgets/modules/google-gadget-manager.so)
==18997==    by 0x5801C86: ggadget::MethodSlot1<bool, int,
ggadget::google::GoogleGadgetManager, bool
(ggadget::google::GoogleGadgetManager::*)(int)>::Call(int, ggadget::Variant
const*) const (in
/usr/local/lib/google-gadgets/modules/google-gadget-manager.so)
==18997==    by 0x430FC12:
ggadget::WatchCallbackSlot::Call(ggadget::MainLoopInterface*, int) (in
/usr/local/lib/libggadget-gtk-1.0.so.0.0.0)
==18997==    by 0x43084B4:
ggadget::gtk::MainLoop::Impl::TimeoutCallback(void*) (in
/usr/local/lib/libggadget-gtk-1.0.so.0.0.0)
==18997==    by 0x4A4E080: (within /usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4A4FBF7: g_main_context_dispatch (in
/usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4A52E5D: (within /usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4A531E6: g_main_loop_run (in
/usr/lib/libglib-2.0.so.0.1600.3)
==18997==    by 0x4464263: gtk_main (in /usr/lib/libgtk-x11-2.0.so.0.1200.9)
==18997==    by 0x804E0C4: main (in /usr/local/bin/ggl-gtk)
==18997== 
==18997== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 153 from 1)
==18997== malloc/free: in use at exit: 741,355 bytes in 9,901 blocks.
==18997== malloc/free: 31,356 allocs, 21,455 frees, 2,421,446 bytes allocated.
==18997== For counts of detected errors, rerun with: -v
==18997== searching for pointers to 9,901 not-freed blocks.
==18997== checked 1,310,812 bytes.
==18997== 
==18997== LEAK SUMMARY:
==18997==    definitely lost: 156 bytes in 11 blocks.
==18997==      possibly lost: 103,082 bytes in 326 blocks.
==18997==    still reachable: 638,117 bytes in 9,564 blocks.
==18997==         suppressed: 0 bytes in 0 blocks.
==18997== Rerun with --leak-check=full to see details of leaked memory.
Segmentation fault

Original issue reported on code.google.com by lidaob...@gmail.com on 30 May 2008 at 5:45

GoogleCodeExporter commented 9 years ago
It because curl development package is missing, which is required for ggl-gtk 
host.

Original comment by james...@gmail.com on 30 May 2008 at 6:30

GoogleCodeExporter commented 9 years ago
I have installed curl development package

$ dpkg -l libcurl4-gnutls-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                              Version                           
Description
+++-=================================-=================================-========
==========================================================================
ii  libcurl4-gnutls-dev               7.18.0-1ubuntu2                   
Development
files and documentation for libcurl (GnuTLS)

Original comment by lidaob...@gmail.com on 30 May 2008 at 7:19