BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001079 [BusyBox] Networking Support crash random 11-01-06 01:42 11-29-06 06:40
Reporter jmunsin View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.00
Summary 0001079: telnetd quits on SIGPIPE
Description The line

w = write(ts->sockfd, ts->buf2 + ts->wridx2, maxlen);

in telnetd.c may cause a SIGPIPE. The default handler for
SIGPIPE is to terminate => telnetd quits. This is wrong,
at least if you are using telnetd in stand alone mode.

Reproducing this is a bit tricky (timing/load dependant?),
but my scripts can reproduce it after connecting 200-300 times.

A quick fix is to run signal(SIGPIPE, SIG_IGN);, but perhaps there
is a better way to handle this.
Additional Information
Attached Files

- Relationships

- Notes
(0001768)
vda
11-22-06 13:12

Added signal(SIGPIPE, SIG_IGN) among many other changes (standalone+inetd support, fixed IPv6 and IPv6+IPv4 support). Can you test current svn version?
 

- Issue History
Date Modified Username Field Change
11-01-06 01:42 jmunsin New Issue
11-01-06 01:42 jmunsin Status new => assigned
11-01-06 01:42 jmunsin Assigned To  => BusyBox
11-22-06 13:12 vda Note Added: 0001768
11-22-06 13:12 vda Status assigned => feedback
11-29-06 06:40 vda Status feedback => closed
11-29-06 06:40 vda Resolution open => fixed
11-29-06 06:40 vda Fixed in Version  => 1.2.x


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker