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
  • #17618

Closed (moved)
(moved)
Open
Created Nov 16, 2015 by Trac@tracbot

Segfault in tsocks_accept4() if called through syscall()

Hello,

There is a segfault in tsocks_accept4() when it is called through syscall() and accept4() isn't called first.

It's because tsocks_libc_accept4 is only initialized through accept4() and not syscall().

From what I can tell this is not only a problem with tsocks_accept4() but many other calls made through syscall().

My suggested fix is to replace the native tsocks calls in syscall.c with their libc equivalents. E.g. instead of calling tsocks_accept4(), calling accept4().

Whatever the best fix, I can provide a patch for it given the right direction.

Trac:
Username: crystalmaker

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