Don't know how to debug this and cannot post the Makefile in question but it last worked in 8.4. In 11-CURRENT Var_Value appears to return NULL at /usr/src/contrib/bmake/compat.c:621 Var_Set(IMPSRC, Var_Value(TARGET, gn, &p1), pgn, 0); which passes the NULL to Var_Set as the second argument (val) where, eventually, /usr/src/contrib/bmake/var.c:973 Buf_AddBytes(&v->val, strlen(val), val); the SEGV is generated in strlen. Any and all pointers appreciated, Roger gdb /usr/bin/make GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Core was generated by `make'. Program terminated with signal 11, Segmentation fault. #0 0x000000000045a23f in strlen () (gdb) bt #0 0x000000000045a23f in strlen () #1 0x0000000000419dda in Var_Set (name=<value optimized out>, val=<value optimized out>, ctxt=<value optimized out>, flags=<value optimized out>) at /usr/src/contrib/bmake/var.c:973 #2 0x0000000000402040 in Compat_Make (gnp=0x800a1c340, pgnp=0x800a1df00) at /usr/src/contrib/bmake/compat.c:621 #3 0x000000000041eb38 in Lst_ForEachFrom (l=<value optimized out>, ln=<value optimized out>, proc=0x401f80 <Compat_Make>, d=0x800a1df00) at /usr/src/contrib/bmake/lst.lib/lstForEachFrom.c:104 #4 0x0000000000401ff1 in Compat_Make (gnp=0x800a1df00, pgnp=0x800a1e2c0) at /usr/src/contrib/bmake/compat.c:509 #5 0x000000000041eb38 in Lst_ForEachFrom (l=<value optimized out>, ln=<value optimized out>, proc=0x401f80 <Compat_Make>, d=0x800a1e2c0) at /usr/src/contrib/bmake/lst.lib/lstForEachFrom.c:104 #6 0x0000000000401ff1 in Compat_Make (gnp=0x800a1e2c0, pgnp=0x800a1e200) at /usr/src/contrib/bmake/compat.c:509 #7 0x000000000041eb38 in Lst_ForEachFrom (l=<value optimized out>, ln=<value optimized out>, proc=0x401f80 <Compat_Make>, d=0x800a1e200) at /usr/src/contrib/bmake/lst.lib/lstForEachFrom.c:104 #8 0x0000000000401ff1 in Compat_Make (gnp=0x800a1e200, pgnp=0x800a1e200) at /usr/src/contrib/bmake/compat.c:509 #9 0x0000000000402446 in Compat_Run (targs=<value optimized out>) at /usr/src/contrib/bmake/compat.c:725 #10 0x000000000040c4cb in main (argc=4, argv=<value optimized out>) at /usr/src/contrib/bmake/main.c:1396 #11 0x000000000040031f in _start () #12 0x0000000000000000 in ?? ()Received on Fri Apr 01 2016 - 19:10:09 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC