bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63100] Crash in a loadable plugin


From: Dmitry Goncharov
Subject: [bug #63100] Crash in a loadable plugin
Date: Sat, 24 Sep 2022 16:36:43 -0400 (EDT)

Follow-up Comment #1, bug #63100 (project make):

When make unloads and then loads a shared object make supplies an 
uninitialized floc to the plugin setup routine.

++++
$ cat makefile
load hello.so
all:; :
hello.so: force; :
force:;
.PHONY: force
$ cat hello.c
#include <assert.h>
#include <gnumake.h>
int plugin_is_GPL_compatible;


int hello_gmk_setup (const gmk_floc *floc)
{
  assert (floc->filenm);
  return 1;
}
$ ~/src/gmake/make/m64/make
hello plugin loaded from makefile:1
:
make: hello.c:9: hello_gmk_setup: Assertion `floc->filenm'
failed.
Aborted
----


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63100>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]