From: rafal@utstat.toronto.edu (Rafal Kustra) Subject: [BUG] libc.a (4.4): when compiled with -g option Date: Thu, 1 Jul 1993 16:29:50 GMT
I have gcc 2.4.5, linux.99pl10 and libs of 4.4 .
The following comes from package XlispStat, which
compiles OK with -m486 -O6, but dies with SIGSEGV after
building with -g. It dies in following code:
StInitGraphics()
{
char *display_name = NULL;
/* connect to X server */
if ((StX11Globals.dpy = XOpenDisplay(display_name)) == NULL) {
fprintf(stderr, "%s: can't connect to X server %s\n",
progname, XDisplayName(display_name));
StX11Globals.has_windows = FALSE;
return;
}
It dies on call to XOpenDisplay, and gdb says it dies on
strncpy(). The above is std way to open a display on X11.
BTW I have libg.a as a softlink to libc.a.
Rafal
-- /|| " Numbers exist only in our minds. There is no physical entity that || that _is_ number 1. If there were, 1 would be in a place of honor || in some great museum of science, and past it would file a ==== steady stream of mathematicians gazing at 1 in wonder and awe. "