Bug 543968

Summary: Connecting to tcpmux service causes SIGSEGV in xinetd
Product: [Fedora] Fedora Reporter: Vsevolod Volkov <home+fedora>
Component: xinetdAssignee: Jan Zeleny <jzeleny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 12CC: jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 2.3.14-29.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 801507 (view as bug list) Environment:
Last Closed: 2010-01-22 22:30:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 801507    

Description Vsevolod Volkov 2009-12-03 15:44:32 UTC
Description of problem:
Connecting to tcpmux service causes SIGSEGV in xinetd.


Version-Release number of selected component (if applicable):
2:2.3.14-28.fc12


How reproducible:
Enable tcpmux service. Create any service with type 'TCPMUX UNLISTED' and without port entry. Restart xinetd. Connect to port 1 at the host.

Steps to Reproduce:
1. Enable tcpmux service in /etc/xinetd.d/tcpmux-server.
2. Create service in /etc/xinetd.d/uptime:
   service uptime
   {
	type		= TCPMUX UNLISTED
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= nobody
	server		= /usr/bin/uptime
	disable		= no
   }
3. Restart xinetd.
4. Connect to port 1:
   telnet localhost 1

Actual results:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

Expected results:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
uptime
 14:55:54 up 1 day, 27 min,  7 users,  load average: 0.56, 0.81, 0.86
Connection closed by foreign host.

Additional info:
/var/log/messages contains the following lines:
Dec  3 14:55:04 hostname xinetd[30173]: START: tcpmux-server pid=7476 from=...
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {general_handler} (7476) Unexpected signal: 11 (Segmentation fault)
Dec  3 14:55:04 hostname xinetd[7476]: 7476 {bad_signal} Received 10 signals in 1 seconds. Exiting...
Dec  3 14:55:04 hostname xinetd[30173]: EXIT: tcpmux-server status=1 pid=7476 duration=0(sec)

Comment 1 Fedora Update System 2010-01-21 09:57:29 UTC
xinetd-2.3.14-29.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/xinetd-2.3.14-29.fc12

Comment 2 Fedora Update System 2010-01-22 22:29:59 UTC
xinetd-2.3.14-29.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.