Re: panic: sodealloc(): so_count 1

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Thu, 10 Aug 2006 11:40:03 +0100 (BST)
On Thu, 10 Aug 2006, Gleb Kozyrev wrote:

> Hello, folks!
>
> i386 7.0-CURRENT #0: Sun Aug 6 repeatedly panics when doing some default 
> periodic jobs at 3 AM.

Could you file a PR for this, and forward me the PR receipt?  I'd be happy to 
investigate this problem.  I've seen one or two other reports of so_count 1, 
but not in a way that's reproduceable.  The output of the following DDB 
commands would be most helpful:

   show pcpu
   show allpcpu
   alltrace
   show  alllocks

It may also be useful to set up serial GDB, in order to do things like print 
the contents of *so in sodealloc().

Thanks,

Robert N M Watson
Computer Laboratory
University of Cambridge

>
> =========Beginning of the citation==============
> panic: sodealloc(): so_count 1
> cpuid = 0
> Uptime: 3m24s
> GEOM_JOURNAL: Shutting down geom gjournal 1113779798.
> Physical memory: 119 MB
> Dumping 35 MB: 20 4
> Dump complete
> Automatic reboot in 15 seconds - press a key on the console to abort
> KDB: enter: Break sequence on console
> [thread pid 1558 tid 100116 ]
> Stopped at      kdb_enter+0x2b: nop
>
> db> where
> Tracing pid 1558 tid 100116 td 0xc1891870
> kdb_enter(c09184a9) at kdb_enter+0x2b
> siointr1(c16c6c00,c0a851ac,0,c09492ee,56e,...) at siointr1+0xd5
> siointr(c16c6c00) at siointr+0x21
> intr_execute_handlers(c09f7c30,c85b0b50,0,0,c159600c,...) at intr_execute_handle
> rs+0xe1
> atpic_handle_intr(4) at atpic_handle_intr+0x92
> Xatpic_intr4() at Xatpic_intr4+0x20
> --- interrupt, eip = 0xc08a3872, esp = 0xc85b0b90, ebp = 0xc85b0bb4 ---
> DELAY(186a0,c15a98e0,c85b0bfc,c06a3f5f,0,...) at DELAY+0x92
> shutdown_panic(0,104,c159600c,0,c0926e38,...) at shutdown_panic+0x2a
> boot(104,104,c1891870,c19677c8,1,...) at boot+0x55f
> panic(c092e717,1,c19677c8,c85b0c48,c06e4811,...) at panic+0x175
> sodealloc(c19677c8,c1b0de00,c85b0d04,c1b048d0,c85b0c84,...) at sodealloc+0x18
> socreate(2,c85b0c6c,3,ff,c19e9600,...) at socreate+0x131
> socket(c1891870,c85b0d04) at socket+0x71
> syscall(3b,3b,3b,bfbfe50c,8204000,...) at syscall+0x256
> Xint0x80_syscall() at Xint0x80_syscall+0x1f
> --- syscall (97, FreeBSD ELF32, socket), eip = 0x28138847, esp = 0xbfbfe45c, ebp
> = 0xbfbfe488 ---
>
> db> ps
>  pid  ppid  pgrp   uid   state   wmesg     wchan    cmd
> 1559  1556  1290     0  SJ      biord    0xc3c9daf0 egrep
> 1558  1556  1290     0  RJ      CPU 0               ipfw
> 1556  1485  1290     0  SJ      wait     0xc185e8d0 sh
> 1524  1507  1296     0  R                           find
> 1514  1511  1296     0  S       piperd   0xc1779000 cat
> 1511  1501  1296     0  S       wait     0xc1776b04 sh
> 1510  1501  1296     0  S       piperd   0xc1ab3318 sort
> 1509  1501  1296     0  S       piperd   0xc1ab3000 sed
> 1508  1501  1296     0  S       piperd   0xc1779c60 xargs
> 1507  1501  1296     0  S       wait     0xc185f468 sh
> 1501  1498  1296     0  S       wait     0xc1776468 sh
> 1500  1499  1296     0  S       piperd   0xc1779630 mail
> 1499  1461  1296     0  S       wait     0xc173869c sh
> 1498  1461  1296     0  S       wait     0xc188369c sh
> 1487  1486  1290     0  SJ      piperd   0xc1778948 mail
> 1486  1479  1290     0  SJ      wait     0xc183f468 sh
> 1485  1479  1290     0  SJ      wait     0xc1776234 sh
> 1479  1478  1290     0  SJ      wait     0xc183f234 sh
> 1478  1306  1290     0  SJ      wait     0xc1883468 sh
> 1461  1460  1296     0  S       wait     0xc183f8d0 sh
> 1460  1313  1296     0  S       wait     0xc185fd38 sh
> 1315  1314  1296     0  S       piperd   0xc17787bc mail
> 1314  1298  1296     0  S       wait     0xc1774b04 sh
> 1313  1298  1296     0  S       wait     0xc1738d38 sh
> 1311  1307  1290     0  SJ      piperd   0xc1778dec mail
> 1307  1292  1290     0  SJ      wait     0xc188fd38 sh
> 1306  1292  1290     0  SJ      wait     0xc188069c sh
> 1298  1296  1296     0  S       wait     0xc185ed38 sh
> 1296  1294  1296     0  Ss      wait     0xc185f69c sh
> 1294   865   865     0  S       piperd   0xc1779318 cron
> 1292  1290  1290     0  SJ      wait     0xc185eb04 sh
> 1290  1288  1290     0  SsJ     wait     0xc1682d38 sh
> 1288  1119  1119     0  SJ      piperd   0xc1779948 cron
> etc...
> =========The end of the citation================
>
> IPFW rules:
> =========Beginning of the citation==============
> 00100 allow ip from any to any via lo0
> 00200 deny ip from any to 127.0.0.0/8
> 00300 deny ip from 127.0.0.0/8 to any
> 20000 allow ip from any to any
> =========The end of the citation================
>
> The panic is triggered by setting time to 03:00 minus
> seconds. It is not triggered by running periodic daily
> on its own.
>
> Unfortunately the core is not found by savecore after reboot.
> (If I break to debugger from clean system and trigger
> a panic savecore works fine).
>
> -- 
> With best regards, Gleb Kozyrev.
>
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Thu Aug 10 2006 - 08:40:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC