[tor-bugs] #24555 [Core Tor/Tor]: Bug: tor_gmtime_r overflow - gmtime(9223372036854775807) failed with error No error

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jan 6 05:04:33 UTC 2018


#24555: Bug: tor_gmtime_r overflow - gmtime(9223372036854775807) failed with error
No error
-------------------------------------------------+-------------------------
 Reporter:  s7r                                  |          Owner:  (none)
     Type:  defect                               |         Status:  new
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.3.x-final
Component:  Core Tor/Tor                         |        Version:  Tor:
                                                 |  unspecified
 Severity:  Normal                               |     Resolution:
 Keywords:  integer-overflow time-overflow tor-  |  Actual Points:
  relay 2038-problem                             |
Parent ID:  #18480                               |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by arma):

 Second coredump, this time with the stuff in src/or/ compiled with -O0.

 {{{
 #2  0x00007f7616333be6 in correct_tm (islocal=0, timep=0x7fffc58ae128,
     resultbuf=<value optimized out>, r=<value optimized out>)
     at src/common/compat.c:2974
 #3  0x00007f7616346c5c in format_iso_time (
     buf=0x7fffc58ae270 "2018-01-28 19:00:00", t=9223372036854775807)
     at src/common/util.c:1777
 #4  0x00007f761624a7e6 in update_consensus_router_descriptor_downloads (
     now=1515214793, is_vote=-980753840, consensus=0x7f7618acd450)
     at src/or/routerlist.c:5217
 #5  0x00007f761624ac80 in update_all_descriptor_downloads (now=1515214793)
     at src/or/routerlist.c:4562
 #6  0x00007f76161f6cb5 in launch_descriptor_fetches_callback
 (now=1515214793,
     options=<value optimized out>) at src/or/main.c:1701
 #7  0x00007f7616215bc0 in periodic_event_dispatch (fd=<value optimized
 out>,
     what=<value optimized out>, data=0x7f7616695160) at
 src/or/periodic.c:52
 #8  0x00007f76163a77d5 in event_process_active_single_queue ()
 #9  0x00007f76163a7db5 in event_process_active ()
 #10 0x00007f76163a8519 in event_base_loop ()
 #11 0x00007f76161f8a8b in run_main_loop_once () at src/or/main.c:2780
 #12 run_main_loop_until_done () at src/or/main.c:2852
 #13 do_main_loop () at src/or/main.c:2735
 #14 0x00007f76161f906b in tor_run_main (tor_cfg=<value optimized out>)
     at src/or/main.c:4016
 #15 0x00007f76161f3953 in tor_main (argc=3, argv=0x7fffc58ae6b8)
     at src/or/tor_api.c:84
 #16 0x00007f76161f37e9 in main (argc=<value optimized out>,
     argv=<value optimized out>) at src/or/tor_main.c:22
 }}}

 "is_vote=-980753840". Sure looks like something is smashing something.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24555#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list