This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/10457] gdb Segfaults due stack overflow (excessive usage of alloca)


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]