From owner-freebsd-current@FreeBSD.ORG Mon Jun 9 10:30:43 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4910837B401 for ; Mon, 9 Jun 2003 10:30:43 -0700 (PDT) Received: from mail.evip.pl (mail.evip.com.pl [212.244.157.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29A1D43F75 for ; Mon, 9 Jun 2003 10:30:42 -0700 (PDT) (envelope-from w@evip.pl) Received: from w by mail.evip.pl with local (Exim 4.10) id 19PQSN-000PYg-00 for current@freebsd.org; Mon, 09 Jun 2003 19:29:19 +0200 Date: Mon, 9 Jun 2003 19:29:19 +0200 From: Wiktor Niesiobedzki To: current@freebsd.org Message-ID: <20030609172919.GE48387@mail.evip.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Stack and alloca(3) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 17:30:43 -0000 Hi hackers, After todays (Mon Jun 9 09:32:45) buildworld, ppp(8) stoped to service my PPPoE connection. After investigation I found, that the problem lies in lines 519-630 of ether.c. The problem is, that after memory is allocated with alloca(3), whatever is sprintf-ed to that frame, is lost. As a quick hack I changed the alloca with malloc(3) and ppp started to work correctly (I know, it is very nasty hack). I failed to tigger the bug in any of my test programs. Anyone is willing to help me to find the root cause of this bug? Note: world builded on 6 Jun was working correctly, so it is something in rather short timeframe. Cheers, Wiktor Niesiobedzki