Subject: toolchain/24933: make -V dumps core
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/27/2004 00:48:43
>Number:         24933
>Category:       toolchain
>Synopsis:       make -V without a varname dumps core
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 26 23:49:00 UTC 2004
>Originator:     Marc Recht
>Release:        NetBSD 1.6ZL
System: NetBSD 1.6ZL NetBSD 1.6ZL (LEELOO) #0: Fri Mar 26 15:27:59 CET 2004 i386
Architecture: i386
Machine: i386
If no varname is given to make -V it dumps the core. make -V var (eg. LDFLAGS)
works fine.

(gdb) run -V
Starting program: /usr/bin/make -V
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0805bb4c in Var_Append ()
(gdb) bt
#0  0x0805bb4c in Var_Append ()
#1  0x08052b62 in MainParseArgs ()
#2  0x080536a2 in main ()
#3  0x08049902 in ___start ()

(I could provide a trace with symbols if it helps..)
make -V