From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 3 21:30:19 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA0C316A543 for ; Thu, 3 Aug 2006 21:30:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2928E43D53 for ; Thu, 3 Aug 2006 21:30:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k73LUFFN029770 for ; Thu, 3 Aug 2006 21:30:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k73LUFv8029767; Thu, 3 Aug 2006 21:30:15 GMT (envelope-from gnats) Resent-Date: Thu, 3 Aug 2006 21:30:15 GMT Resent-Message-Id: <200608032130.k73LUFv8029767@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Thompson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 659CB16A4E0 for ; Thu, 3 Aug 2006 21:25:07 +0000 (UTC) (envelope-from thompsa@fud.org.nz) Received: from grunt8.ihug.co.nz (grunt8.ihug.co.nz [203.109.254.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id A891843D5F for ; Thu, 3 Aug 2006 21:25:03 +0000 (GMT) (envelope-from thompsa@fud.org.nz) Received: from 203-109-251-39.static.bliink.ihug.co.nz (heff.fud.org.nz) [203.109.251.39] by grunt8.ihug.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1G8kgg-0001Jb-00; Fri, 04 Aug 2006 09:25:02 +1200 Received: by heff.fud.org.nz (Postfix, from userid 1001) id 364381CC22; Fri, 4 Aug 2006 09:24:36 +1200 (NZST) Message-Id: <20060803212436.364381CC22@heff.fud.org.nz> Date: Fri, 4 Aug 2006 09:24:36 +1200 (NZST) From: Andrew Thompson To: FreeBSD-gnats-submit@FreeBSD.org Cc: infofarmer@FreeBSD.org Subject: ports/101335: mcabber fails to connect X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrew Thompson List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 21:30:19 -0000 >Number: 101335 >Category: ports >Synopsis: mcabber fails to connect >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 03 21:30:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Andrew Thompson >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: System: FreeBSD heff.fud.org.nz 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri May 19 17:00:14 NZST 2006 thompsa@heff.fud.org.nz:/usr/obj/usr/src/sys/GENERIC i386 >Description: On two seperate machines running 6.1-STABLE the mcabber client stops after "Communication with the server established" and then times out. I have a workaround patch below that lets me connect, im am unsure if its a problem with the mcabber client or a race condition in the FreeBSD sockets code. Here is an ascii packet dump for the unpatched binary, as you can see its missing the xml stream header. ---8<---8<--- . . xxxmcabberxxx Invalid Namespace ---8<---8<--- And the ascii packet dump after the sleep was put in after the mcabber socket connect. ---8<---8<--- xxx xxx xxxmcabberxxx ---8<---8<--- >How-To-Repeat: >Fix: This workaround gets it going for me --- libjabber/jconn.c.orig Wed Jun 28 06:58:18 2006 +++ libjabber/jconn.c Fri Aug 4 08:36:00 2006 @@ -162,6 +162,9 @@ } change_socket_to_blocking(j->fd); + /* XXX why do we need this?? */ + sleep (1); + j->state = JCONN_STATE_CONNECTED; STATE_EVT(JCONN_STATE_CONNECTED) >Release-Note: >Audit-Trail: >Unformatted: