GNOME Bugzilla – Bug 596928
auto generated RBSource search wrapper, doesn't handle NULL cur_text
Last modified: 2010-03-26 10:14:05 UTC
Created attachment 144447 [details] Stacktrace of segfault As the description says, I've created a source, and when I open the source, it crashes because it's trying to turn a NULL into a pystring. More specifically, cur_text. Either cur_text should be "" initially, the wrapper function should check it, or PyString should handle null gracefully. I tried the second option, but the autogenerated stuff didn't like it. Tried to put (define-virtual impl_search (of-object "RBSource") (return-type "none") (parameters '("RBSourceSearch*" "search") '("const-char*" "cur_text" (null-ok) (default "\"\"")) '("const-char*" "new_text") ) ) in rb.defs. Stacktrace attached, along with plugin that caused the problem. You should comment out the Spytify stuff, because it wont work without a proper username and password.
Created attachment 144448 [details] plugin source
*** This bug has been marked as a duplicate of bug 613658 ***