GNOME Bugzilla – Bug 394890
Segfault when running vte or gnome-terminal
Last modified: 2007-04-24 23:46:33 UTC
Steps to reproduce: 1. Compile vte 0.15.1 2. Install 3. Run vte or gnome-terminal Stack trace: (gdb) bt
+ Trace 100881
Other information: Please note I am on x86_64. See also: http://qa.mandriva.com/show_bug.cgi?id=28068
suspicious return address. i think i'm smashing the stack somewhere....
+ Trace 100884
arg. regression caused by my quick fix to bug 354061. for "_vte_termcap_find_string_length" i changed the 'int' to a 'gssize' so that the function would match its prototype, but i forgot about this: char * _vte_termcap_find_string (VteTermcap *termcap, const char *tname, const char *cap) { int length; return _vte_termcap_find_string_length (termcap, tname, cap, &length); } so the high 32bits of the length (all zeros) are being written over top of the low 32bits in the return address on the stack...
please try SVN "trunk" (i think that's what they call it...) 2007-01-09 Ryan Lortie <desrt@desrt.ca> Bug 394890 – Segfault when running vte or gnome-terminal * src/vtetc.c (_vte_termcap_find_string): change 'int' to 'gssize' to match previous fixup. Hopefully that does it. :)
also -- while compiling, if you could make note of any other warnings generated on a 64bit system that would be appreciated...
Created attachment 79916 [details] Full output when building on x86_64 Here is the full output when building on x86_64. Knock yourself out :)
Confirming that your revision fixes the crash for me. Thanks for the quick response.
Thanks Ryan. I'll wait until next week for the release.
*** Bug 395207 has been marked as a duplicate of this bug. ***
*** Bug 395205 has been marked as a duplicate of this bug. ***
*** Bug 395204 has been marked as a duplicate of this bug. ***
*** Bug 395214 has been marked as a duplicate of this bug. ***
*** Bug 395303 has been marked as a duplicate of this bug. ***
*** Bug 395222 has been marked as a duplicate of this bug. ***
*** Bug 395349 has been marked as a duplicate of this bug. ***
*** Bug 395209 has been marked as a duplicate of this bug. ***
*** Bug 395247 has been marked as a duplicate of this bug. ***
*** Bug 395496 has been marked as a duplicate of this bug. ***
*** Bug 395495 has been marked as a duplicate of this bug. ***
*** Bug 395682 has been marked as a duplicate of this bug. ***
*** Bug 395052 has been marked as a duplicate of this bug. ***
I've quite clearly started an amazing trend!!!
*** Bug 395784 has been marked as a duplicate of this bug. ***
*** Bug 395670 has been marked as a duplicate of this bug. ***
*** Bug 402720 has been marked as a duplicate of this bug. ***
*** Bug 433101 has been marked as a duplicate of this bug. ***