hidden hit counter
Help!

Can User Mode software crash Windows XP?

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussion RSS
Next:  Outlook Express 6.0  
Author Message
Alain Dekker
External


Since: Jun 19, 2005
Posts: 18



PostPosted: Tue Oct 27, 2009 9:10 am    Post subject: Can User Mode software crash Windows XP?
Archived from groups: microsoft>public>windowsxp>general (more info?)

Apart from malicious software (eg. virus) or a device driver (which has
access to the kernel layer), is it possible for a standard application
written in C++ / C#.NET / VB / Delphi / etc to crash and/or corrupt Windows
XP?

We had one report from a customer who said that due to an accidental coding
bug, they saw a "divide by zero" error which not only crashed our software
but immediately afterwards Windows rebooted and then failed to restarted
(kept locking up and rebooting).

If the report is accurate, can user mode level programs do this? Is there
any way to prevent this?

As a final note, I reproduced the "dive by zero" crash and fixed it.
Certainly didn't crash my computer, though. In fact, I've never seen Windows
XP do what is reported here.

Thanks,
Alain
Back to top
smlunatick
External


Since: Apr 19, 2007
Posts: 195



PostPosted: Tue Oct 27, 2009 9:10 am    Post subject: Re: Can User Mode software crash Windows XP? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 27, 12:18 pm, "Alain Dekker" <abdek....TakeThisOut@NOSPAM.fsmail.net>
wrote:
> Apart from malicious software (eg. virus) or a device driver (which has
> access to the kernel layer), is it possible for a standard application
> written in C++ / C#.NET / VB / Delphi / etc to crash and/or corrupt Windows
> XP?
>
> We had one report from a customer who said that due to an accidental coding
> bug, they saw a "divide by zero" error which not only crashed our software
> but immediately afterwards Windows rebooted and then failed to restarted
> (kept locking up and rebooting).
>
> If the report is accurate, can user mode level programs do this? Is there
> any way to prevent this?
>
> As a final note, I reproduced the "dive by zero" crash and fixed it.
> Certainly didn't crash my computer, though. In fact, I've never seen Windows
> XP do what is reported here.
>
> Thanks,
> Alain

Everything is possible. No two Windows XP are exactly the same. You
might be able to reproduce the error but you probably do not have the
same XP set up as the problematic PC.
Back to top
HeyBub
External


Since: Mar 13, 2005
Posts: 691



PostPosted: Tue Oct 27, 2009 9:10 am    Post subject: Re: Can User Mode software crash Windows XP? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Alain Dekker wrote:
> Apart from malicious software (eg. virus) or a device driver (which
> has access to the kernel layer), is it possible for a standard
> application written in C++ / C#.NET / VB / Delphi / etc to crash
> and/or corrupt Windows XP?
>
> We had one report from a customer who said that due to an accidental
> coding bug, they saw a "divide by zero" error which not only crashed
> our software but immediately afterwards Windows rebooted and then
> failed to restarted (kept locking up and rebooting).
>
> If the report is accurate, can user mode level programs do this? Is
> there any way to prevent this?
>
> As a final note, I reproduced the "dive by zero" crash and fixed it.
> Certainly didn't crash my computer, though. In fact, I've never seen
> Windows XP do what is reported here.
>

XP, unlike Win98, is built on the NT model. As such, applications are
rigorously segregated from the operating system and a crash of an
application program should not affect the OS. An application program causing
a system crash is about as likely as a piece of software causing a hardware
failure. In theory, it IS possible; in practice, extremely doubtful.

I'd follow the medical school maxim: "If you hear hoofbeats, think horses,
not Zebras."
Back to top
DL
External


Since: Apr 17, 2009
Posts: 46



PostPosted: Tue Oct 27, 2009 10:10 am    Post subject: Re: Can User Mode software crash Windows XP? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The users report is inaccurate or missing some vital detail

I make no comment on your ommission of a default err handler within your app
Smile

"Alain Dekker" <abdekker.DeleteThis@NOSPAM.fsmail.net> wrote in message
news:OwnqO%23vVKHA.1792@TK2MSFTNGP04.phx.gbl...
> Apart from malicious software (eg. virus) or a device driver (which has
> access to the kernel layer), is it possible for a standard application
> written in C++ / C#.NET / VB / Delphi / etc to crash and/or corrupt
> Windows XP?
>
> We had one report from a customer who said that due to an accidental
> coding bug, they saw a "divide by zero" error which not only crashed our
> software but immediately afterwards Windows rebooted and then failed to
> restarted (kept locking up and rebooting).
>
> If the report is accurate, can user mode level programs do this? Is there
> any way to prevent this?
>
> As a final note, I reproduced the "dive by zero" crash and fixed it.
> Certainly didn't crash my computer, though. In fact, I've never seen
> Windows XP do what is reported here.
>
> Thanks,
> Alain
>
Back to top
Alain Dekker
External


Since: Jun 19, 2005
Posts: 18



PostPosted: Tue Oct 27, 2009 10:10 am    Post subject: Re: Can User Mode software crash Windows XP? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You might be right that the report is missing some vital piece of info, but
the question is: Is it even possible for badly written code to corrupt
and/or crash Windows itself? I'm only calling standard Windows APIs in C++ /
Delphi so I hope not!

And yes, the programming bug and lack of default error handler was my bad...

Alain

"DL" <notvalid.RemoveThis@spoofaddress.co.uk> wrote in message
news:O882dZwVKHA.4004@TK2MSFTNGP05.phx.gbl...
> The users report is inaccurate or missing some vital detail
>
> I make no comment on your ommission of a default err handler within your
> app Smile
>
> "Alain Dekker" <abdekker.RemoveThis@NOSPAM.fsmail.net> wrote in message
> news:OwnqO%23vVKHA.1792@TK2MSFTNGP04.phx.gbl...
>> Apart from malicious software (eg. virus) or a device driver (which has
>> access to the kernel layer), is it possible for a standard application
>> written in C++ / C#.NET / VB / Delphi / etc to crash and/or corrupt
>> Windows XP?
>>
>> We had one report from a customer who said that due to an accidental
>> coding bug, they saw a "divide by zero" error which not only crashed our
>> software but immediately afterwards Windows rebooted and then failed to
>> restarted (kept locking up and rebooting).
>>
>> If the report is accurate, can user mode level programs do this? Is there
>> any way to prevent this?
>>
>> As a final note, I reproduced the "dive by zero" crash and fixed it.
>> Certainly didn't crash my computer, though. In fact, I've never seen
>> Windows XP do what is reported here.
>>
>> Thanks,
>> Alain
>>
>
>
Back to top
Alain Dekker
External


Since: Jun 19, 2005
Posts: 18



PostPosted: Tue Oct 27, 2009 11:10 am    Post subject: Re: Can User Mode software crash Windows XP? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

True. I'll try and set up a system like the customer reported and see if
this problems crashes the computer tomorrow.

However, your assertion that "anything is possible" is a bit worrying! I
thought just calling the odd Windows API should not be able to crash or
corrupt Windows itself, even if the programmer has done a bad (not
malicious) job.

Thanks

"smlunatick" <yveslec.DeleteThis@gmail.com> wrote in message
news:5a9f11ac-454e-4229-8529-c712816e1f6e@l33g2000vbi.googlegroups.com...
On Oct 27, 12:18 pm, "Alain Dekker" <abdek....DeleteThis@NOSPAM.fsmail.net>
wrote:
> Apart from malicious software (eg. virus) or a device driver (which has
> access to the kernel layer), is it possible for a standard application
> written in C++ / C#.NET / VB / Delphi / etc to crash and/or corrupt
> Windows
> XP?
>
> We had one report from a customer who said that due to an accidental
> coding
> bug, they saw a "divide by zero" error which not only crashed our software
> but immediately afterwards Windows rebooted and then failed to restarted
> (kept locking up and rebooting).
>
> If the report is accurate, can user mode level programs do this? Is there
> any way to prevent this?
>
> As a final note, I reproduced the "dive by zero" crash and fixed it.
> Certainly didn't crash my computer, though. In fact, I've never seen
> Windows
> XP do what is reported here.
>
> Thanks,
> Alain

Everything is possible. No two Windows XP are exactly the same. You
might be able to reproduce the error but you probably do not have the
same XP set up as the problematic PC.
Back to top
DL
External


Since: Apr 17, 2009
Posts: 46



PostPosted: Tue Oct 27, 2009 11:10 am    Post subject: Re: Can User Mode software crash Windows XP? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Not in my experience, but with a pc virtually anything is possible be it
software or hw related

"Alain Dekker" <abdekker DeleteThis @NOSPAM.fsmail.net> wrote in message
news:%23i7fHxwVKHA.1268@TK2MSFTNGP04.phx.gbl...
> You might be right that the report is missing some vital piece of info,
> but the question is: Is it even possible for badly written code to corrupt
> and/or crash Windows itself? I'm only calling standard Windows APIs in C++
> / Delphi so I hope not!
>
> And yes, the programming bug and lack of default error handler was my
> bad...
>
> Alain
>
> "DL" <notvalid DeleteThis @spoofaddress.co.uk> wrote in message
> news:O882dZwVKHA.4004@TK2MSFTNGP05.phx.gbl...
>> The users report is inaccurate or missing some vital detail
>>
>> I make no comment on your ommission of a default err handler within your
>> app Smile
>>
>> "Alain Dekker" <abdekker DeleteThis @NOSPAM.fsmail.net> wrote in message
>> news:OwnqO%23vVKHA.1792@TK2MSFTNGP04.phx.gbl...
>>> Apart from malicious software (eg. virus) or a device driver (which has
>>> access to the kernel layer), is it possible for a standard application
>>> written in C++ / C#.NET / VB / Delphi / etc to crash and/or corrupt
>>> Windows XP?
>>>
>>> We had one report from a customer who said that due to an accidental
>>> coding bug, they saw a "divide by zero" error which not only crashed our
>>> software but immediately afterwards Windows rebooted and then failed to
>>> restarted (kept locking up and rebooting).
>>>
>>> If the report is accurate, can user mode level programs do this? Is
>>> there any way to prevent this?
>>>
>>> As a final note, I reproduced the "dive by zero" crash and fixed it.
>>> Certainly didn't crash my computer, though. In fact, I've never seen
>>> Windows XP do what is reported here.
>>>
>>> Thanks,
>>> Alain
>>>
>>
>>
>
>
Back to top
Alain Dekker
External


Since: Jun 19, 2005
Posts: 18



PostPosted: Tue Oct 27, 2009 11:10 am    Post subject: Re: Can User Mode software crash Windows XP? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Surprised) Thanks, sensible advice. I also find it hard to believe my code somehow
corrupted Windows. In our experience, if a customer has done something major
bad (maybe ram the machine into a wall when using a forklift truck) then
they'll try and cover their trails and claim the "machine just went bang" if
they think they can get away with it.


"HeyBub" <heybub.TakeThisOut@gmail.com> wrote in message
news:%23UX%23H9wVKHA.4284@TK2MSFTNGP06.phx.gbl...
> Alain Dekker wrote:
>> Apart from malicious software (eg. virus) or a device driver (which
>> has access to the kernel layer), is it possible for a standard
>> application written in C++ / C#.NET / VB / Delphi / etc to crash
>> and/or corrupt Windows XP?
>>
>> We had one report from a customer who said that due to an accidental
>> coding bug, they saw a "divide by zero" error which not only crashed
>> our software but immediately afterwards Windows rebooted and then
>> failed to restarted (kept locking up and rebooting).
>>
>> If the report is accurate, can user mode level programs do this? Is
>> there any way to prevent this?
>>
>> As a final note, I reproduced the "dive by zero" crash and fixed it.
>> Certainly didn't crash my computer, though. In fact, I've never seen
>> Windows XP do what is reported here.
>>
>
> XP, unlike Win98, is built on the NT model. As such, applications are
> rigorously segregated from the operating system and a crash of an
> application program should not affect the OS. An application program
> causing a system crash is about as likely as a piece of software causing a
> hardware failure. In theory, it IS possible; in practice, extremely
> doubtful.
>
> I'd follow the medical school maxim: "If you hear hoofbeats, think horses,
> not Zebras."
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussion All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum