Enrico Tröger wrote:
On Tue, 30 Oct 2007 11:47:54 -0700, Bob Snyder bob.snyder@cox.net wrote:
Hi,
Yes. I have just downloaded gdb.exe from mingw and am able to run Geany and get the crash when running under gdb. Please send the binary with debug symbols. You can send it to my direct email address if you want.
If Geany crashed, type "bt" in the gdb console and mail me the output.
Thanks for your help.
Regards, Enrico
Hi Enrico,
Here is the backtrace:
C:\TEMP>\util\bin\gdb geany.exe GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-mingw32"... (gdb) run Starting program: C:\TEMP/geany.exe Loaded symbols for C:\WINDOWS\system32\ntdll.dll Loaded symbols for C:\WINDOWS\system32\kernel32.dll Loaded symbols for C:\WINDOWS\system32\comdlg32.dll Loaded symbols for C:\WINDOWS\system32\shlwapi.dll Loaded symbols for C:\WINDOWS\system32\advapi32.dll Loaded symbols for C:\WINDOWS\system32\rpcrt4.dll Loaded symbols for C:\WINDOWS\system32\secur32.dll Loaded symbols for C:\WINDOWS\system32\gdi32.dll Loaded symbols for C:\WINDOWS\system32\user32.dll Loaded symbols for C:\WINDOWS\system32\msvcrt.dll Loaded symbols for C:\WINDOWS\system32\comctl32.dll Loaded symbols for C:\WINDOWS\system32\shell32.dll Loaded symbols for C:\WINDOWS\system32\wsock32.dll Loaded symbols for C:\WINDOWS\system32\ws2_32.dll Loaded symbols for C:\WINDOWS\system32\ws2help.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libatk-1.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libglib-2.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\iconv.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\intl.dll Loaded symbols for C:\WINDOWS\system32\ole32.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libgobject-2.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libgdk-win32-2.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libgdk_pixbuf-2.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libgmodule-2.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libcairo-2.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libfontconfig-1.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\xmlparse.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\xmltok.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\freetype6.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\zlib1.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libpng13.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libxml2.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libpango-1.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libpangocairo-1.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libpangowin32-1.0-0.dll Loaded symbols for C:\WINDOWS\system32\imm32.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libgthread-2.0-0.dll Loaded symbols for C:\Program Files\Common Files\GTK\2.0\bin\libgtk-win32-2.0-0.dll
Program received signal SIGSEGV, Segmentation fault. tm_workspace_add_object (work_object=0x1355320) at tm_workspace.c:111 111 tm_workspace.c: No such file or directory. in tm_workspace.c (gdb) bt #0 tm_workspace_add_object (work_object=0x1355320) at tm_workspace.c:111 #1 0x00410e68 in document_update_tag_list (idx=1, update=1) at document.c:1747 #2 0x0041115b in document_set_filetype (idx=1, type=0x116f298) at document.c:1881 #3 0x0041357c in document_open_file_full (idx=-1, filename=0x1321e88 "C:\GHS\UCS_Build_FS\UCS_App_dir\src\antenna_cs.h", pos=0, readonly=0, ft=0x0, forced_enc=0x0) at document.c:1008 #4 0x00413a44 in document_open_file ( locale_filename=0x1321e88 "C:\GHS\UCS_Build_FS\UCS_App_dir\src\antenna_cs.h", readonly=0, ft=0x0, forced_enc=0x0) at document.c:588 #5 0x00414589 in document_open_files (filenames=0x12daf20, readonly=0, ft=0x0, forced_enc=0x0) at document.c:1084 #6 0x0040b49a in on_file_open_dialog_response (dialog=0x12b5030, response=-3, user_data=0x0) at dialogs.c:91 #7 0x62743935 in _libuser32_a_iname () from C:\Program Files\Common Files\GTK\2.0\bin\libgobject-2.0-0.dll #8 0x00000000 in ?? () (gdb)
On Tue, 30 Oct 2007 13:06:08 -0700, Bob Snyder bob.snyder@cox.net wrote:
Hi,
Here is the backtrace:
Thanks for backtrace, it helped a lot. The problem was that the tagmanager part in Geany tried to write a file in the root of the drive Geany is executed on (on Windows, on Linux it just uses /tmp). But it seems your unprivileged user doesn't have permission to write there and so the file couldn't be created and Geany crashed. This should be fixed in SVN r2000. I changed the path where the file is written to Geany's configuration directory which should in almost every case be writable and even if not, Geany won't crash anymore. So, this isn't a Windows-only issue it could also happen on Linux if /tmp is not writable but I guess there are only a few systems if ever where this is the case.
A new Windows binary can be found at http://www.uvena.de/tmp/geany_svnr2000_win32_bin.zip. Maybe I'll put a full installer online for the current SVN version.
Furthermore, I'll check whether we could remove this status file at all but for the moment I'm not yet sure.
Regards, Enrico
Enrico Tröger wrote:
On Tue, 30 Oct 2007 13:06:08 -0700, Bob Snyder bob.snyder@cox.net wrote:
Hi,
This should be fixed in SVN r2000. I changed the path where the file is written to Geany's configuration directory which should in almost every case be writable and even if not, Geany won't crash anymore. So, this isn't a Windows-only issue it could also happen on Linux if /tmp is not writable but I guess there are only a few systems if ever where this is the case.
Just compiled svn 2004 and revoked my admin rights and it worked peferctly.
Thanks Tim