From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18717 invoked by alias); 8 Oct 2009 05:30:23 -0000 Received: (qmail 18700 invoked by uid 48); 8 Oct 2009 05:30:22 -0000 Date: Thu, 08 Oct 2009 05:30:00 -0000 Message-ID: <20091008053022.18699.qmail@sourceware.org> From: "ppluzhnikov at google dot com" To: gdb-prs@sourceware.org In-Reply-To: <20090729053825.10457.zecke@selfish.org> References: <20090729053825.10457.zecke@selfish.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug symtab/10457] gdb Segfaults due stack overflow (excessive usage of alloca) X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00030.txt.bz2 ------- Additional Comments From ppluzhnikov at google dot com 2009-10-08 05:30 ------- Following Holger's directions and additional directions here: http://trac.webkit.org/wiki/BuildingQtOnLinux#DependenciesforspecificLinuxdistributions I built debug version of Webkit with: WebKitTools/Scripts/build-webkit --qt --debug on Fedora 11/i686 and tested it with GDB from CVS Head, which did not crash with (default) 'ulimit -s' of 10240 The resulting libQtWebKit.so.4.5.2 is 472223763 bytes. It does crash with 6M stack though. The problem is alloca in elf_symtab_read in a loop. Patch sent: http://sourceware.org/ml/gdb-patches/2009-10/msg00163.html With the patch, GDB runs in 16K stack (ulimit -s 16) on this test case without any problems. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at sourceware dot|ppluzhnikov at google dot |org |com Status|WAITING |ASSIGNED Ever Confirmed| |1 http://sourceware.org/bugzilla/show_bug.cgi?id=10457 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.