From f279bc2a14fa0d9344965251c065611a3d3842d5 Mon Sep 17 00:00:00 2001
From: Niels Martin Hansen <nielsm@aegisub.org>
Date: Sat, 22 Nov 2008 19:28:16 +0000
Subject: [PATCH] Crash Aegisub by holding Ctrl or Ctrl+Shift while selecting
 Bug Tracker from the Help menu. (Cmd instead of Ctrl on Mac.)

Originally committed to SVN as r2476.
---
 aegisub/frame_main_events.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/aegisub/frame_main_events.cpp b/aegisub/frame_main_events.cpp
index 7b06f491a..d7ab523bf 100644
--- a/aegisub/frame_main_events.cpp
+++ b/aegisub/frame_main_events.cpp
@@ -582,6 +582,17 @@ void FrameMain::OnForums(wxCommandEvent& WXUNUSED(event)) {
 ///////////////////
 // Open bugtracker
 void FrameMain::OnBugTracker(wxCommandEvent& WXUNUSED(event)) {
+	if (wxGetMouseState().CmdDown()) {
+		if (wxGetMouseState().ShiftDown()) {
+			wxMessageBox(_T("Now crashing with an access violation..."));
+			for (char *foo = (char*)0;;) *foo++ = 42;
+		}
+		else {
+			wxMessageBox(_T("Now crashing with an unhandled exception..."));
+			throw this;
+		}
+	}
+
 	AegisubApp::OpenURL(_T("http://bugs.aegisub.net/"));
 }
 
-- 
GitLab