How Can I Intentionally Crash One of My Applications?

toasty

New member
Member
Local time
9:59 AM
Messages
33
I'm doing some testing for the software company I work for and need to generate some .WER files. The "problem" is that my system is too stable :) Is there anyway to intentionally crash an application so it will generate a .WER file?

Ending the Process won't do it. And a BSOD isn't what I'm after. This is specifically to get to application crash files
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Athlon Phenom II X68gb
OS
Windows 7 Ultimate x64
CPU
Athlon Phenom II X6
Memory
8gb
Keyboard
None... wait. Yes!
Well you could go in the application folder and delete some of it's files. Would probably just give an error loading rather than crash. Which application do you have in mind?
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel(R) Core(TM) i5-3570K CPU OC@ 4.5GHZ Turbo8.00 GB DDR3 1600MhzMSI Gaming X GTX 1070
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dude Build
OS
Windows 10 Pro X64
CPU
Intel(R) Core(TM) i5-3570K CPU OC@ 4.5GHZ Turbo
Motherboard
MSI Z77A-G45 Gaming
Memory
8.00 GB DDR3 1600Mhz
Graphics Card(s)
MSI Gaming X GTX 1070
Sound Card
Realtek High Definition
Monitor(s) Displays
Dell S23O9W, HP L1710
Screen Resolution
DELL-1920 x 1080 HP-1280 x1024
Hard Drives
Crucial m4 256 SSD, WD 7200RPM 500GB WD 1TB
PSU
Seasonic X650 GOLD
Case
Zalman Z12
Cooling
Antec Kuhler 920
Keyboard
Logitech
Mouse
MSI DS100 Interceptor
Internet Speed
50 down and 5 up
Antivirus
MSE
Browser
Chrome, IE 11
Other Info
Logitech X-620 Speakers
I think the easiest way is for the developers to include an intentionally broken codepath in a debug build so that, when triggered by some rather obscure command will cause the program to fail. Something like this will do, if you're able to recompile it:

#if(DEBUG)
int dividend=1;
int divisor=0;
int result=dividend/divisor; //KABOOM here, division by zero
#endif

Of course, testing code like this should NEVER be released, just used for testing purposes internally.

Another way could be deleting dependencies while the program is running, say deleting or blocking data files it uses, but here the app may react gracefully if it's really so stable. Inyecting faulty code by means of replacing one of its DLLs is another option.
The most probable way I can think of without so much programming knowledge would be to use Process Explorer to tamper with its internal state. If you go to its process and see the list of open handles, you can force close on them, say on files, or most critically unload DLLs (PE will warn that it could unstabilize the program, but since it's the intended effect go ahead). It's really a trial and error, until you find a weak point that the devs haven't took into account.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
@Alejandro85, the software is already in production, so I don't want to bother the devs with including extra code (esp since it's the weekend) just so I can muck with the system. This is much more basic research on my part, so the exact application that crashes is irrelevant.

@Dude, really any program. Firefox, Chrome, Libreoffice, Irfanview, VideoLan...

All I really need is just to generate a WER file... preferably without borking my system in the process :)
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Athlon Phenom II X68gb
OS
Windows 7 Ultimate x64
CPU
Athlon Phenom II X6
Memory
8gb
Keyboard
None... wait. Yes!
Back
Top