Author Topic: SUGGESTION: Command line argument to REALLY disable plugins load  (Read 6537 times)

Offline ElectroWizard

  • Single posting newcomer
  • *
  • Posts: 2
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: SUGGESTION: Command line argument to REALLY disable plugins load
« Reply #1 on: July 09, 2013, 10:20:06 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!

--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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: SUGGESTION: Command line argument to REALLY disable plugins load
« Reply #2 on: July 16, 2013, 10:24:37 am »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: SUGGESTION: Command line argument to REALLY disable plugins load
« Reply #3 on: July 16, 2013, 11:41:08 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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: SUGGESTION: Command line argument to REALLY disable plugins load
« Reply #4 on: July 16, 2013, 11:54:43 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ