Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #6225

Closed (moved)
Open
Opened Jun 23, 2012 by George Kadianakis@asn

"get_string_from_pipe: Assertion len>0 failed; aborting." in log_from_pipe() for tor-fw-helper

The changes of #5557 (moved) introduced this assertion failure when reading the tor-fw-helper exit status in tor_check_port_forwarding().

I think the problem was introduced because the new format_helper_exit_status() appends a newline and a NUL to the message. When fgets() in get_string_from_pipe() loops and reads that message, it first stops reading at the newline, and then on the second iteration it reads the NUL which is a zero-length string.

Maybe format_helper_exit_status() should return the length of useful data it wrote, and then only write() that many bytes to stdout in tor_spawn_background()?

(You can reproduce this by using PortForwarding with a wrong PortForwardingHelper path.)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: 0.2.3.x-final
Milestone
Tor: 0.2.3.x-final
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#6225