From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6258 invoked by alias); 8 Jan 2008 20:24:50 -0000 Received: (qmail 6096 invoked by uid 48); 8 Jan 2008 20:24:08 -0000 Date: Tue, 08 Jan 2008 21:22:00 -0000 Message-ID: <20080108202408.6095.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/34716] application segfaults when compiled with -O2, but works well with -O1 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00789.txt.bz2 ------- Comment #5 from pinskia at gcc dot gnu dot org 2008-01-08 20:24 ------- Can you run your program under gdb and then give the backtrace? Are you sure that the ioctl does not keep around the buffer so when you return from main, the buffer becomes invalid? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34716