User forums > Help
Problem while building C::B from codeblocks-unix.workspace
earlgrey:
Debian wheezy.
Im gonna dig this.
Jenna:
I just tested on an uptodate wheezy .
There are no such issues.
Did you change any project or global settings before compiling ?
earlgrey:
Got it.
I had an old file called "ofl.so" ( surely an old test for http://forums.codeblocks.org/index.php/topic,19618.0.html ) in "/home/gwr/.codeblocks/share/codeblocks/plugins" that C::B tried to load :
--- Code: ---bool PluginManager::LoadPlugin(const wxString& pluginName)
{
...
m_pCurrentlyLoadingLib = LibLoader::LoadLibrary(pluginName);
...
}
--- End code ---
What is interesting is that after the LoadLibrary call on the dummy file ofl.so, there is apparently a memory write that resets ConfigManager::config_folder & co :
before : http://imgur.com/AaycWMO
after : http://imgur.com/OEEUIAT
( Notice the ConfigManager::config_folder wxString reseted to "" )
Digging further, the switch is done in pluginmanager.cpp :
--- Code: ---namespace LibLoader
{
...
inline wxDynamicLibrary* LoadLibrary(const wxString& filename)
{
...
it->second.lib->Load(filename); <= memory overwrite here
...
}
...
};
--- End code ---
Which leads finally to obscure casts in
/usr/include/c++/4.7/bits/move.h
and
/usr/include/c++/4.7/bits/stl_tree.h
Removed dummy ofl.so file and all is OK now.
Thanks for having answered.
Navigation
[0] Message Index
[*] Previous page
Go to full version