Reputation: 6546
I want to test something when apache crashes. The thing I want to test involves Windows asking me if it wants to send an error report. Any way to make Apache crash and ask me to send an error report on it?
Upvotes: 3
Views: 1070
Reputation: 43477
Take a look at Advanced Process Termination, especially its crash
options, those might do what you want (display the send error report message box), although I haven't tested it. It's worth a shot though.
Upvotes: 2
Reputation: 38775
Alex provides a possible answer here:
Microsoft Application Verifier [...] can do fault injection (Low Resource Simulation) that makes various API calls fail, at configurable rates. [...]
Upvotes: 0
Reputation: 870
I agree with the earlier idea that you should crash it using windows.
The basic of the apache is that for each connection request, it "fork" a new process. Since Windows don't have a built in "fork" functionality, it has to create a new process each request. As such, it can be glitchy especially if there are multiple processes running.
For me, everytime I "restart" apache on Windows while maintaining a connection, I get an "Illegal Operation" from Apache's process. Not sure that can be reproduced 100% of the time, but it does occur to me from time to time when I restart.
Upvotes: 0
Reputation: 38899
Just kill the apache instance running.
In windows: go to taskmanager>kill the process
In linux: pkill processname
Upvotes: 3