Author Topic: 5406 : refuses to startup on linux  (Read 12555 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
5406 : refuses to startup on linux
« 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.
« Last Edit: January 16, 2009, 05:37:48 pm by killerbot »

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: 5406 : refuses to startup on linux
« Reply #1 on: January 16, 2009, 05:47:24 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
Code
        Quoted.Replace(_T("??), _T("\""), true);
        Quoted.Replace(_T("??), _T("\""), true);
to
Code
        Quoted.Replace(_T("??"), _T("\""), true);
        Quoted.Replace(_T("??"), _T("\""), true);

I test rev 5406 in winxp with patch this place.
It run fine.
« Last Edit: January 16, 2009, 06:07:03 pm by mmkider »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: 5406 : refuses to startup on linux
« Reply #2 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:
Code
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)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: 5406 : refuses to startup on linux
« Reply #3 on: January 16, 2009, 06:08:20 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: 5406 : refuses to startup on linux
« Reply #4 on: January 16, 2009, 06:09:20 pm »
Code
        Quoted.Replace(_T("??), _T("\""), true);
        Quoted.Replace(_T("??), _T("\""), true);
to
Code
        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...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: 5406 : refuses to startup on linux
« Reply #5 on: January 16, 2009, 06:11:45 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:
Code
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]

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: 5406 : refuses to startup on linux
« Reply #6 on: January 16, 2009, 06:20:15 pm »
Code
        Quoted.Replace(_T("??), _T("\""), true);
        Quoted.Replace(_T("??), _T("\""), true);
to
Code
        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)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: 5406 : refuses to startup on linux
« Reply #7 on: January 16, 2009, 06:21:07 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":
Code
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.
« Last Edit: January 16, 2009, 06:47:11 pm by jens »

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: 5406 : refuses to startup on linux
« Reply #8 on: January 16, 2009, 06:28: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":
Code
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.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: 5406 : refuses to startup on linux
« Reply #9 on: January 17, 2009, 09:42:39 am »
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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: 5406 : refuses to startup on linux
« Reply #10 on: January 17, 2009, 11:21:55 am »
5402 works

now building 5403

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: 5406 : refuses to startup on linux
« Reply #11 on: January 17, 2009, 12:11:47 pm »
the problem is caused by a change in rev 5403

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: 5406 : refuses to startup on linux
« Reply #12 on: January 17, 2009, 02:03:21 pm »
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.
« Last Edit: January 17, 2009, 03:10:12 pm by killerbot »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: 5406 : refuses to startup on linux
« Reply #13 on: January 17, 2009, 09:16:27 pm »
Can this be removed until things have been cleared out ?
Sure. Go ahead.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ