New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGSEGV when opening a file #3151
Comments
Most probably the same cause as in #3149. Please note that even if the backtrace puts @overcq as a workaround, the crashes should stop if you disable the 'Follow path of current file' option in VTE preferences. |
The problem was the new location of the call for the |
The patch seems to fix the issue, in my case it was @kugel- I'm not familiar with the "stash" system, could you have a look if the fix is appropriate? Thanks. |
Alright, I think I understand. It's the specific "VTE" stash group that is initialized later (now after The patch probably works but I would rather explore why the "VTE" stash group needs to be special, that's just unexpected and surprising. Hopefully I can manage in the coming days. |
Is it because loading VTE can be disabled by pref, so at least that pref needs to be initialised and loaded from the file and tested to see if the VteConfig struct needs to be created, and the stash group can't be created before the VteConfig struct because it's members (eg |
Thinking some more, can |
Like with all other stash groups, the VTE one is now set up in init_pref_groups(), along with the terminal various pref group. Since be739e2 ("session.conf split follow-up #3"), the send_cmd_prefix pref was read from the configuration before setting up the stash group, which caused the "Follow path of the current file" feature to crash Geany. I.e. the fix is to set up the stash group even earlier. In my optionion, it's also beneficial that the overall stash groups do not depend on loading libvte or not. For example, previously the terminal various pref group was only added when loading libvte was not disabled. When it was disabled the end result was inconsistent with the manual. Now the terminal group appears unconditionally. Fixes be739e2 ("session.conf split follow-up #3") Fixes geany#3151
Like with all other stash groups, the VTE one is now set up in init_pref_groups(), along with the terminal various pref group. Since be739e2 ("session.conf split follow-up #3"), the send_cmd_prefix pref was read from the configuration before setting up the stash group, which caused the "Follow path of the current file" feature to crash Geany. I.e. the fix is to set up the stash group even earlier. In my optionion, it's also beneficial that the overall stash groups do not depend on loading libvte or not. For example, previously the terminal various pref group was only added when loading libvte was not disabled. When it was disabled the end result was inconsistent with the manual. Now the terminal group appears unconditionally. Fixes be739e2 ("session.conf split follow-up #3") Fixes geany#3151
Like with all other stash groups, the VTE one is now set up in init_pref_groups(), along with the terminal various pref group. Since be739e2 ("session.conf split follow-up #3"), the send_cmd_prefix pref was read from the configuration before setting up the stash group, which caused the "Follow path of the current file" feature to crash Geany. I.e. the fix is to set up the stash group even earlier. In my optionion, it's also beneficial that the overall stash groups do not depend on loading libvte or not. For example, previously the terminal various pref group was only added when loading libvte was not disabled. When it was disabled the end result was inconsistent with the manual. Now the terminal group appears unconditionally. Fixes be739e2 ("session.conf split follow-up #3") Fixes geany#3151
Like with all other stash groups, the VTE one is now set up in init_pref_groups(), along with the terminal various pref group. Since be739e2 ("session.conf split follow-up #3"), the send_cmd_prefix pref was read from the configuration before setting up the stash group, which caused the "Follow path of the current file" feature to crash Geany. I.e. the fix is to set up the stash group even earlier. In my optionion, it's also beneficial that the overall stash groups do not depend on loading libvte or not. For example, previously the terminal various pref group was only added when loading libvte was not disabled. When it was disabled the end result was inconsistent with the manual. Now the terminal group appears unconditionally. Fixes be739e2 ("session.conf split follow-up #3") Fixes #3151
Starting from commit be739e2 geany crashes with SIGSEGV when I try to open a file.
I'm using Gentoo Linux (updated).
Working commit da12533 configuration: configure.1.txt
Not working commit be739e2 configuration: configure.2.txt
gdb geany
and open from dialog: backtrace.2-dialog.txtgdb geany
and open from File Browser plugin: backtrace.2-plugin.txtWorking commit
strace geany Program.cs
: strace.1.txtNot working commit
strace geany Program.cs
: strace.2-args.txtThe text was updated successfully, but these errors were encountered: