Subject: more on sysinst coredump
To: None <current-users@netbsd.org>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: current-users
Date: 06/12/2000 08:03:48
Does this look familiar to anyone?  (Null pointer deref.  Did the caller
pass in a NULL?)

% gdb ramdiskbin sysinst.core 
GNU gdb 4.17
Copyright 1998 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 "i386--netbsd"...

warning: exec file is newer than core file.
Core was generated by `sysinst'.
Program terminated with signal 11, Segmentation fault.
#0  0x80ed7c5 in t_getstr ()
(gdb) where
#0  0x80ed7c5 in t_getstr ()
#1  0x80ed88a in tgetstr ()
#2  0x80c00c9 in _ ()
#3  0x80c0c17 in _ ()
#4  0x80c187e in _ ()
#5  0x80bec19 in _crunched_sysinst_stub ()
#6  0x8048439 in main ()
#7  0x80481c5 in __start ()
(gdb) 
(gdb) x/16i t_getstr
0x80ed7ac <t_getstr>:   pushl  %ebp
0x80ed7ad <t_getstr+1>: movl   %esp,%ebp
0x80ed7af <t_getstr+3>: subl   $0x4,%esp
0x80ed7b2 <t_getstr+6>: pushl  %edi
0x80ed7b3 <t_getstr+7>: pushl  %esi
0x80ed7b4 <t_getstr+8>: pushl  %ebx
0x80ed7b5 <t_getstr+9>: movl   0x8(%ebp),%edx
0x80ed7b8 <t_getstr+12>:        movl   0x10(%ebp),%edi
0x80ed7bb <t_getstr+15>:        movl   0x14(%ebp),%esi
0x80ed7be <t_getstr+18>:        leal   0xfffffffc(%ebp),%eax
0x80ed7c1 <t_getstr+21>:        pushl  %eax
0x80ed7c2 <t_getstr+22>:        pushl  0xc(%ebp)
0x80ed7c5 <t_getstr+25>:        pushl  (%edx)
0x80ed7c7 <t_getstr+27>:        call   0x80dd930 <cgetstr>
0x80ed7cc <t_getstr+32>:        movl   %eax,%ebx
0x80ed7ce <t_getstr+34>:        addl   $0xc,%esp
(gdb) i reg
eax            0xbfbfdc84       -1077945212
ecx            0x816e7a4        135718820
edx            0x0      0
ebx            0x816e6d8        135718616
esp            0xbfbfdc70       0xbfbfdc70
ebp            0xbfbfdc88       0xbfbfdc88
esi            0x0      0
edi            0x816e7a4        135718820
eip            0x80ed7c5        0x80ed7c5
eflags         0x10286  66182
cs             0x17     23
ss             0x1f     31
ds             0x1f     31
es             0x1f     31
fs             0x1f     31
gs             0x1f     31