views:

115

answers:

3

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?

Thanks

+4  A: 

Just kill the apache instance running.

In windows: go to taskmanager>kill the process

In linux: pkill processname

zengr
+1, this is more informative.
karim79
I want windows to display send error report.
JPro
-1: Killing the process is not the same as causing an exception or simulating a crash.
JYelton
+1  A: 

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.

IVlad
A: 

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.

Daniel