Opened 15 years ago
Last modified 15 years ago
#931 closed defect
Logging function may infinitely recursively calls itself on Windows Mobile (thanks Emil Sturniolo for the report) — at Version 1
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | major | Milestone: | release-1.4 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description (last modified by bennylp)
The pj_log() function, the main implementation of logging functionality in PJLIB, calls some other PJLIB APIs such as pj_gettimeofday(). The implementation of these other APIs may in turn call back the pj_log() function, causing infinite recursive calls.
This happens especially on Windows Mobile platform where PJLIB emulates the millisecond resolution of the time function (this feature was added in version 1.2 by ticket #764), depending on the timing when the logging was called.
The corresponding ticket for 1.0 branch is ticket #932