Subject: kern/20282: lfs_cleanerd dies
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lha@netbsd.org>
List: netbsd-bugs
Date: 02/10/2003 14:48:54
>Number:         20282
>Category:       kern
>Synopsis:       lfs_cleanerd dies
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 10 07:45:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Love
>Release:        NetBSD 1.6N
>Organization:
	whatever
>Environment:
System: NetBSD nutcracker.stacken.kth.se 1.6N NetBSD 1.6N (NUTCRACKER) #66: Mon Feb 3 21:58:38 CET 2003 lha@nutcracker.stacken.kth.se:/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:

	lfs_cleanerd dies ever ~minuts

>How-To-Repeat:

(gdb) bt
#0  0x804e32b in add_inodes (fsp=0x8056000, bip=0x847a000, countp=0xbfbff410, 
    sp=0x807e000, 
    seg_buf=0x807a000 "\001\024\027Fż\202]\231ûÞ\210IÞôýq\215\225\205õ¯Ìÿ\211\237_AmÜL³á\027Kk%¸Þ\203yl\020à\035\021Í\tQ#\020ÈU\005oÅiR¤\030Í\202§¼Á\037>\233\205Ç\230\030YA\207ü}ákN1}çÁµ.\fóI)Ç|,]°f¡«\037\024åj>J9ú&UÝ%âl\021\ekî\025¬\231Ö)¤È_\215k´ÿ\201;/Ì\036\230­k\031\027cÒ5\036Qúñ|\"cuý\\\225\tC\017Äí­©´aO¼¯¥m\022ªù\027?Ü\235\n«4Ñ\"¥bÕ¢\025¦i\205­ÊM%ð÷Ag&\037\005Íë\002"..., seg_addr=0)
    at /usr/src/libexec/lfs_cleanerd/library.c:665
#1  0x804da3f in lfs_segmapv (fsp=0x8056000, seg=0, 
    seg_buf=0x807a000 "\001\024\027Fż\202]\231ûÞ\210IÞôýq\215\225\205õ¯Ìÿ\211\237_AmÜL³á\027Kk%¸Þ\203yl\020à\035\021Í\tQ#\020ÈU\005oÅiR¤\030Í\202§¼Á\037>\233\205Ç\230\030YA\207ü}ákN1}çÁµ.\fóI)Ç|,]°f¡«\037\024åj>J9ú&UÝ%âl\021\ekî\025¬\231Ö)¤È_\215k´ÿ\201;/Ì\036\230­k\031\027cÒ5\036Qúñ|\"cuý\\\225\tC\017Äí­©´aO¼¯¥m\022ªù\027?Ü\235\n«4Ñ\"¥bÕ¢\025¦i\205­ÊM%ð÷Ag&\037\005Íë\002"..., 
    blocks=0xbfbff444, bcount=0xbfbff410)
    at /usr/src/libexec/lfs_cleanerd/library.c:486
#2  0x804b039 in add_segment (fsp=0x8056000, slp=0x8058000, sbp=0x8054160)
    at /usr/src/libexec/lfs_cleanerd/cleanerd.c:708
#3  0x804a70c in clean_fs (fsp=0x8056000, cost_func=0x80495d4 <cost_benefit>, 
    nsegs=4, options=1) at /usr/src/libexec/lfs_cleanerd/cleanerd.c:529
#4  0x804a3cc in clean_loop (fsp=0x8056000, nsegs=4, options=1)
    at /usr/src/libexec/lfs_cleanerd/cleanerd.c:442
#5  0x8049edc in main (argc=1, argv=0xbfbff62c)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/libexec/lfs_cleanerd/cleanerd.c:337
#6  0x8049284 in ___start ()
(gdb) fr
#0  0x804e32b in add_inodes (fsp=0x8056000, bip=0x847a000, countp=0xbfbff410, 
    sp=0x807e000, 
    seg_buf=0x807a000 "\001\024\027Fż\202]\231ûÞ\210IÞôýq\215\225\205õ¯Ìÿ\211\237_AmÜL³á\027Kk%¸Þ\203yl\020à\035\021Í\tQ#\020ÈU\005oÅiR¤\030Í\202§¼Á\037>\233\205Ç\230\030YA\207ü}ákN1}çÁµ.\fóI)Ç|,]°f¡«\037\024åj>J9ú&UÝ%âl\021\ekî\025¬\231Ö)¤È_\215k´ÿ\201;/Ì\036\230­k\031\027cÒ5\036Qúñ|\"cuý\\\225\tC\017Äí­©´aO¼¯¥m\022ªù\027?Ü\235\n«4Ñ\"¥bÕ¢\025¦i\205­ÊM%ð÷Ag&\037\005Íë\002"..., seg_addr=0)
    at /usr/src/libexec/lfs_cleanerd/library.c:665
665                             bp->bi_version = ifp->if_version;
(gdb) up
#1  0x804da3f in lfs_segmapv (fsp=0x8056000, seg=0, 
    seg_buf=0x807a000 "\001\024\027Fż\202]\231ûÞ\210IÞôýq\215\225\205õ¯Ìÿ\211\237_AmÜL³á\027Kk%¸Þ\203yl\020à\035\021Í\tQ#\020ÈU\005oÅiR¤\030Í\202§¼Á\037>\233\205Ç\230\030YA\207ü}ákN1}çÁµ.\fóI)Ç|,]°f¡«\037\024åj>J9ú&UÝ%âl\021\ekî\025¬\231Ö)¤È_\215k´ÿ\201;/Ì\036\230­k\031\027cÒ5\036Qúñ|\"cuý\\\225\tC\017Äí­©´aO¼¯¥m\022ªù\027?Ü\235\n«4Ñ\"¥bÕ¢\025¦i\205­ÊM%ð÷Ag&\037\005Íë\002"..., 
    blocks=0xbfbff444, bcount=0xbfbff410)
    at /usr/src/libexec/lfs_cleanerd/library.c:486
486                     add_inodes(fsp, bip, bcount, sp, seg_buf, seg_addr);
(gdb) down
#0  0x804e32b in add_inodes (fsp=0x8056000, bip=0x847a000, countp=0xbfbff410, 
    sp=0x807e000, 
    seg_buf=0x807a000 "\001\024\027Fż\202]\231ûÞ\210IÞôýq\215\225\205õ¯Ìÿ\211\237_AmÜL³á\027Kk%¸Þ\203yl\020à\035\021Í\tQ#\020ÈU\005oÅiR¤\030Í\202§¼Á\037>\233\205Ç\230\030YA\207ü}ákN1}çÁµ.\fóI)Ç|,]°f¡«\037\024åj>J9ú&UÝ%âl\021\ekî\025¬\231Ö)¤È_\215k´ÿ\201;/Ì\036\230­k\031\027cÒ5\036Qúñ|\"cuý\\\225\tC\017Äí­©´aO¼¯¥m\022ªù\027?Ü\235\n«4Ñ\"¥bÕ¢\025¦i\205­ÊM%ð÷Ag&\037\005Íë\002"..., seg_addr=0)
    at /usr/src/libexec/lfs_cleanerd/library.c:665
665                             bp->bi_version = ifp->if_version;
(gdb) p ifp
$5 = (IFILE *) 0x56b1ea1c
(gdb) list
660                             ++(*countp);
661                             PRINT_INODE(1, bp);
662                     } else {
663                             ifp = IFILE_ENTRY(lfsp, fsp->fi_ifilep, inum);
664                             PRINT_INODE(ifp->if_daddr == *daddrp, bp);
665                             bp->bi_version = ifp->if_version;
666                             if (ifp->if_daddr == *daddrp) {
667                                     bp++;
668                                     ++(*countp);
669                             }
(gdb) p inum
$6 = 1568849093
(gdb) p *ifp
Cannot access memory at address 0x56b1ea1c

: root@nutcracker ; fsck_lfs /obj
** /dev/rwd0h
** Last Mounted on /obj
** Phase 0 - Check Segment Summaries and Inode Free List
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Segment Block Accounting
3714 files, 302613 used, 0 free 

UPDATE STANDARD SUPERBLOCKS? [yn] n


***** FILE SYSTEM WAS MODIFIED *****


>Fix:

?


>Release-Note:
>Audit-Trail:
>Unformatted: