ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [ethereal-dev] NBNS and SEG fault

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Fri, 17 Dec 1999 02:25:11 -0800
> Program received signal SIGSEGV, Segmentation fault.
> 0x402743da in undraw_cursor (text=0x817da08, absolute=0) at
> gtktext.c:5170
> 5170    gtktext.c: Datei oder Verzeichnis nicht gefunden.
> (gdb) bt
> #0  0x402743da in undraw_cursor (text=0x817da08, absolute=0) at
> gtktext.c:5170
> #1  0x4026eb5d in gtk_text_adjustment (adjustment=0x817e188,

	...

> #9  0x40274ca1 in recompute_geometry (text=0x817da08) at gtktext.c:5442
> #10 0x4026bbce in gtk_text_thaw (text=0x817da08) at gtktext.c:917

This looks like a GTK bug that was found by somebody on the GTK+ mailing
list; I've attached his patch - get GTK+ source (if you don't have it
already), patch "gtk/gtktext.c", and install from source.
*** gtktext.c.dist	Fri Sep  3 15:20:39 1999
--- gtktext.c	Tue Dec 14 01:17:32 1999
***************
*** 903,908 ****
--- 903,909 ----
    g_return_if_fail (GTK_IS_TEXT (text));
    
    text->freeze_count++;
+   undraw_cursor (text, FALSE);
  }
  
  void
***************
*** 917,922 ****
--- 918,924 ----
  	recompute_geometry (text);
  	gtk_widget_queue_draw (GTK_WIDGET (text));
        }
+   draw_cursor (text, FALSE);
  }
  
  void