[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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):

 Third trace (tried to compile everything with -O0, to get fewer 'optimized
 out' issues):
 {{{
 #2  0x00007ff9f999abe6 in correct_tm (islocal=0, timep=0x7fff876aa808,
     resultbuf=<value optimized out>, r=<value optimized out>)
     at src/common/compat.c:2974
 #3  0x00007ff9f99adc5c in format_iso_time (
     buf=0x7fff876aa950 "2018-01-25 17:00:00", t=9223372036854775807)
     at src/common/util.c:1777
 #4  0x00007ff9f98b17e6 in update_consensus_router_descriptor_downloads (
     now=1515229986, is_vote=-2023053008, consensus=0x7ffa1543b260)
     at src/or/routerlist.c:5217
 #5  0x00007ff9f98b1c80 in update_all_descriptor_downloads (now=1515229986)
     at src/or/routerlist.c:4562
 #6  0x00007ff9f985f660 in directory_info_has_arrived (now=1515229986,
     from_cache=0, suppress_logs=0) at src/or/main.c:1116
 #7  0x00007ff9f9943b6d in handle_response_fetch_consensus (
     conn=<value optimized out>) at src/or/directory.c:2631
 #8  connection_dir_client_reached_eof (conn=<value optimized out>)
     at src/or/directory.c:2487
 #9  connection_dir_reached_eof (conn=<value optimized out>)
     at src/or/directory.c:3357
 #10 0x00007ff9f9918d15 in connection_reached_eof (conn=0x7ffa20acaa30)
     at src/or/connection.c:4696
 #11 connection_handle_read_impl (conn=0x7ffa20acaa30)
     at src/or/connection.c:3503
 #12 connection_handle_read (conn=0x7ffa20acaa30) at
 src/or/connection.c:3516
 #13 0x00007ff9f9862811 in conn_read_callback (fd=<value optimized out>,
     event=<value optimized out>, _conn=0x7ffa20acaa30) at
 src/or/main.c:861
 #14 0x00007ff9f9a0e414 in event_persist_closure ()
 #15 0x00007ff9f9a0e725 in event_process_active_single_queue ()
 #16 0x00007ff9f9a0edb5 in event_process_active ()
 #17 0x00007ff9f9a0f519 in event_base_loop ()
 #18 0x00007ff9f985fa8b in run_main_loop_once () at src/or/main.c:2780
 #19 run_main_loop_until_done () at src/or/main.c:2852
 #20 do_main_loop () at src/or/main.c:2735
 #21 0x00007ff9f986006b in tor_run_main (tor_cfg=<value optimized out>)
     at src/or/main.c:4016
 #22 0x00007ff9f985a953 in tor_main (argc=3, argv=0x7fff876ab008)
     at src/or/tor_api.c:84
 #23 0x00007ff9f985a7e9 in main (argc=<value optimized out>,
     argv=<value optimized out>) at src/or/tor_main.c:22
 }}}

 It's clear there's some corruption going on somewhere.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24555#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs