epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.11k stars 67 forks source link

Segfault when searching for files in the source manager #129

Closed karstensb closed 1 year ago

karstensb commented 1 year ago

When seergdb is executed, usually a "Select Executable to Debug" dialog/pop-up window is opened next to the main window. When this window is closed, either with the cross in the top right-hand corner, the "cancel" button or by pressing the "ok" button while either "Run", "Attach" or "Corefile" is selected as the "Launch Method" (with no "Executable Name" specified), it is possible to cause a segmentation fault: If anything is entered in the search text box of the "Source" tab of the "Source/Symbol/Library Info" area/window, seergdb immediately crashes with a segmentation fault. Also the "Source" tab does not show the "Header Files", "Misc Files" or "Source Files" sub directories in this case.

This is not too big of an issue but it is unexpected behavior nonetheless so I thought I'd report it.

epasveer commented 1 year ago

Interesting. I'm able to duplicate the problem with your very detailed instructions.

I'll update this task when it's fixed. (This week).

epasveer commented 1 year ago

Easier to fix than I thought. I've updated the fix. You can grab the latest snapshot to try.

Thanks again for your input.

karstensb commented 1 year ago

Seems to work, thank you!