soulthreads / xwinmosaic

X11 window switcher with fancy look.
BSD 2-Clause "Simplified" License
48 stars 8 forks source link

Runtime error #1

Closed TSultanov closed 12 years ago

TSultanov commented 12 years ago

This is what i get when try to launch this software. When i tried to start this in debugger it locked my display.

$ src/xwinmosaic 
*** glibc detected *** src/xwinmosaic: munmap_chunk(): invalid pointer: 0x0000000000409da5 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7f97ce285626]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x1522e)[0x7f97cec0222e]
src/xwinmosaic[0x406b6c]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_newv+0x294)[0x7f97cec036e4]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_new_valist+0x1d6)[0x7f97cec03ec6]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_new+0xd4)[0x7f97cec041d4]
src/xwinmosaic[0x408f60]
src/xwinmosaic[0x409a80]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x59e26)[0x7f97cf373e26]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bbd6)[0x7f97cf375bd6]
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5bc7e)[0x7f97cf375c7e]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x16a)[0x7f97ce93fc9a]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x48060)[0x7f97ce940060]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x6a)[0x7f97ce94045a]
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7f97cf7002f7]
src/xwinmosaic(main+0x5b8)[0x404788]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f97ce22876d]
src/xwinmosaic[0x4048c9]
======= Memory map: ========
00400000-0040c000 r-xp 00000000 08:08 6293629                            /home/artifth/src/xwinmosaic/build/src/xwinmosaic
0060b000-0060c000 r--p 0000b000 08:08 6293629                            /home/artifth/src/xwinmosaic/build/src/xwinmosaic
0060c000-0060d000 rw-p 0000c000 08:08 6293629                            /home/artifth/src/xwinmosaic/build/src/xwinmosaic
008aa000-00adc000 rw-p 00000000 00:00 0                                  [heap]
7f97b8000000-7f97b8022000 rw-p 00000000 00:00 0 
7f97b8022000-7f97bc000000 ---p 00000000 00:00 0 
7f97c0000000-7f97c0022000 rw-p 00000000 00:00 0 
7f97c0022000-7f97c4000000 ---p 00000000 00:00 0 
7f97c51a6000-7f97c51bb000 r-xp 00000000 08:07 1439024                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f97c51bb000-7f97c53ba000 ---p 00015000 08:07 1439024                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f97c53ba000-7f97c53bb000 r--p 00014000 08:07 1439024                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f97c53bb000-7f97c53bc000 rw-p 00015000 08:07 1439024                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f97c53bc000-7f97c53c8000 r-xp 00000000 08:07 1444208                    /lib/x86_64-linux-gnu/libudev.so.0.13.0
7f97c53c8000-7f97c55c7000 ---p 0000c000 08:07 1444208                    /lib/x86_64-linux-gnu/libudev.so.0.13.0
7f97c55c7000-7f97c55c8000 r--p 0000b000 08:07 1444208                    /lib/x86_64-linux-gnu/libudev.so.0.13.0
7f97c55c8000-7f97c55c9000 rw-p 0000c000 08:07 1444208                    /lib/x86_64-linux-gnu/libudev.so.0.13.0
7f97c55c9000-7f97c560b000 r-xp 00000000 08:07 1439035                    /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7f97c560b000-7f97c580b000 ---p 00042000 08:07 1439035                    /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7f97c580b000-7f97c580c000 r--p 00042000 08:07 1439035                    /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7f97c580c000-7f97c580d000 rw-p 00043000 08:07 1439035                    /lib/x86_64-linux-gnu/libdbus-1.so.3.5.8
7f97c580d000-7f97c5823000 r-xp 00000000 08:07 398029                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f97c5823000-7f97c5a22000 ---p 00016000 08:07 398029                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f97c5a22000-7f97c5a23000 r--p 00015000 08:07 398029                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f97c5a23000-7f97c5a24000 rw-p 00016000 08:07 398029                     /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7f97c5a24000-7f97c5a4c000 r-xp 00000000 08:07 398645                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f97c5a4c000-7f97c5c4b000 ---p 00028000 08:07 398645                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f97c5c4b000-7f97c5c4c000 r--p 00027000 08:07 398645                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f97c5c4c000-7f97c5c4d000 rw-p 00028000 08:07 398645                     /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7f97c5c4d000-7f97c5c91000 r-xp 00000000 08:07 394710                     /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7f97c5c91000-7f97c5e90000 ---p 00044000 08:07 394710                     /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7f97c5e90000-7f97c5e92000 r--p 00043000 08:07 394710                     /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7f97c5e92000-7f97c5e93000 rw-p 00045000 08:07 394710                     /usr/lib/x86_64-linux-gnu/libibus-1.0.so.0.401.0
7f97c5e93000-7f97c5e94000 rw-p 00000000 00:00 0 
7f97c5ec7000-7f97c5ecd000 r-xp 00000000 08:07 523582                     /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7f97c5ecd000-7f97c60cc000 ---p 00006000 08:07 523582                     /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7f97c60cc000-7f97c60cd000 r--p 00005000 08:07 523582                     /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7f97c60cd000-7f97c60ce000 rw-p 00006000 08:07 523582                     /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
7f97c60ce000-7f97c6125000 r--p 00000000 08:07 925923                     /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
7f97c6125000-7f97c6127000 r-xp 00000000 08:07 524552                     /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7f97c6127000-7f97c6326000 ---p 00002000 08:07 524552                     /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7f97c6326000-7f97c6327000 r--p 00001000 08:07 524552                     /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7f97c6327000-7f97c6328000 rw-p 00002000 08:07 524552                     /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
7f97c6328000-7f97c6331000 r-xp 00000000 08:07 524564                     /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libpixmap.so
7f97c6331000-7f97c6531000 ---p 00009000 08:07 524564                     /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libpixmap.soАварийный останов (core dumped)

Here is cmake output:


-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- checking for modules 'gtk+-2.0;x11'
--   found gtk+-2.0, version 2.24.10
--   found x11, version 1.4.99.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/artifth/src/xwinmosaic/build

System: Ubuntu 12.04 LTS.

soulthreads commented 12 years ago

Fixed in commit 5501fedccb8c77691a4c56dd6cb641dd3814c39a