GNOME Bugzilla – Bug 336105
gnome-terminal crashes when termcap not found
Last modified: 2007-01-31 15:39:43 UTC
terminal crashes when file /usr/share/vte/termcap/xterm is not present, it should do some error checking and exit instead. Program received signal SIGSEGV, Segmentation fault.
+ Trace 67255
Thread NaN (LWP 8573)
*** Bug 341788 has been marked as a duplicate of this bug. ***
*** Bug 348318 has been marked as a duplicate of this bug. ***
Created attachment 72997 [details] [review] toss up a gtkmessagedialog
Not sure if that's the best action in a widget.
Also, do we need to add anything like a configure-time check?
Humm, seems like we already have such a check. Ryan, I suggest, instead of a dialog etc, we should be forgiving as much as possible, and if all fails, mark a flag and in expose only write with big letters that termcap was not found in "path".
Yup, having a widget pop up error dialogs is surely not a good idea. Behdad's flag and message sounds nice, but one should be very sure that we do not end up checking for the flag too often... Marking the patch as needing work.
Created attachment 80517 [details] [review] Do not die if termcap==NULL Add checks for termcap==NULL before use and insert an error message into the output stream.
r1578: 2007-01-29 Chris Wilson <chris@chris-wilson.co.uk> Bug 336105 – gnome-terminal crashes when termcap not found * src/matcher.c: (_vte_matcher_init): * src/vte-private.h: * src/vte.c: (vte_terminal_set_default_tabstops), (vte_terminal_key_press), (vte_terminal_set_emulation), (_vte_terminal_inline_error_message), (vte_terminal_set_termcap), (vte_terminal_init), (vte_terminal_finalize), (vte_terminal_draw_cells): Detect and issue an inline warning when we fail to load a termcap.
*** Bug 397937 has been marked as a duplicate of this bug. ***