Re: XtRemoveTimeOut() with value of 0 accvios under 7.3-2, but not



In article <1147298610.745795.260710@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, davidc@xxxxxxxxxxxx writes:
Based upon my reading of XtRemoveTimeout() (regulat X-Windows stuff),
the program is doing something it shouldn't. The argument to
XtRemoveTimeout is a TimerID, and shouldn't be 0. It should be a
non-zero value returned from XtAppAddTimeOut(), where a 0 return
indicates that the timeout was not set (and therefore there is nothing
to remove).

That being said, I wouldn't expect XtRemoveTimeout to crash on a value
of 0, either...

Yes, zero shouldn't crash it, but the crash may not be specific to VMS.
A Google search turned up a similar crash on IRIS systems back in 2001.
Zero was also known to cause crashes way back in X11R3. All the code I
have ever seen which uses XtAppAddTimeOut either validates the timer
or has a safety check for zero.


George Cook
WVNET
.



Relevant Pages

  • Re: XFS: how to NOT null files on fsck?
    ... >>extents were unwritten. ... There is another solution - zero blocks when freeing them. ... block after a crash, which means you destroy less data. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: USB OUT operation with zero length
    ... I have also tried to specify a valid buffer pointer, ... set pmdl to NULL, and set TransferBufferLength to zero, but still it crash. ...
    (microsoft.public.development.device.drivers)
  • Re: acceptable use of goto?
    ... possibility for a caller to crash the system by calling it with a zero ... A set of test compiles and assembly assemblies showed that in my ... but you fail the design admission test. ... does not crash or exhibit UDB ...
    (comp.lang.c)
  • Re: [RFC/PATCH] revoke/frevoke system calls
    ... let it crash? ... substitute the zero page ... make the mapping private and touch it as if C-O-W happened ...
    (Linux-Kernel)
  • Re: Where to start?
    ... - e.g. rand()) by zero. ... Never trust ... Not crash, halt the program at the incriminated line, allowing you to ...
    (rec.games.roguelike.development)