kakoune: Exception "Format string parameter index too big" on startup, Cygwin (release builds only)
Hi,
This bug was reported on IRC by @jhentula. When starting up the editor, the following exception comes up immediately and prevents him from using it completely:
Format string parameter index too big
He was unabled to use gdb
because of a bug recently introduced that prevented the tool to run in Cygwin, downgrading gdb
didn’t help.
We trace the issue back to shell_manager.cc:22
, by making the exception return a modified version of the format that caused the issue. Now the weird thing is that the PATH
variable is not empty, get_kak_binary_path()
did return a proper value (the /proc/self/exe
entry is correctly fetched), and we assumed that split_path
was doing its job, so the issue might stem from a corner case in the format_impl
function?
Either way, we couldn’t debug properly because of the gdb
bug, so this will have to be reproduced somehow.
HTH.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (10 by maintainers)
Congratulations, you found a code generation bug in gcc…
In Kakoune::ShellManager::ShellManager, we have the following code:
As we can see, gcc is producing incorrect assembly here, seems this only happens when generating 32 bit assembly on windows.