Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 1999 16:09:44 -0700 (PDT)
From:      Thomas Dean <tomdean@ix.netcom.com>
To:        freebsd-current@FreeBSD.ORG
Subject:   Profiling Problem
Message-ID:  <199910222309.QAA77047@ix.netcom.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910222309.QAA77047>