changeset 4685:945247a8112f

Reproducer for menubar-x.c crash.
author Jerry James <james@xemacs.org>
date Wed, 02 Sep 2009 20:38:14 -0600
parents 15c42a3f4065
children cdabd56ce1b5
files tests/ChangeLog tests/reproduce-crashes.el
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/ChangeLog	Sat Aug 29 22:37:50 2009 +0800
+++ b/tests/ChangeLog	Wed Sep 02 20:38:14 2009 -0600
@@ -1,3 +1,7 @@
+2009-09-02  Jerry James  <james@xemacs.org>
+
+	* reproduce-crashes.el (12): New bug.
+
 2009-08-16  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* automated/lisp-tests.el (foo): 
--- a/tests/reproduce-crashes.el	Sat Aug 29 22:37:50 2009 +0800
+++ b/tests/reproduce-crashes.el	Wed Sep 02 20:38:14 2009 -0600
@@ -133,6 +133,16 @@
 ;;; ------------------------------------------------------------------
 ;;;; Bugs follow:
 
+(defbug 12 current
+  "Crash when clicking on the menubar, triggered by a Lisp error due to a
+version of truncate-string-to-width that does not take 5 parameters.
+Fatal error: assertion failed, file menubar-x.c, line 579, ABORT()
+Reported: https://bugzilla.redhat.com/show_bug.cgi?id=480845
+          <1251569781.4318.2.camel@mslap>"
+  (fset 'truncate-string-to-width
+	#'(lambda (str end-column &optional start-column padding) str))
+  (accelerate-menu))
+
 (defbug 11 fixed
   "Crash in search due to backward movement.
 Need Mule build with error checking in 21.5.28.