Subject: signal 11 in make
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 10/04/2007 16:10:28
I haven't tested yet with any memory checkers.

Program terminated with signal 11, Segmentation fault.
#0  0xbbb92bfa in memmove () from /usr/lib/libc.so.12
(gdb) bt
#0  0xbbb92bfa in memmove () from /usr/lib/libc.so.12
#1  0x08056c67 in ParseGetLine (flags=0, length=0xbfbfcc1c)
    at /opt/src/usr.bin/make/parse.c:2130
#2  0x080576b1 in Parse_File (name=0x80624c3 "Makefile", fd=3)
    at /opt/src/usr.bin/make/parse.c:2307
#3  0x08053b88 in ReadMakefile (p=0x80624c3, q=0x0)
    at /opt/src/usr.bin/make/main.c:1199
#4  0x0805460a in main (argc=2, argv=0xbfbfdaf4)
    at /opt/src/usr.bin/make/main.c:979


The ktrace output from using this make ends with:

...many lines...
        nclude/libgnomecanvas-2.0/libgnomecanvas/gnome-canvas-shape.h \\
          
/home/packages/tmp-pkgsrc/wip/passepartout/work.glacier/.buildlink/i\
        nclude/libgnomecanvas-2.0/libgnomecanvas/gnome-canvas-path-def.h 
\\
          
/home/packages/tmp-pkgsrc/wip/passepartout/work.glacier/.buildlink/i\
        nclude/libart-2.0/libart_lgpl/art_bpath.h \\
          
/home/packages/tmp-pkgsrc/wip/passepartout/work.glacier/.buildlink/i\
        nclude/libgnomecanvas-2.0/libgnomecanv"
  2683      1 make     GIO   fd 4 read 64 bytes
       "as/gnome-canvas-pixbuf.h \\
          /home/packages/tmp-pkgsrc/wip/passe"
  2683      1 make     RET   read 32768/0x8000
  2683      1 make     PSIG  SIGSEGV SIG_DFL
  2683      1 make     NAMI  "make.core"


The makefile has:

include ./$(DEPDIR)/libxml2ps_a-blockcontainer.Po
include ./$(DEPDIR)/libxml2ps_a-boundaries.Po
include ./$(DEPDIR)/libxml2ps_a-canvas.Po
include ./$(DEPDIR)/libxml2ps_a-line.Po
include ./$(DEPDIR)/libxml2ps_a-pagedstream.Po
include ./$(DEPDIR)/libxml2ps_a-paragraph.Po
include ./$(DEPDIR)/libxml2ps_a-pdfcanvas.Po
include ./$(DEPDIR)/libxml2ps_a-pscanvas.Po
include ./$(DEPDIR)/libxml2ps_a-psstream.Po
include ./$(DEPDIR)/libxml2ps_a-typesetter.Po
include ./$(DEPDIR)/libxml2ps_a-xcanvas.Po
include ./$(DEPDIR)/libxml2ps_a-xly.Po
include ./$(DEPDIR)/xml2ps-main.Po

This is thousands of lines.

It appears from the ktrace that it dies in libxml2ps_a-typesetter.Po or 
libxml2ps_a-xcanvas.Po.

This worked fine with gmake. Not with bmake.

My BSD make is from NetBSD 4.99.27. Now I just updated to usr.bin/make 
from HEAD and it still core dumps.


  Jeremy C. Reed