diff tests/reproduce-crashes.el @ 4685:945247a8112f

Reproducer for menubar-x.c crash.
author Jerry James <james@xemacs.org>
date Wed, 02 Sep 2009 20:38:14 -0600
parents ec1103d2c1c7
children ae862598ee56
line wrap: on
line diff
--- 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.