From owner-freebsd-current Fri Oct 22 16: 9:57 1999 Delivered-To: freebsd-current@freebsd.org Received: from smtp5.mindspring.com (smtp5.mindspring.com [207.69.200.82]) by hub.freebsd.org (Postfix) with ESMTP id A7A3E14CB6 for ; Fri, 22 Oct 1999 16:09:52 -0700 (PDT) (envelope-from tomdean@ix.netcom.com) Received: from ix.netcom.com (sil-wa17-24.ix.netcom.com [207.93.156.24]) by smtp5.mindspring.com (8.8.5/8.8.5) with ESMTP id TAA02983 for ; Fri, 22 Oct 1999 19:09:49 -0400 (EDT) Received: (from tomdean@localhost) by ix.netcom.com (8.9.3/8.8.8) id QAA77047; Fri, 22 Oct 1999 16:09:44 -0700 (PDT) (envelope-from tomdean@ix.netcom.com) Date: Fri, 22 Oct 1999 16:09:44 -0700 (PDT) Message-Id: <199910222309.QAA77047@ix.netcom.com> X-Authentication-Warning: celebris.tddhome: tomdean set sender to tomdean@ix.netcom.com using -f From: Thomas Dean To: freebsd-current@FreeBSD.ORG Subject: Profiling Problem Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am running SMP 4.0-current as of Oct 18. I attempted to profile an application, using 'gcc -pg ...'. Compiling/linking worked OK. When I attempt to run the application, it reports a stack overflow. gschem and libgeda.so.5 were built with 'gcc -pg ...'. # gschem ERROR: Stack overflow When I do this with a smaller application, it works OK. What can I do to remedy this situation? tomdean # limits -B Resource limits (current): cputime infinity secs filesize infinity kb datasize 524288 kb stacksize 65536 kb <== kernel max? coredumpsize infinity kb memoryuse infinity kb memorylocked infinity kb maxprocesses 819 openfiles 1640 sbsize infinity bytes # ldd gschem gschem: libguile.so.4 => /usr/local/lib/libguile.so.4 (0x280d7000) libreadline.so.4 => /usr/lib/libreadline.so.4 (0x28136000) libncurses.so.5 => /usr/lib/libncurses.so.5 (0x2817d000) libm.so.2 => /usr/lib/libm.so.2 (0x281bb000) libgeda.so.5 => /usr/home/tomdean/cad/gEDA/lib/libgeda.so.5(0x281d7000) libgtk12.so.1 => /usr/X11R6/lib/libgtk12.so.1 (0x281fe000) libgdk12.so.1 => /usr/X11R6/lib/libgdk12.so.1 (0x2830d000) libgmodule12.so.1 => /usr/local/lib/libgmodule12.so.1 (0x2833d000) libglib12.so.1 => /usr/local/lib/libglib12.so.1 (0x28340000) libintl.so.1 => /usr/local/lib/libintl.so.1 (0x28360000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28364000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x2836e000) libc.so.4 => /usr/lib/libc.so.4 (0x28404000) libc.so.3 => /usr/lib/libc.so.3 (0x28489000) I don't understand why the two libc entries. libc.so is linked to libc.so.4. None of the Makefiles calls for libc.so.3, only libc.so. # gcc --version egcs-2.91.66 # gmake --version GNU Make version 3.77, by Richard Stallman and Roland McGrath. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message