Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #16433

Closed (moved)
(moved)
Open
Created Jun 24, 2015 by cypherpunks@cypherpunks

infinite recursion in torsocks log timestamps

If libc calls open and close in order to deal with time zones for localtime, the torsocks interception of close may lead to infinite recursion: torsocks close tries to print a log message, which needs a timestamp, which it formats with localtime, which opens the tz database and calls close when done, which tries to print a log message, which needs a timestamp...

(NetBSD's libc is an example of such a libc. Note gmtime has the same property.)

The attached patch changes timestamps to be seconds since epoch minus leap seconds, i.e. a standard POSIX clock, in order to avoid this recursion.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking