From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18544 invoked by alias); 15 May 2012 17:54:11 -0000 Received: (qmail 18530 invoked by uid 22791); 15 May 2012 17:54:09 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 May 2012 17:53:55 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 0B4FD1519585 for ; Tue, 15 May 2012 18:53:54 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LxEAiLz2ot7U; Tue, 15 May 2012 18:53:52 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1001586] BSD nc_test_slave chrashes X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: TCP/IP X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ilijak@siva.com.mk X-Bugzilla-Status: NEW X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 15 May 2012 17:54:00 -0000 Message-Id: <20120515175352.6751E151954C@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg00919.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001586 --- Comment #4 from Ilija Kocho 2012-05-15 18:53:49 BST --- (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > > That doesn't sound right. [snip] > > > > Sorry Jifl, FAOD, I couldn't find out whether this refers to my comment or is > > just a pretext for your next sentence (here snipped out)? Pse. clarify. > > I mean that if the BSD stack can crash due to a particular buffer size in > nc_test_slave, then there is a problem in the BSD stack that needs fixing, not > a problem in the test. > > But then, it does depend on exactly what you mean by "crashing". I wanted to say that the test crashes not BSD stack./in_buf[]/ (/out_buf[]/) is not a buffer under control of the stack but a store for incoming (outgoing) messages. Since buffer size is 8 KiB and some tests involve messages of 10240 bytes my conclusion is that overflow occurs. Dependent on what gets corrupted program may crash, stale or... sometimes it seems that program works fine - the test reaches the end. I have experienced the same _instability_ (originally) with lwIP (Bug 1001344) The proposed buffer enlargement _stabilizes_ both BSD and lwIP instances of nc_test_slave. Ilija -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.