From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25844 invoked by alias); 13 May 2006 10:06:40 -0000 Received: (qmail 25833 invoked by uid 22791); 13 May 2006 10:06:38 -0000 X-Spam-Check-By: sourceware.org Received: from mta09-winn.ispmail.ntl.com (HELO mtaout03-winn.ispmail.ntl.com) (81.103.221.49) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 13 May 2006 10:06:35 +0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20060513100633.MJVH27969.mtaout03-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Sat, 13 May 2006 11:06:33 +0100 Received: from dell.littlepinkcloud.COM ([82.6.101.32]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20060513100633.BUIT24467.aamtaout02-winn.ispmail.ntl.com@dell.littlepinkcloud.COM> for ; Sat, 13 May 2006 11:06:33 +0100 Received: from dell.littlepinkcloud.COM (localhost.localdomain [127.0.0.1]) by dell.littlepinkcloud.COM (8.13.5/8.13.5) with ESMTP id k4DE5tPp030714; Sat, 13 May 2006 10:05:55 -0400 Received: (from aph@localhost) by dell.littlepinkcloud.COM (8.13.5/8.13.5/Submit) id k4DE5rW5030709; Sat, 13 May 2006 10:05:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17509.59329.206688.755244@dell.pink> Date: Sat, 13 May 2006 10:06:00 -0000 From: Andrew Haley To: "Vivek Katakam" Cc: "John Love-Jensen" , gcc-help@gcc.gnu.org Subject: Re: Reg SEGV In-Reply-To: References: X-Mailer: VM 7.19 under Emacs 21.4.1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00128.txt.bz2 Vivek Katakam writes: > I am actually working on a proc file and when i am running it I am > getting the error. > > The code is in a file called vaprintf.c > > These are the Lines of code from where the error came. > /* Write out the message to the file. */ > va_start(args, input_msg); > #ifdef LINUX > va_copy(allargs,args); > #else > allargs=args; > #endif > vfprintf(output_file, input_msg, args); > va_end(args); > > fputc('\n', output_file); > fflush(output_file); > return_value = ML_LOGGING_MESSAGE_LOGGED; > > va_end(args); Why are you calling va_end() twice? This is wrong. You still haven't given us enough code. In particular you haven't show us the args that get passed to this function. You haven't even shown us all of this function. Andrew.