This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/10457] gdb Segfaults due stack overflow (excessive usage of alloca)
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 8 Oct 2009 05:30:22 -0000
- Subject: [Bug symtab/10457] gdb Segfaults due stack overflow (excessive usage of alloca)
- References: <20090729053825.10457.zecke@selfish.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.