[Samba] [Bug] in getgrent_list() in HEAD

mishell baranov mishell at trg.ru
Tue Apr 23 04:55:02 GMT 2002


hi
i have a some trouble with HEAD CVS branch.
when i try to login to my domain from nt4 i get this message in my log's 
file:
--------------------------------------------------------------------------------------------------------------------
  ===============================================================
[2002/04/23 17:25:42, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 4269 (3.0-alpha17)
  Please read the file BUGS.txt in the distribution
[2002/04/23 17:25:42, 0] lib/fault.c:fault_report(39)
  ===============================================================
[2002/04/23 17:25:42, 0] lib/util.c:smb_panic(1138)
  PANIC: internal error
--------------------------------------------------------------------------------------------------------------------
same message appears when i call "usrmgr" in nt box.

i try to found trouble. and i explore what this happens when 
getgrent_list() is called. in this function i found that string 97
    grp = getgrent();
not reached when getgrent() try get last string from /etc/group.
i write my small test program
------------------------ test.c ----------------------------
#include <stdlib.h>
#include <grp.h>
#include <sys/types.h>

main(){
    struct group *grp;

    grp = getgrent();
    while (grp != NULL) {
        printf("%s:%d",grp->gr_name,grp->gr_gid);
        grp = getgrent();
printf("...\n");
    }
endgrent();
}
--------------------- end -----------------------------
and she was run whithout any problem.

what's wrong?

my box:
debian woody
kernel 2.4.19-pre7-ac2 (i try whith many other)
libc6          2.2.5-4 (debian)

ps: sorry for my poor english








More information about the samba mailing list