git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: SEGV in git-apply

From
Martin Waitz <tali@admingilde.org>
Date
Jan 20, 2007, 18:36 UTC
Message-ID
<20070120183615.GA6459@admingilde.org>
In-Reply-To
<Pine.LNX.4.63.0701200312000.22628@wbgn013.biozentrum.uni-wuerzburg.de>
hoi :)
On Sat, Jan 20, 2007 at 03:14:46AM +0100, Johannes Schindelin wrote:
> But without that patch I cannot tell.
patch was this one:

------------------ 8< ------------------------------- --- src/callbacks.cc 2006-11-02 10:16:50.000000000 +0100 +++ src/callbacks.cc 2007-01-17 20:47:00.000000000 +0100

@@ -12890,12 +12890,11 @@ void on_unknown_edit_optionmenu_sign_cha
 	}
 }
 
-gboolean on_key_press_event(GtkWidget*, GdkEventKey *event, gpointer) {
+gboolean on_key_press_event(GtkWidget *o, GdkEventKey *event, gpointer) {
 	if(!GTK_WIDGET_HAS_FOCUS(expression) && (event->keyval > GDK_Hyper_R || event->keyval < GDK_Shift_L)) {
-		bool return_val = FALSE;
 		GtkWidget *w = gtk_window_get_focus(GTK_WINDOW(glade_xml_get_widget (main_glade, "main_window")));
-		if(w) g_signal_emit_by_name((gpointer) w, "key_press_event", event, &return_val);
-		if(return_val) return TRUE;
+		if(gtk_bindings_activate_event(GTK_OBJECT(o), event)) return TRUE;
+		if(w && gtk_bindings_activate_event(GTK_OBJECT(w), event)) return TRUE;
 		focus_keeping_selection();
 	}
 	return FALSE;
------------------ 8< -------------------------------

git-apply inside the "src" directory segfaulted.
-- 
Martin Waitz
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 7 in “SEGV in git-apply”
  1. Martin WaitzJan 20, 2007
  2. Johannes SchindelinJan 20, 2007
  3. Martin WaitzJan 20, 2007
  4. apply --cached: fix crash in subdirectoryJohannes Schindelin, Jan 21, 2007
  5. Martin WaitzJan 21, 2007
  6. Rogan DawesJan 21, 2007
  7. Johannes SchindelinJan 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.