News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

SUGGESTION: Command line argument to REALLY disable plugins load

Started by ElectroWizard, July 09, 2013, 09:26:58 PM

Previous topic - Next topic

ElectroWizard

A "bad" plugin STILL may crash C::B... even using --safe-mode

--safe-mode does NOT really prevent the loading of plugin libraries...



Of course: we can disable the loading in several ways, such as renaming the lib to "Name.so--" (in linux/*nix...)

but

May I suggest creating some --safe-mode alike CLI flags:


--Disable-Load-All-Plugins to REALLY avoid loading ALL and ANY plugins libs

 and

--Dont-Load-Plugin=<plugin1,plugin2...>


Thanks in advance
ElectroWizard

oBFusCATed

Quote from: ElectroWizard on July 09, 2013, 09:26:58 PM
--Disable-Load-All-Plugins to REALLY avoid loading ALL and ANY plugins libs
100% useless option. The compiler is a plugin, so not loading it means useless C::B!

Quote from: ElectroWizard on July 09, 2013, 09:26:58 PM
--Dont-Load-Plugin=<plugin1,plugin2...>
If you don't need a plugin it is better to
1. delete if from system
2. not build it in the first place (on windows as far as I know you can choose which plugins to install)

p.s. I agree that the plugin system should be redesigned, but it will wait awhile before it happens.
p.p.s. Use a debugger to track the problem and report it properly, don't try to workaround it. :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on July 09, 2013, 10:20:06 PM
100% useless option. The compiler is a plugin, so not loading it means useless C::B!
Nope, initially C::B was designed to be a powerful editor in this case, at least. Don't forget that you can even install C::B as an editor using the installer on Windows.

If disabled the compiler plugin makes C::B crash that this is a bug.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Quote from: MortenMacFly on July 16, 2013, 10:24:37 AM
If disabled the compiler plugin makes C::B crash that this is a bug.
You can try for yourself, I don't think you could use C::B without a compiler...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on July 16, 2013, 11:41:08 AM
You can try for yourself, I don't think you could use C::B without a compiler...
Will do, but it really used to work safely for a long time.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]