at the guy who committed today : linux version is broken :
Quote
lieven@pcldcp:~> codeblocks
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
OpenFilesList: loaded
ScriptedWizard: loaded
Profiler: loaded
Valgrind: loaded
AutoVersioning: loaded
HelpPlugin: loaded
Exporter: loaded
wxSmithContribItems: loaded
HexEditor: loaded
cbKeyBinder: loaded
ClassWizard: loaded
HeaderFixup: loaded
lib_finder: loaded
cbDragScroll: loaded
SymTab: loaded
CodeSnippets: loaded
EnvVars: loaded
ToDoList: loaded
BrowseTracker: loaded
CB_Koders: loaded
ProjectsImporter: loaded
FilesExtensionHandler: loaded
RegExTestbed: loaded
BYOGames: loaded
Debugger: loaded
IncrementalSearch: loaded
CodeStat: loaded
AStylePlugin: loaded
Compiler: loaded
Autosave: loaded
CodeCompletion: loaded
ThreadSearch: loaded
wxSmith: loaded
wxSmithMime: loaded
Open files list plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
Scripted wizard plugin activated
Code profiler plugin activated
Valgrind plugin activated
AutoVersioning plugin activated
Help plugin plugin activated
Source Exporter plugin activated
wxSmith - Contrib Items plugin activated
HexEditor plugin activated
Keyboard shortcuts plugin activated
Class wizard plugin activated
Header Fixup plugin activated
Parsing stage done (0 total parsed files, 0 tokens in 0 minute(s), 0.0 seconds).
Library finder plugin activated
DragScroll plugin activated
Symbol Table Plugin plugin activated
Code snippets plugin activated
Environment variables plugin activated
To-Do List plugin activated
BrowseTracker plugin activated
Koders query plugin activated
Foreign projects importer plugin activated
Files extension handler plugin activated
Regular expressions testbed plugin activated
BYO Games plugin activated
Debugger plugin activated
IncrementalSearch plugin activated
Code statistics plugin activated
Source code formatter (AStyle) plugin activated
Added compiler "GNU GCC Compiler"
Segmentation fault
Before I was at rev 5402 which worked OK.
Quote from: killerbot on January 16, 2009, 05:36:09 PM
at the guy who committed today : linux version is broken :
Quote
lieven@pcldcp:~> codeblocks
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
OpenFilesList: loaded
ScriptedWizard: loaded
Profiler: loaded
Valgrind: loaded
AutoVersioning: loaded
HelpPlugin: loaded
Exporter: loaded
wxSmithContribItems: loaded
HexEditor: loaded
cbKeyBinder: loaded
ClassWizard: loaded
HeaderFixup: loaded
lib_finder: loaded
cbDragScroll: loaded
SymTab: loaded
CodeSnippets: loaded
EnvVars: loaded
ToDoList: loaded
BrowseTracker: loaded
CB_Koders: loaded
ProjectsImporter: loaded
FilesExtensionHandler: loaded
RegExTestbed: loaded
BYOGames: loaded
Debugger: loaded
IncrementalSearch: loaded
CodeStat: loaded
AStylePlugin: loaded
Compiler: loaded
Autosave: loaded
CodeCompletion: loaded
ThreadSearch: loaded
wxSmith: loaded
wxSmithMime: loaded
Open files list plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
Scripted wizard plugin activated
Code profiler plugin activated
Valgrind plugin activated
AutoVersioning plugin activated
Help plugin plugin activated
Source Exporter plugin activated
wxSmith - Contrib Items plugin activated
HexEditor plugin activated
Keyboard shortcuts plugin activated
Class wizard plugin activated
Header Fixup plugin activated
Parsing stage done (0 total parsed files, 0 tokens in 0 minute(s), 0.0 seconds).
Library finder plugin activated
DragScroll plugin activated
Symbol Table Plugin plugin activated
Code snippets plugin activated
Environment variables plugin activated
To-Do List plugin activated
BrowseTracker plugin activated
Koders query plugin activated
Foreign projects importer plugin activated
Files extension handler plugin activated
Regular expressions testbed plugin activated
BYO Games plugin activated
Debugger plugin activated
IncrementalSearch plugin activated
Code statistics plugin activated
Source code formatter (AStyle) plugin activated
Added compiler "GNU GCC Compiler"
Segmentation fault
Before I was at rev 5402 which worked OK.
The \src\plugins\compilergcc\compilergcc.cpp(line 3371) have a keyin error at rev 5403.
you need change some code from
Quoted.Replace(_T("??), _T("\""), true);
Quoted.Replace(_T("??), _T("\""), true);
to
Quoted.Replace(_T("??"), _T("\""), true);
Quoted.Replace(_T("??"), _T("\""), true);
I test rev 5406 in winxp with patch this place.
It run fine.
C::B core (built with C::B) works without problems.
I try it with plugins now, and if it still works, I try automake.
@mmkider
no such error here, if I change it manually I get a compile error, not a segfault at runtime:
g++ -Wall -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -Ulinux -Uunix -fPIC -DcbDEBUG -DCB_PRECOMP -Iinclude -Iplugins/compilergcc/depslib/src -Iinclude/scripting/include -Iinclude/scripting/sqplus -Iinclude/wxscintilla/include -c /home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp -o .objs/plugins/compilergcc/compilergcc.o
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371:28: warning: trigraph ??) ignored, use -trigraphs to enable
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371: error: stray '\' in program
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372:28: warning: trigraph ??) ignored, use -trigraphs to enable
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372: error: stray '\' in program
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp: In member function 'void CompilerGCC::LogMessage(const wxString&, CompilerLineType, LogTarget, bool, bool, bool)':
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371: error: no matching function for call to 'wxString::Replace(const wchar_t [9], bool)'
/usr/include/wx-2.8/wx/string.h:1175: note: candidates are: size_t wxString::Replace(const wxChar*, const wxChar*, bool)
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372: error: no matching function for call to 'wxString::Replace(const wchar_t [9], bool)'
/usr/include/wx-2.8/wx/string.h:1175: note: candidates are: size_t wxString::Replace(const wxChar*, const wxChar*, bool)
Quote from: killerbot on January 16, 2009, 05:36:09 PM
at the guy who committed today : linux version is broken :
[...]
Added compiler "GNU GCC Compiler"
Segmentation fault
Who is that guy? :lol:
What happens if you revert the modification of compilergcc (and just those) to r5402?
Quote from: mmkider on January 16, 2009, 05:47:24 PM
Quoted.Replace(_T("??), _T("\""), true);
Quoted.Replace(_T("??), _T("\""), true);
to
Quoted.Replace(_T("??"), _T("\""), true);
Quoted.Replace(_T("??"), _T("\""), true);
This I didn't touch at all...?! And in addition: it looks fine for me in SVN an on my local copy...?!
Quote from: jens on January 16, 2009, 06:07:28 PM
C::B core (built with C::B) works without problems.
I try it with plugins now, and if it still works, I try automake.
@mmkider
no such error here, if I change it manually I get a compile error, not a segfault at runtime:
g++ -Wall -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -fmessage-length=0 -fexceptions -Winvalid-pch -Ulinux -Uunix -fPIC -DcbDEBUG -DCB_PRECOMP -Iinclude -Iplugins/compilergcc/depslib/src -Iinclude/scripting/include -Iinclude/scripting/sqplus -Iinclude/wxscintilla/include -c /home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp -o .objs/plugins/compilergcc/compilergcc.o
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371:28: warning: trigraph ??) ignored, use -trigraphs to enable
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371: error: stray '\' in program
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372:28: warning: trigraph ??) ignored, use -trigraphs to enable
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372: error: stray '\' in program
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp: In member function 'void CompilerGCC::LogMessage(const wxString&, CompilerLineType, LogTarget, bool, bool, bool)':
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371: error: no matching function for call to 'wxString::Replace(const wchar_t [9], bool)'
/usr/include/wx-2.8/wx/string.h:1175: note: candidates are: size_t wxString::Replace(const wxChar*, const wxChar*, bool)
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372: error: no matching function for call to 'wxString::Replace(const wchar_t [9], bool)'
/usr/include/wx-2.8/wx/string.h:1175: note: candidates are: size_t wxString::Replace(const wxChar*, const wxChar*, bool)
I build a patch.
If you have a litte time, you can try it.
[attachment deleted by admin]
Quote from: MortenMacFly on January 16, 2009, 06:09:20 PM
Quote from: mmkider on January 16, 2009, 05:47:24 PM
Quoted.Replace(_T("??), _T("\""), true);
Quoted.Replace(_T("??), _T("\""), true);
to
Quoted.Replace(_T("??"), _T("\""), true);
Quoted.Replace(_T("??"), _T("\""), true);
This I didn't touch at all...?! And in addition: it looks fine for me in SVN an on my local copy...?!
I don't know what happen.
But I update source into rev 5403, then I found this issue.
8)
Quote from: mmkider on January 16, 2009, 06:11:45 PM
I build a patch.
If you have a litte time, you can try it.
Here is your patch as it looked like if I open it in "vi":
Index: compilergcc.cpp
===================================================================
--- compilergcc.cpp (revision 5406)
+++ compilergcc.cpp (working copy)
@@ -3368,8 +3368,9 @@
}
// replace the ยด family by "
wxString Quoted = message;
- Quoted.Replace(_T("'"), _T("\""), true);
- Quoted.Replace(_T("'"), _T("\""), true);
+ Quoted.Replace(_T("??"), _T("\""), true);
+ Quoted.Replace(_T("??"), _T("\""), true);
+
m_BuildLogContents << Quoted;
if (isTitle)What encoding has the file ("compilergcc.cpp"), if you open it with C::B, for me it's UTF-8.
Quote from: jens on January 16, 2009, 06:21:07 PM
Quote from: mmkider on January 16, 2009, 06:11:45 PM
I build a patch.
If you have a litte time, you can try it.
Here is your patch as it looked like if I open it in "vi":
Index: compilergcc.cpp
===================================================================
--- compilergcc.cpp (revision 5406)
+++ compilergcc.cpp (working copy)
@@ -3368,8 +3368,9 @@
}
// replace the ´ family by "
wxString Quoted = message;
- Quoted.Replace(_T(""), _T("\""), true);
- Quoted.Replace(_T(""), _T("\""), true);
+ Quoted.Replace(_T("??"), _T("\""), true);
+ Quoted.Replace(_T("??"), _T("\""), true);
+
m_BuildLogContents << Quoted;
if (isTitle)
What encoding hass the file ("compilergcc.cpp"), if you open it with C::B, for me it's UTF-8.
For me it's windows-950.
Sorry,this is my mistake.
the Quoted stuff is still ok in my svn?
Going back to 5402 and building to see if then things are still ok, ... more to come
5402 works
now building 5403
the problem is caused by a change in rev 5403
I have been applying the changes from rev 5403 step by step.
all were ok, except when these 2 were applied :
Quote
trunk/src/include/macrosmanager.h
trunk/src/sdk/macrosmanager.cpp
Can this be removed until things have been cleared out ?
Suggestion to all developers : please apply patches 1 by 1 instead of in bulk. This can make things much easier to find out on what's going wrong. Now it was a pain in the .... to track the offending changes.
Quote from: killerbot on January 17, 2009, 02:03:21 PM
Can this be removed until things have been cleared out ?
Sure. Go ahead.