Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 1998 16:47:54 +0200
From:      "Soren S. Jorvang" <soren@t.dk>
To:        andy@cris.net
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/7288: /kernel: panic: ffs_alloccg: map corrupted
Message-ID:  <19980716164754.A27243@gnyf.t.dk>
In-Reply-To: <199807150842.MAA13333@ark.cris.net>; from andy@cris.net on Wed, Jul 15, 1998 at 12:42:53PM %2B0400
References:  <199807150842.MAA13333@ark.cris.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 15, 1998 at 12:42:53PM +0400, andy@cris.net wrote:
> 
> >Number:         7288
> >Category:       kern
> >Synopsis:       /kernel: panic: ffs_alloccg: map corrupted
> >Confidential:   no
> >Severity:       critical
> >Priority:       high
> >Responsible:    freebsd-bugs
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Wed Jul 15 03:00:01 PDT 1998
> >Last-Modified:
> >Originator:     Andrey Nikolaev
> >Organization:
> 	Crimean Internet Service 
> >Release:        FreeBSD 2.2.6-RELEASE i386
> >Environment:
> 2.2.6-RELEASE FreeBSD 200MMX 64M DIMM
> NCR 53c815  PCI, IBM OEM 0662S12 , TOSHIBA MK538FB, IBM-DCAS 34330W 
> 
> >Description:
> 	Kernel panics with trap in ffs_alloccg. We run a medium news server
> on this machine and kernel debugger says that trap occured during
> access to /var/spool/news partition. Any changes in location of news spool
> were not of any help.

Some time ago I had the same problem on a system running NetBSD-current
(same fsck cg code).

I am not sure if there is a kernel ffs bug or not, since the filesystem
in question has not always been treated very nicely by me, ie. async
mounts and various experimentation.

However, fsck should ideally fix this problem. The current
fsck did not report any problems while checking this filesystem.

The cg corruption went away after I subjected the filesystem to
a different usage pattern, probably making the kernel overwrite
the cg (this could be a bug in itself).

dumpfs(8) output from the filesystem at the time follows.
Notice the 'clusters 1-7' line.

Endian little-endian magic	11954	time	Sat Jun 13 14:12:01 1998
cylgrp	dynamic	inodes	4.4BSD	fslevel 3
nbfree	26626	ndir	9733	nifree	298721	nffree	28861
ncg	30	ncyl	474	size	1790000	blocks	1762391
bsize	16384	shift	14	mask	0xffffc000
fsize	2048	shift	11	mask	0xfffff800
frag	8	shift	3	fsbtodb	2
cpg	16	bpg	7560	fpg	60480	ipg	14464
minfree	5%	optim	time	maxcontig 8	maxbpg	4096
rotdelay 0ms	headswitch 0us	trackseek 0us	rps	90
ntrak	240	nsect	63	npsect	63	spc	15120
symlinklen 60	trackskew 0	interleave 1	contigsumsize 8
nindir	4096	inopb	128	nspf	4
sblkno	8	cblkno	16	iblkno	24	dblkno	928
sbsize	4096	cgsize	12288	cgoffset 16	cgmask	0xffffff00
csaddr	928	cssize	2048	shift	10	mask	0xfffffc00
cgrotor	8	fmod	0	ronly	0	clean	0x02
blocks available in each of 1 rotational positions
cylinder number 0:
   position 0:	    0    1    2    3    4    5    6    7    8    9   10   11
		   12   13   14   15   16   17   18   19   20   21   22   23
		   24   25   26   27   28   29   30   31   32   33   34   35
		   36   37   38   39   40   41   42   43   44   45   46   47
		   48   49   50   51   52   53   54   55   56   57   58   59
		   60   61   62   63   64   65   66   67   68   69   70   71
		   72   73   74   75   76   77   78   79   80   81   82   83
		   84   85   86   87   88   89   90   91   92   93   94   95
		   96   97   98   99  100  101  102  103  104  105  106  107
		  108  109  110  111  112  113  114  115  116  117  118  119
		  120  121  122  123  124  125  126  127  128  129  130  131
		  132  133  134  135  136  137  138  139  140  141  142  143
		  144  145  146  147  148  149  150  151  152  153  154  155
		  156  157  158  159  160  161  162  163  164  165  166  167
		  168  169  170  171  172  173  174  175  176  177  178  179
		  180  181  182  183  184  185  186  187  188  189  190  191
		  192  193  194  195  196  197  198  199  200  201  202  203
		  204  205  206  207  208  209  210  211  212  213  214  215
		  216  217  218  219  220  221  222  223  224  225  226  227
		  228  229  230  231  232  233  234  235  236  237  238  239
		  240  241  242  243  244  245  246  247  248  249  250  251
		  252  253  254  255  256  257  258  259  260  261  262  263
		  264  265  266  267  268  269  270  271  272  273  274  275
		  276  277  278  279  280  281  282  283  284  285  286  287
		  288  289  290  291  292  293  294  295  296  297  298  299
		  300  301  302  303  304  305  306  307  308  309  310  311
		  312  313  314  315  316  317  318  319  320  321  322  323
		  324  325  326  327  328  329  330  331  332  333  334  335
		  336  337  338  339  340  341  342  343  344  345  346  347
		  348  349  350  351  352  353  354  355  356  357  358  359
		  360  361  362  363  364  365  366  367  368  369  370  371
		  372  373  374  375  376  377  378  379  380  381  382  383
		  384  385  386  387  388  389  390  391  392  393  394  395
		  396  397  398  399  400  401  402  403  404  405  406  407
		  408  409  410  411  412  413  414  415  416  417  418  419
		  420  421  422  423  424  425  426  427  428  429  430  431
		  432  433  434  435  436  437  438  439  440  441  442  443
		  444  445  446  447  448  449  450  451  452  453  454  455
		  456  457  458  459  460  461  462  463  464  465  466  467
		  468  469  470  471  472
cylinder number 1:
   position 0:	  473  474  475  476  477  478  479  480  481  482  483  484
		  485  486  487  488  489  490  491  492  493  494  495  496
		  497  498  499  500  501  502  503  504  505  506  507  508
		  509  510  511  512  513  514  515  516  517  518  519  520
		  521  522  523  524  525  526  527  528  529  530  531  532
		  533  534  535  536  537  538  539  540  541  542  543  544
		  545  546  547  548  549  550  551  552  553  554  555  556
		  557  558  559  560  561  562  563  564  565  566  567  568
		  569  570  571  572  573  574  575  576  577  578  579  580
		  581  582  583  584  585  586  587  588  589  590  591  592
		  593  594  595  596  597  598  599  600  601  602  603  604
		  605  606  607  608  609  610  611  612  613  614  615  616
		  617  618  619  620  621  622  623  624  625  626  627  628
		  629  630  631  632  633  634  635  636  637  638  639  640
		  641  642  643  644  645  646  647  648  649  650  651  652
		  653  654  655  656  657  658  659  660  661  662  663  664
		  665  666  667  668  669  670  671  672  673  674  675  676
		  677  678  679  680  681  682  683  684  685  686  687  688
		  689  690  691  692  693  694  695  696  697  698  699  700
		  701  702  703  704  705  706  707  708  709  710  711  712
		  713  714  715  716  717  718  719  720  721  722  723  724
		  725  726  727  728  729  730  731  732  733  734  735  736
		  737  738  739  740  741  742  743  744  745  746  747  748
		  749  750  751  752  753  754  755  756  757  758  759  760
		  761  762  763  764  765  766  767  768  769  770  771  772
		  773  774  775  776  777  778  779  780  781  782  783  784
		  785  786  787  788  789  790  791  792  793  794  795  796
		  797  798  799  800  801  802  803  804  805  806  807  808
		  809  810  811  812  813  814  815  816  817  818  819  820
		  821  822  823  824  825  826  827  828  829  830  831  832
		  833  834  835  836  837  838  839  840  841  842  843  844
		  845  846  847  848  849  850  851  852  853  854  855  856
		  857  858  859  860  861  862  863  864  865  866  867  868
		  869  870  871  872  873  874  875  876  877  878  879  880
		  881  882  883  884  885  886  887  888  889  890  891  892
		  893  894  895  896  897  898  899  900  901  902  903  904
		  905  906  907  908  909  910  911  912  913  914  915  916
		  917  918  919  920  921  922  923  924  925  926  927  928
		  929  930  931  932  933  934  935  936  937  938  939  940
		  941  942  943  944
cs[].cs_(nbfree,ndir,nifree,nffree):
	(780,452,11225,658) (1174,468,10456,1733) (277,408,10017,1193) (0,307,9848,774) 
	(41,400,9897,1170) (156,293,9847,1277) (504,203,10009,170) (834,322,9951,576) 
	(1053,366,9708,62) (1,385,9907,298) (10,302,9892,2672) (1165,464,10445,1141) 
	(551,287,9899,1115) (1495,219,9843,71) (1406,388,9873,537) (536,272,9886,1882) 
	(0,158,9752,436) (84,162,9849,1128) (211,335,9973,359) (910,98,8891,1918) 
	(949,200,9950,1072) (885,282,9621,1902) (268,390,9854,280) (971,219,9491,845) 
	(1139,330,9908,871) (1544,313,9894,851) (3946,454,10428,1178) (1592,412,9916,664) 
	(4142,452,10661,1083) (2,392,9830,945) 
cylinders in last group 10
blocks in last group 4725


[cgs 1 through 7 snipped]

cg 8:
magic	90255	tell	3b148000	time	Sat Jun 13 12:58:58 1998
cgx	8	ncyl	16	niblk	14464	ndblk	60480
nbfree	1053	ndir	366	nifree	9708	nffree	62
rotor	14264	irotor	27	frotor	14264
frsum	37	6	0	2	1	0	0
sum of frsum: 62
clusters 1-7:	-1951	10	2	7	2	1	1
clusters size 8 and over: 13
clusters free:	1544-1547, 1783-1784, 1796, 2650, 2762, 2770-2773,
	2776, 2778, 2830, 2832-2833, 2835-2841, 2946-2947,
	2966-2968, 2971, 3182, 3185, 3225-3228, 3260-3261,
	3327, 3466-3470, 3473-3474, 3477, 3489-3490, 3543,
	3636, 3639-3640, 3642-3644, 3647-3650, 3652-3657, 3660-3663,
	3665-3666, 3670-3673, 3677, 3679-3680, 3787-3794, 3796-3803,
	3850, 3852-3853, 3856-3857, 3896-3897, 3940, 3962,
	3968, 4002-4003, 4053, 4316-4358, 4366-4455, 4457-4467,
	4469-4487, 4489-4574, 4576-4635, 4637-4684, 4686-4837, 4839,
	4841-4845, 4847-4875, 4877, 4882-4886, 4888-4889, 4891-4905,
	4909, 4911, 4913, 4915-4916, 4985-5050
iused:	0-26, 28-104, 110-163, 165-812, 1065-1090, 1096-1106,
	1128-2575, 2577-2589, 2591-2893, 2896-2993, 2998-3181, 3283,
	3314-3625, 3901-4020, 4022-4024, 4026, 4029-4030, 4032-4909,
	4914-5075, 5085-5443, 5445-5447, 5465, 5546-5570
free:	6, 1328-1329, 1376-1377, 1520-1521, 2350-2351, 7879,
	10543, 10559, 12119, 12352-12383, 14264-14279, 14368-14375,
	21060, 21200-21207, 22096-22103, 22160-22191, 22208-22215, 22224-22231,
	22343, 22640-22647, 22656-22671, 22680-22735, 23568-23583, 23728-23751,
	23768-23775, 24370, 25456-25463, 25480-25487, 25800-25831, 25855,
	26080-26095, 26616-26623, 26733, 26913-26914, 26944-26947, 26971-26974,
	27728-27767, 27784-27799, 27816-27823, 27912-27927, 28344-28351, 29088-29095,
	29112-29127, 29136-29159, 29176-29207, 29216-29263, 29280-29311, 29320-29335,
	29360-29391, 29416-29423, 29432-29447, 30296-30359, 30368-30431, 30800-30807,
	30816-30831, 30848-30863, 31168-31183, 31520-31527, 31696-31703, 31744-31751,
	32016-32031, 32416, 32424-32431, 34528-34871, 34928-35647, 35652,
	35656-35743, 35752-35903, 35912-36599, 36606, 36608-37087, 37094,
	37096-37479, 37488-38703, 38712-38719, 38728-38767, 38776-39007, 39016-39023,
	39043, 39056-39095, 39104-39119, 39128-39247, 39272-39279, 39288-39295,
	39304-39311, 39320-39335, 39342, 39880-40407, 40422-40423, 52271,
	52311, 56607, 57942, 57966, 58062, 58182,
	58638, 58702, 58758, 58790, 58806, 58854,
	58870, 58886, 58894, 58966, 58998, 59006,
	59046, 59280-59284, 59583
b:
   c3:	(7)	 7
   c5:	(11)	 11
   c6:	(21)	 21
   c7:	(41)	 41
   c8:	(29)	 29
   c9:	(396)	 396
   c10:	(242)	 242
   c14:	(11)	 11
   c15:	(295)	 295

[cgs 9 through 29 snipped]
 

-- 
Soren

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980716164754.A27243>