Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4a968713425e8630a166d1026fe5520210fb3cd9
Ticket: 3544685fffffffffffffffffffffffffffffffff
Threaded build failures on OpenBSD-current
User & Date: ferrieux on 2012-07-21 18:04:50
Changes

  1. icomment:
    Uh, sorry, but it's not testing exactly the same thing ;)
    In the ktrace you sent me, we see that Tcl is basically doing:
    
       gettimeofday(T1)
       clock_gettime(REALTIME,NOW)
       pthread_cond_timedwait(NOW+100ms)
       gettimeofday(T2)
    
       /* Oh ! T2-T1 is much bigger than 100ms !!! */
    
    While it seems that your program uses clock_gettime(REALTIME) instead of gettimeofday (=> own dogfood)
    
    And with NS, it is testing yet another thing (discrepancies between the realtime clock and relative timers). If the bug is in the time comparison inside pthread_cond_timedwait, I don't expect such a discrepancy to exist; additionally, such an obvious shift between the two clocks would have been noticed elsewhere, not confined to pthread as the bug seems to be.
    
    Can you please retry a minimal test along the above lines ? Also, using the same order of magnitude (100ms) and many runs in a row could help reproduce the issue.
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"