[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gen-stubs segmentation fault (was Re: Checker-0.9.7 release)
- To: http://www.email.enst.fr/~gingold
- Subject: gen-stubs segmentation fault (was Re: Checker-0.9.7 release)
- From: http://dummy.us.eu.org/robert (robert)
- Date: Thu, 9 Jul 1998 11:59:05 -0400
- In-Reply-To: <19980709115200.http://www.gavroche.enst.fr/~A20363>
- XX-from: http://dummy.us.eu.org/robert (robert)
I figured it out.
It's these at the end of ./config/i386/Linux/stubs.list:
+history
+readline
+sys_shm
+sys_sem
+checker_api
They are not found and it causes that particular instance of gen-stubs to
crash.
I changed gen-stubs.c so it dies more nicely:
*** stubs/gen-stubs.c.orig Thu Jul 9 11:54:25 1998
--- stubs/gen-stubs.c Thu Jul 9 11:54:25 1998
***************
*** 320,329 ****
--- 320,341 ----
{
*funcname++ = 0;
l = search_function (funcname, buffer);
+ if (l == NULL)
+ {
+ fprintf(stderr, "\"%s\" function not found\n", funcname);
+ error = 1;
+ continue;
+ }
}
else
{
l = search_function (buffer, NULL);
+ if (l == NULL)
+ {
+ fprintf(stderr, "\"%s\" function not found\n", buffer);
+ error = 1;
+ continue;
+ }
if (l->flags & LIST_MULTIPLY)
{
fprintf (stderr,
Thanks.