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
plugin Numbered Bookmarks activated causes geany to crash at start-up #301
Comments
Something like this could solve the issue:
but I doubt that this will be without side effect. |
I see no side effects, except the signal of the failing assertion: Weirdly enough, it depends on the project I select to load into geany: either no problem occurs or it crashes (or reports the warning signal when the above path is applied). |
I could imagine this is caused by some timing. And in fact, the usage of the current document is not very good. |
Aside from passing the |
Pass the document pointer instead of always getting the current document, which may or may not be the one we're working on. Closes geany#301.
When the plugin Numbered Bookmarks is switched on, Geany crashes instantly on start-up. Running GDB shows the following warning:
Program received signal SIGSEGV, Segmentation fault.
0x00007fffd153f2f4 in SetMarker (sci=0x9fa4a0, bookmarkNumber=1, markerNumber=2, line=247) at geanynumberedbookmarks.c:885
885 fd=GetFileData(document_get_current()->file_name);
I assume that at start-up the call document_get_current() will return a NULL pointer? And asking a file_name member will cause a segfault?
Tested on geany-plugins commit 4c11373 of Nov. 8th, 2015.
The text was updated successfully, but these errors were encountered: