bugmake - Bugs: bug #63100, Crash in a loadable plugin

 
 

bug #63100: Crash in a loadable plugin

Submitter:  Dmitry Goncharov <dgoncharov>
Submitted:  Sat 24 Sep 2022 08:30:58 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.4 Operating System:  POSIX-Based
Fixed Release:  4.4 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 25 Sep 2022 10:48:14 PM UTC, comment #2: 

Thanks Dmitry.

Paul D. Smith <psmith>
Group administrator
Sat 24 Sep 2022 08:36:43 PM UTC, comment #1: 

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


Dmitry Goncharov <dgoncharov>
Sat 24 Sep 2022 08:30:58 PM UTC, original submission:  

.

Dmitry Goncharov <dgoncharov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #53749:  sv63100_fix.diff added by dgoncharov (847B - text/x-patch)
file #53750:  sv63100_test.diff added by dgoncharov (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by dgoncharov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-09-25 psmith StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.4
        Triage StatusNone Small Effort
    2022-09-24 dgoncharov Attached File- Added sv63100_fix.diff, #53749
        Attached File- Added sv63100_test.diff, #53750

    Back to the top

    Powered by Savane 3.13-da57.
    Corresponding source code