cole-anstey / circular-application-menu

Automatically exported from code.google.com/p/circular-application-menu
0 stars 0 forks source link

Segmentation fault #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sudo apt-get install subversion libgnome-desktop-dev libgnome-menu-dev
2. svn checkout http://circular-application-menu.googlecode.com/svn/trunk/
circular-application-menu 
3. cd circular-application-menu && make
4. ./circular-main-menu

This gives me a Segmentation fault.

What is the expected output? What do you see instead?
Program should start.

What version of the product are you using? On what operating system?
Current SVN on Ubuntu 8.04 (Hardy).

Please provide any additional information below.
See attached strace-log.
Tell me what else information could be helpful to you.

Original issue reported on code.google.com by scop...@gmx.net on 27 Aug 2008 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
Works alright for me on OpenSUSE 11.0.
Could you please supply a back trace by doing the following...

gdb circular-main-menu
run
bt
quit

Original comment by cole-ans...@gtempaccount.com on 29 Aug 2008 at 5:22

GoogleCodeExporter commented 9 years ago
I have the same issue, using 8.04 hardy as well.
Here is the back trace:

dmb@dmb-desktop:~$ gdb circular-main-menu
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
Starting program: /usr/bin/circular-main-menu 
[Thread debugging using libthread_db enabled]
[New Thread 0xb6cce720 (LWP 10392)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6cce720 (LWP 10392)]
0xb7510da0 in strcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7510da0 in strcpy () from /lib/tls/i686/cmov/libc.so.6
#1  0x0804fe34 in _ca_circular_application_menu_constructor (type=135284280, 
    n_construct_params=7, construct_params=0x80ec4a0)
    at src/cmmcircularmainmenu.c:441
#2  0xb76dda18 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#3  0xb76de5d6 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#4  0xb76de6e0 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#5  0x08050099 in ca_circular_application_menu_new (hide_preview=0, 
    warp_mouse=0, glyph_size=3, emblem=0x0, render_reflection=0)
    at src/cmmcircularmainmenu.c:232
#6  0x0804b0d9 in main (argc=1, argv=0xbff224b4) at src/main.c:156
(gdb) quit

Original comment by jetsfa...@gmail.com on 2 Sep 2008 at 2:21

GoogleCodeExporter commented 9 years ago
Same issue for me. I'm using 8.04 Hardy. Here's my back trace:

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
Starting program: /home/nateb/circular-application-menu/circular-main-menu
[Thread debugging using libthread_db enabled]
[New Thread 0xb6d7f720 (LWP 10379)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6d7f720 (LWP 10379)]
0xb75c4da0 in strcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb75c4da0 in strcpy () from /lib/tls/i686/cmov/libc.so.6
#1  0x0804fe34 in _ca_circular_application_menu_constructor (type=135379736,
n_construct_params=7, construct_params=0x811ddd8)
    at src/cmmcircularmainmenu.c:441
#2  0xb7791a18 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#3  0xb77925d6 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#4  0xb77926e0 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#5  0x08050099 in ca_circular_application_menu_new (hide_preview=0, 
warp_mouse=0,
glyph_size=3, emblem=0x0, render_reflection=0)
    at src/cmmcircularmainmenu.c:232
#6  0x0804b0d9 in main (argc=1, argv=0xbff05c94) at src/main.c:156
(gdb) quit

Original comment by bellna7...@gmail.com on 2 Sep 2008 at 2:38

GoogleCodeExporter commented 9 years ago
Same issue here on Hardy 8.04, running a 32 bit system...

This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: 
/home/johan/Downloads/SVN/circular-application-menu/circular-main-menu 
[Thread debugging using libthread_db enabled]
[New Thread 0xb6d44720 (LWP 17243)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6d44720 (LWP 17243)]
0xb7589da0 in strcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7589da0 in strcpy () from /lib/tls/i686/cmov/libc.so.6
#1  0x0804fe34 in _ca_circular_application_menu_constructor (type=135434872, 
    n_construct_params=7, construct_params=0x8119da8)
    at src/cmmcircularmainmenu.c:441
#2  0xb7756a18 in g_object_newv () from /usr/lib/libgobject-2.0.so.0
#3  0xb77575d6 in g_object_new_valist () from /usr/lib/libgobject-2.0.so.0
#4  0xb77576e0 in g_object_new () from /usr/lib/libgobject-2.0.so.0
#5  0x08050099 in ca_circular_application_menu_new (hide_preview=0, 
    warp_mouse=0, glyph_size=3, emblem=0x0, render_reflection=0)
    at src/cmmcircularmainmenu.c:232
#6  0x0804b0d9 in main (argc=1, argv=0xbf806d54) at src/main.c:156
(gdb) quit

Original comment by Joh...@gmail.com on 2 Sep 2008 at 3:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you everyone.  I still can't repeat this but from the stack trace I can 
see
whats going on.  I've added an extra check for a NULL emblem within the 
constructor.

Original comment by cole-ans...@gtempaccount.com on 3 Sep 2008 at 3:55

GoogleCodeExporter commented 9 years ago
I still got the problem in Hardy:

This GDB was configured as "i486-linux-gnu"...
(gdb) 
(gdb) run
Starting program:
/home/peter/programs/circularmenu/circular-application-menu/circular-main-menu 
[Thread debugging using libthread_db enabled]
[New Thread 0xb6d37720 (LWP 12346)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6d37720 (LWP 12346)]
0xb76713c7 in ?? () from /usr/lib/libgnome-menu.so.2
(gdb) bt
#0  0xb76713c7 in ?? () from /usr/lib/libgnome-menu.so.2
#1  0x0804bc66 in ca_circular_application_menu_show_leaf (
    circular_application_menu=0x81e3860, menutreedirectory=0x8098488, 
    leaftype=ROOT_LEAF, fileitem=0x0, disassociated=0)
    at src/cmmcircularmainmenu.c:3392
#2  0x0804d80f in ca_circular_application_menu (
    circular_application_menu=0x81e3860, menutreedirectory=0x8098488)
    at src/cmmcircularmainmenu.c:267
#3  0x0804b1ce in main (argc=0, argv=0x806de58) at src/main.c:183
(gdb) quit

Original comment by tunnelbl...@quantentunnel.de on 25 Nov 2008 at 11:58