unknown coredump !

Nikolay Kalev nkalev at gmail.com
Thu Aug 25 07:22:35 GMT 2005


Pawel Worach wrote:

>On 8/25/05, Nikolay Kalev <nkalev at gmail.com> wrote:
>  
>
>>chkgrp: /etc/group: line 30: missing field(s)
>>Segmentation fault (core dumped)
>>Exit 3
>>
>>so i found the problem in my group file there was a bugy line that i
>>added ... i;m not sure if this is normal to coredump when the syntax in
>>/etc/group is mistaken ???
>>
>>the line was : "user:1001:" and it has to be "user:*:1001:"
>>
>>    
>>
>
>I can not reproduce this on a 7-CURRENT system.
>
># grep -n ^user /etc/group
>30:user:1001:
># chkgrp
>chkgrp: /etc/group: line 30: missing field(s)
>chkgrp: /etc/group: line 30: GID is not numeric
>
>You can get a chkgrp with debug symbols this way:
># cd /usr/src/usr.sbin/chkgrp/
># make clean
># make DEBUG_FLAGS=-g
># make STRIP= install
>
>Then reproduce the problem and fire up gdb as said elsewhere..
>
>  
>
[lapi]:/root# gdb -c chkgrp.core /usr/sbin/chkgrp
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 "i386-marcel-freebsd"...
Core was generated by `chkgrp'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x280b67b1 in strcspn () from /lib/libc.so.6
(gdb) bt
#0  0x280b67b1 in strcspn () from /lib/libc.so.6
#1  0x08048a3c in main (argc=65536, argv=0x10000) at chkgrp.c:137
(gdb)


As i said, my system is FreeBSD 6.0 BETA3
i wonder if others have the same problem with beta3 ?


More information about the freebsd-current mailing list