From owner-freebsd-bugs Wed Feb 6 3:30:25 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4564137B42B for ; Wed, 6 Feb 2002 03:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g16BU1K18745; Wed, 6 Feb 2002 03:30:01 -0800 (PST) (envelope-from gnats) Received: from brazil.eng.eircom.net (brazil.eng.eircom.net [159.134.242.211]) by hub.freebsd.org (Postfix) with ESMTP id 2B9DE37B420 for ; Wed, 6 Feb 2002 03:29:08 -0800 (PST) Received: (from judgea@localhost) by brazil.eng.eircom.net (8.11.6/8.11.5) id g16BT6m76332; Wed, 6 Feb 2002 11:29:06 GMT (envelope-from judgea) Message-Id: <200202061129.g16BT6m76332@brazil.eng.eircom.net> Date: Wed, 6 Feb 2002 11:29:06 GMT From: Alan Judge Reply-To: Alan Judge To: FreeBSD-gnats-submit@freebsd.org Cc: brazil@noc.te.net X-Send-Pr-Version: 3.113 Subject: kern/34658: syncache related panic (2nd panic from softdep) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34658 >Category: kern >Synopsis: syncache related panic (2nd panic from softdep) >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 Feb 06 03:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alan Judge >Release: FreeBSD 4.5-STABLE i386 >Organization: eircom.net >Environment: System: Recent 4.5-STABLE from last week. SMP i386, Dell 1550. Built with make release. >Description: We're testing a new set of service machines. We build our own releases, but the FreeBSD stuff is pretty standard. Under load testing (using ab, apache bench) making a lot of concurrent connections to an apache web server, we sometimes get a panic. (The web server is making MySQL connections locally as well, so there is a fair amount going on.) We've had three crashes so far (in two days), but I only have a matching kernel.debug for one. (For some reason, extracting the kernel source from the same release-build CD that installed the machine builds a slightly different kernel.) All the trace backs look similar in any case. I have all the core files for the moment. Backtrace and a few prints are below. I'm happy to do more digging. We're also getting some syncache cache overflows and resets, but I suspect that just needs tuning, and I'll look for advice for that separately. All the tracebacks show a second panic in the sync/softdep code when acquiring a lock. It may be another bug or just a symptom. >How-To-Repeat: ab -n 10000 -c 250 URL will always generate some syncache bucket overflows and resets. Some of the time, we also get a crash. homepages00# gdb -k kernel.debug /var/crash/vmcore.2 GNU gdb 4.18 Copyright 1998 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-unknown-freebsd"... SMP 2 cpus IdlePTD at phsyical address 0x0034d000 initial pcb at physical address 0x002abd00 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode mp_lock = 01000002; cpuid = 1; lapic.id = 00000000 fault virtual address = 0x28 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01c4c0d stack pointer = 0x10:0xff80fe44 frame pointer = 0x10:0xff80fe60 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = Idle interrupt mask = <- SMP: XXX trap number = 12 panic: page fault mp_lock = 01000002; cpuid = 1; lapic.id = 00000000 boot() called on cpu#1 syncing disks... Fatal trap 12: page fault while in kernel mode mp_lock = 01000003; cpuid = 1; lapic.id = 00000000 fault virtual address = 0x30 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01ebbd5 stack pointer = 0x10:0xff80fc60 frame pointer = 0x10:0xff80fc68 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = Idle interrupt mask = bio <- SMP: XXX trap number = 12 panic: page fault mp_lock = 01000003; cpuid = 1; lapic.id = 00000000 boot() called on cpu#1 Uptime: 1m33s dumping to dev #da/0x20001, offset 128 dump 1023 1022 1021 1020 1019 1018 1017 1016 1015 1014 1013 1012 1011 1010 1009 1008 1007 1006 1005 1004 1003 1002 1001 1000 999 998 997 996 995 994 993 992 991 990 989 988 987 986 985 984 983 982 981 980 979 978 977 976 975 974 973 972 971 970 969 968 967 966 965 964 963 962 961 960 959 958 957 956 955 954 953 952 951 950 949 948 947 946 945 944 943 942 941 940 939 938 937 936 935 934 933 932 931 930 929 928 927 926 925 924 923 922 921 920 919 918 917 916 915 914 913 912 911 910 909 908 907 906 905 904 903 902 901 900 899 898 897 896 895 894 893 892 891 890 889 888 887 886 885 884 883 882 881 880 879 878 877 876 875 874 873 872 871 870 869 868 867 866 865 864 863 862 861 860 859 858 857 856 855 854 853 852 851 850 849 848 847 846 845 844 843 842 841 840 839 838 837 836 835 834 833 832 831 830 829 828 827 826 825 824 823 822 821 820 819 818 817 816 815 814 813 812 811 810 809 808 807 806 805 804 803 802 801 800 799 798 797 796 795 794 793 792 791 790 789 788 787 786 785 784 ! 783 782 781 780 779 778 777 776 775 774 773 772 771 770 769 768 767 766 765 764 763 762 761 760 759 758 757 756 755 754 753 752 751 750 749 748 747 746 745 744 743 742 741 740 739 738 737 736 735 734 733 732 731 730 729 728 727 726 725 724 723 722 721 720 719 718 717 716 715 714 713 712 711 710 709 708 707 706 705 704 703 702 701 700 699 698 697 696 695 694 693 692 691 690 689 688 687 686 685 684 683 682 681 680 679 678 677 676 675 674 673 672 671 670 669 668 667 666 665 664 663 662 661 660 659 658 657 656 655 654 653 652 651 650 649 648 647 646 645 644 643 642 641 640 639 638 637 636 635 634 633 632 631 630 629 628 627 626 625 624 623 622 621 620 619 618 617 616 615 614 613 612 611 610 609 608 607 606 605 604 603 602 601 600 599 598 597 596 595 594 593 592 591 590 589 588 587 586 585 584 583 582 581 580 579 578 577 576 575 574 573 572 571 570 569 568 567 566 565 564 563 562 561 560 559 558 557 556 555 554 553 552 551 550 549 548 547 546 545 544 543 542 541 540 539 538 537 ! 536 535 534 533 532 531 530 529 528 527 526 525 524 523 522 521 520 51 9 518 517 516 515 514 513 512 511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 494 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 478 477 476 475 474 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 458 457 456 455 454 453 452 451 450 449 448 447 446 445 444 443 442 441 440 439 438 437 436 435 434 433 432 431 430 429 428 427 426 425 424 423 422 421 420 419 418 417 416 415 414 413 412 411 410 409 408 407 406 405 404 403 402 401 400 399 398 397 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272! 271 270 269 268 267 266 265 264 263 262 261 260 259 258 257 256 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 --- #0 dumpsys () at ../../kern/kern_shutdown.c:474 474 if (dumping++) { (kgdb) bt #0 dumpsys () at ../../kern/kern_shutdown.c:474 #1 0xc0168e8c in boot (howto=260) at ../../kern/kern_shutdown.c:313 #2 0xc01692c5 in panic (fmt=0xc027def9 "%s") at ../../kern/kern_shutdown.c:582 #3 0xc0241186 in trap_fatal (frame=0xff80fc20, eva=48) at ../../i386/i386/trap.c:956 #4 0xc0240dd9 in trap_pfault (frame=0xff80fc20, usermode=0, eva=48) at ../../i386/i386/trap.c:849 #5 0xc024091f in trap (frame={tf_fs = 1644167192, tf_es = -8388592, tf_ds = -945750000, tf_edi = 0, tf_esi = -945745920, tf_ebp = -8323992, tf_isp = -8324020, tf_ebx = -1071000356, tf_edx = 1744846912, tf_ecx = -445390528, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071727659, tf_cs = 8, tf_eflags = 66050, tf_esp = -945745920, tf_ss = -945745920}) at ../../i386/i386/trap.c:448 #6 0xc01ebbd5 in acquire_lock (lk=0xc029d4dc) at machine/globals.h:114 #7 0xc01efd48 in softdep_update_inodeblock (ip=0xc7a11000, bp=0xd3f4c3f4, waitfor=0) at ../../ufs/ffs/ffs_softdep.c:3775 #8 0xc01eacde in ffs_update (vp=0xe573e140, waitfor=0) at ../../ufs/ffs/ffs_inode.c:106 #9 0xc01f3367 in ffs_sync (mp=0xc7903800, waitfor=2, cred=0xc1c87800, p=0xc02bfb60) at ../../ufs/ffs/ffs_vfsops.c:1014 #10 0xc019a153 in sync (p=0xc02bfb60, uap=0x0) at ../../kern/vfs_syscalls.c:547 #11 0xc0168c5f in boot (howto=256) at ../../kern/kern_shutdown.c:234 #12 0xc01692c5 in panic (fmt=0xc027def9 "%s") at ../../kern/kern_shutdown.c:582 #13 0xc0241186 in trap_fatal (frame=0xff80fe04, eva=40) at ../../i386/i386/trap.c:956 #14 0xc0240dd9 in trap_pfault (frame=0xff80fe04, usermode=0, eva=40) at ../../i386/i386/trap.c:849 #15 0xc024091f in trap (frame={tf_fs = 24, tf_es = -944963568, tf_ds = -8388592, tf_edi = -494942096, tf_esi = 544638623, tf_ebp = -8323488, tf_isp = -8323536, tf_ebx = -494941984, tf_edx = -941646728, tf_ecx = -491566560, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071887347, tf_cs = 8, tf_eflags = 66182, tf_esp = -944939216, tf_ss = -1071032704}) at ../../i386/i386/trap.c:448 #16 0xc01c4c0d in syncache_socket (sc=0xe2b34a20, lso=0xe2043740) at ../../netinet/tcp_syncache.c:669 #17 0xc01c4d59 in syncache_expand (inc=0xff80fed8, th=0xc1d56834, sop=0xff80fed4, m=0xc1d93900) at ../../netinet/tcp_syncache.c:755 #18 0xc01c0820 in tcp_input (m=0xc1d93900, off0=20, proto=6) at ../../netinet/tcp_input.c:687 #19 0xc01bca5a in ip_input (m=0xc1d93900) at ../../netinet/ip_input.c:815 #20 0xc01bcabb in ipintr () at ../../netinet/ip_input.c:843 (kgdb) bt full #0 dumpsys () at ../../kern/kern_shutdown.c:474 error = 0 #1 0xc0168e8c in boot (howto=260) at ../../kern/kern_shutdown.c:313 howto = 260 #2 0xc01692c5 in panic (fmt=0xc027def9 "%s") at ../../kern/kern_shutdown.c:582 fmt = 0xc027def9 "%s" bootopt = 260 buf = "page fault", '\000' #3 0xc0241186 in trap_fatal (frame=0xff80fc20, eva=48) at ../../i386/i386/trap.c:956 frame = (struct trapframe *) 0xff80fc20 eva = 0 code = 16 type = 12 ss = 16 esp = 0 softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, ssd_dpl = 0, ssd_p = 1, ssd_xx = 0, ssd_xx1 = 3, ssd_def32 = 1, ssd_gran = 1} #4 0xc0240dd9 in trap_pfault (frame=0xff80fc20, usermode=0, eva=48) at ../../i386/i386/trap.c:849 va = 0 vm = (struct vmspace *) 0x0 map = 0x0 rv = 0 ftype = 255 'ÿ' p = (struct proc *) 0x0 #5 0xc024091f in trap (frame={tf_fs = 1644167192, tf_es = -8388592, tf_ds = -945750000, tf_edi = 0, tf_esi = -945745920, tf_ebp = -8323992, tf_isp = -8324020, tf_ebx = -1071000356, tf_edx = 1744846912, tf_ecx = -445390528, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071727659, tf_cs = 8, tf_eflags = 66050, tf_esp = -945745920, tf_ss = -945745920}) at ../../i386/i386/trap.c:448 p = (struct proc *) 0x0 sticks = 15273047690838032448 i = 0 ucode = 0 type = 12 code = 0 eva = 48 #6 0xc01ebbd5 in acquire_lock (lk=0xc029d4dc) at machine/globals.h:114 val = 0 lk = (struct lockit *) 0x6a004040 holder = -945745920 #7 0xc01efd48 in softdep_update_inodeblock (ip=0xc7a11000, bp=0xd3f4c3f4, waitfor=0) at ../../ufs/ffs/ffs_softdep.c:3775 ip = (struct inode *) 0xc7a11000 inodedep = (struct inodedep *) 0xc01f843e wk = (struct worklist *) 0xc7a11000 gotit = -945745920 #8 0xc01eacde in ffs_update (vp=0xe573e140, waitfor=0) at ../../ufs/ffs/ffs_inode.c:106 fs = (struct fs *) 0xc790b800 bp = (struct buf *) 0xd3f4c3f4 ip = (struct inode *) 0xc7a11000 error = 0 #9 0xc01f3367 in ffs_sync (mp=0xc7903800, waitfor=2, cred=0xc1c87800, p=0xc02bfb60) at ../../ufs/ffs/ffs_vfsops.c:1014 nvp = (struct vnode *) 0xe573e080 vp = (struct vnode *) 0xe573e140 ip = (struct inode *) 0x0 ump = (struct ufsmount *) 0xc7903e00 fs = (struct fs *) 0xc790b800 error = 0 allerror = 0 #10 0xc019a153 in sync (p=0xc02bfb60, uap=0x0) at ../../kern/vfs_syscalls.c:547 p = (struct proc *) 0xc02bfb60 mp = (struct mount *) 0xc7903800 nmp = (struct mount *) 0x0 asyncflag = 0 #11 0xc0168c5f in boot (howto=256) at ../../kern/kern_shutdown.c:234 bp = (struct buf *) 0x0 iter = -1072262490 nbusy = -8323736 pbusy = 0 howto = 256 #12 0xc01692c5 in panic (fmt=0xc027def9 "%s") at ../../kern/kern_shutdown.c:582 fmt = 0xc027def9 "%s" bootopt = 256 buf = "page fault", '\000' #13 0xc0241186 in trap_fatal (frame=0xff80fe04, eva=40) at ../../i386/i386/trap.c:956 frame = (struct trapframe *) 0xff80fe04 eva = 0 code = 16 type = 12 ss = 16 esp = 0 softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, ssd_dpl = 0, ssd_p = 1, ssd_xx = 0, ssd_xx1 = 0, ssd_def32 = 1, ssd_gran = 1} #14 0xc0240dd9 in trap_pfault (frame=0xff80fe04, usermode=0, eva=40) at ../../i386/i386/trap.c:849 va = 0 vm = (struct vmspace *) 0x0 map = 0x0 rv = 0 ftype = 255 'ÿ' p = (struct proc *) 0x0 #15 0xc024091f in trap (frame={tf_fs = 24, tf_es = -944963568, tf_ds = -8388592, tf_edi = -494942096, tf_esi = 544638623, tf_ebp = -8323488, tf_isp = -8323536, tf_ebx = -494941984, tf_edx = -941646728, tf_ecx = -491566560, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071887347, tf_cs = 8, tf_eflags = 66182, tf_esp = -944939216, tf_ss = -1071032704}) at ../../i386/i386/trap.c:448 p = (struct proc *) 0x0 sticks = 14388261048073598784 i = 0 ucode = 0 type = 12 code = 0 eva = 40 #16 0xc01c4c0d in syncache_socket (sc=0xe2b34a20, lso=0xe2043740) at ../../netinet/tcp_syncache.c:669 lso = (struct socket *) 0x0 inp = (struct inpcb *) 0xe27fc820 so = (struct socket *) 0xe2170dc0 tp = (struct tcpcb *) 0x62000000 #17 0xc01c4d59 in syncache_expand (inc=0xff80fed8, th=0xc1d56834, sop=0xff80fed4, m=0xc1d93900) at ../../netinet/tcp_syncache.c:755 inc = (struct in_conninfo *) 0xff80fed8 sop = (struct socket **) 0xff80fed4 m = (struct mbuf *) 0x0 sc = (struct syncache *) 0xe2b34a20 sch = (struct syncache_head *) 0x0 so = (struct socket *) 0xff80fed8 #18 0xc01c0820 in tcp_input (m=0xc1d93900, off0=20, proto=6) at ../../netinet/tcp_input.c:687 inc = {inc_flags = 0 '\000', inc_len = 4 '\004', inc_pad = 51105, inc_ie = {ie_fport = 47628, ie_lport = 20480, ie_dependfaddr = { ie46_foreign = {ia46_pad32 = {3223037149, 3345611264, 3349218404}, ia46_addr4 = {s_addr = 3555886751}}, ie6_foreign = {__u6_addr = { __u6_addr8 = "ݤ\eÀ\000úiÇd\004¡Ç\237\206òÓ", __u6_addr16 = {42205, 49179, 64000, 51049, 1124, 51105, 34463, 54258}, __u6_addr32 = { 3223037149, 3345611264, 3349218404, 3555886751}}}}, ie_dependladdr = {ie46_local = {ia46_pad32 = {0, 1, 4294901760}, ia46_addr4 = { s_addr = 544638623}}, ie6_local = {__u6_addr = {__u6_addr8 = "\000\000\000\000\001\000\000\000\000\000ÿÿ\237\206v ", __u6_addr16 = {0, 0, 1, 0, 0, 65535, 34463, 8310}, __u6_addr32 = {0, 1, 4294901760, 544638623}}}}}, inc_dependroute = {inc4_route = {ro_rt = 0x0, ro_dst = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = "\000\000\000\0004\000\020\006\000P\fº\000"}}, inc6_route = {ro_rt = 0x0, ro_dst = {sin6_len = 0 '\000', sin6_family = 0 '\000', sin6_port = 0, sin6_flowinfo = 3407872, sin6_addr = {__u6_addr = { __u6_addr8 = "\020\006\000P\fº\000\000\000úiÇ hÕÁ", __u6_addr16 = {1552, 20480, 47628, 0, 64000, 51049, 26656, 49621}, __u6_addr32 = {1342178832, 47628, 3345611264, 3251988512}}}, sin6_scope_id = 544638623}}}} th = (struct tcphdr *) 0xc1d56834 ip = (struct ip *) 0xc1d56820 ipov = (struct ipovly *) 0xe24c7dc0 inp = (struct inpcb *) 0xe24c7dc0 optp = (u_char *) 0xc1d56848 "\001\001\b\n\003ü\030\n" optlen = 12 len = -1042728704 tlen = 0 off = -1042728704 drop_hdrlen = 52 tp = (struct tcpcb *) 0xe24c7e80 thflags = 16 so = (struct socket *) 0xe2043740 todrop = -1042728704 acked = -498303552 ourfinisacked = -1042728704 needoutput = 0 tiwin = 49248 to = {to_flags = 0, to_tsval = 0, to_tsecr = 0, to_cc = 0, to_ccecho = 0, to_mss = 0, to_requested_s_scale = 0 '\000', to_pad = 0 '\000'} taop = (struct rmxp_tao *) 0xc1d93900 tao_noncached = {tao_cc = 3222983847, tao_ccsent = 3345611264, tao_mssopt = 26642} rstreason = 0 #19 0xc01bca5a in ip_input (m=0xc1d93900) at ../../netinet/ip_input.c:815 nh = 0 ip = (struct ip *) 0xc1d56820 fp = (struct ipq *) 0x1 ia = (struct in_ifaddr *) 0xc7a10d00 ifa = (struct ifaddr *) 0x0 i = 0 hlen = 20 mff = 0 checkif = 1 sum = 0 divert_cookie = 0 pkt_dst = {s_addr = 544638623} rule = (struct ip_fw *) 0x0 #20 0xc01bcabb in ipintr () at ../../netinet/ip_input.c:843 s = 0 m = (struct mbuf *) 0xc1d93900 (kgdb) up #1 0xc0168e8c in boot (howto=260) at ../../kern/kern_shutdown.c:313 313 dumpsys(); (kgdb) #2 0xc01692c5 in panic (fmt=0xc027def9 "%s") at ../../kern/kern_shutdown.c:582 582 boot(bootopt); (kgdb) #3 0xc0241186 in trap_fatal (frame=0xff80fc20, eva=48) at ../../i386/i386/trap.c:956 956 panic("%s", trap_msg[type]); (kgdb) #4 0xc0240dd9 in trap_pfault (frame=0xff80fc20, usermode=0, eva=48) at ../../i386/i386/trap.c:849 849 trap_fatal(frame, eva); (kgdb) #5 0xc024091f in trap (frame={tf_fs = 1644167192, tf_es = -8388592, tf_ds = -945750000, tf_edi = 0, tf_esi = -945745920, tf_ebp = -8323992, tf_isp = -8324020, tf_ebx = -1071000356, tf_edx = 1744846912, tf_ecx = -445390528, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071727659, tf_cs = 8, tf_eflags = 66050, tf_esp = -945745920, tf_ss = -945745920}) at ../../i386/i386/trap.c:448 448 (void) trap_pfault(&frame, FALSE, eva); (kgdb) #6 0xc01ebbd5 in acquire_lock (lk=0xc029d4dc) at machine/globals.h:114 114 GLOBAL_FUNC(curproc) (kgdb) #7 0xc01efd48 in softdep_update_inodeblock (ip=0xc7a11000, bp=0xd3f4c3f4, waitfor=0) at ../../ufs/ffs/ffs_softdep.c:3775 3775 ACQUIRE_LOCK(&lk); (kgdb) #8 0xc01eacde in ffs_update (vp=0xe573e140, waitfor=0) at ../../ufs/ffs/ffs_inode.c:106 106 softdep_update_inodeblock(ip, bp, waitfor); (kgdb) #9 0xc01f3367 in ffs_sync (mp=0xc7903800, waitfor=2, cred=0xc1c87800, p=0xc02bfb60) at ../../ufs/ffs/ffs_vfsops.c:1014 1014 UFS_UPDATE(vp, 0); (kgdb) #10 0xc019a153 in sync (p=0xc02bfb60, uap=0x0) at ../../kern/vfs_syscalls.c:547 547 VFS_SYNC(mp, MNT_NOWAIT, (kgdb) #11 0xc0168c5f in boot (howto=256) at ../../kern/kern_shutdown.c:234 234 sync(&proc0, NULL); (kgdb) #12 0xc01692c5 in panic (fmt=0xc027def9 "%s") at ../../kern/kern_shutdown.c:582 582 boot(bootopt); (kgdb) #13 0xc0241186 in trap_fatal (frame=0xff80fe04, eva=40) at ../../i386/i386/trap.c:956 956 panic("%s", trap_msg[type]); (kgdb) #14 0xc0240dd9 in trap_pfault (frame=0xff80fe04, usermode=0, eva=40) at ../../i386/i386/trap.c:849 849 trap_fatal(frame, eva); (kgdb) #15 0xc024091f in trap (frame={tf_fs = 24, tf_es = -944963568, tf_ds = -8388592, tf_edi = -494942096, tf_esi = 544638623, tf_ebp = -8323488, tf_isp = -8323536, tf_ebx = -494941984, tf_edx = -941646728, tf_ecx = -491566560, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071887347, tf_cs = 8, tf_eflags = 66182, tf_esp = -944939216, tf_ss = -1071032704}) at ../../i386/i386/trap.c:448 448 (void) trap_pfault(&frame, FALSE, eva); (kgdb) #16 0xc01c4c0d in syncache_socket (sc=0xe2b34a20, lso=0xe2043740) at ../../netinet/tcp_syncache.c:669 669 tp->t_flags = sc->sc_tp->t_flags & (TF_NOPUSH|TF_NODELAY); (kgdb) print *tp cannot read proc at 0 (kgdb) print *so $1 = {so_zone = 0xc78db600, so_type = 1, so_options = 12, so_linger = 0, so_state = 4099, so_pcb = 0xe27fc820 " :|â\034f\216Ç@Ê\177â \017,À", so_proto = 0xc0298d88, so_head = 0xe2043740, so_incomp = {tqh_first = 0x0, tqh_last = 0x0}, so_comp = {tqh_first = 0x0, tqh_last = 0x0}, so_list = {tqe_next = 0x0, tqe_prev = 0xe2043760}, so_qlen = 0, so_incqlen = 0, so_qlimit = 0, so_timeo = 0, so_error = 0, so_sigio = 0x0, so_oobmark = 0, so_aiojobq = {tqh_first = 0x0, tqh_last = 0xe2170e04}, so_rcv = {sb_cc = 0, sb_hiwat = 49152, sb_mbcnt = 0, sb_mbmax = 262144, sb_lowat = 1, sb_mb = 0x0, sb_sel = {si_pid = 0, si_note = {slh_first = 0x0}, si_flags = 0}, sb_flags = 0, sb_timeo = 0}, so_snd = { sb_cc = 0, sb_hiwat = 49152, sb_mbcnt = 0, sb_mbmax = 262144, sb_lowat = 2048, sb_mb = 0x0, sb_sel = {si_pid = 0, si_note = { slh_first = 0x0}, si_flags = 0}, sb_flags = 0, sb_timeo = 0}, so_upcall = 0, so_upcallarg = 0x0, so_cred = 0xc1c87800, so_gencnt = 11536, so_emuldata = 0x0, so_accf = 0x0} (kgdb) print *sc $2 = {sc_inp_gencnt = 3803400576, sc_tp = 0x0, sc_ipopts = 0x0, sc_inc = {inc_flags = 0 '\000', inc_len = 0 '\000', inc_pad = 0, inc_ie = { ie_fport = 47628, ie_lport = 20480, ie_dependfaddr = {ie46_foreign = {ia46_pad32 = {0, 0, 0}, ia46_addr4 = {s_addr = 3555886751}}, ie6_foreign = {__u6_addr = {__u6_addr8 = '\000' , "\237\206òÓ", __u6_addr16 = {0, 0, 0, 0, 0, 0, 34463, 54258}, __u6_addr32 = {0, 0, 0, 3555886751}}}}, ie_dependladdr = {ie46_local = {ia46_pad32 = {0, 0, 0}, ia46_addr4 = {s_addr = 544638623}}, ie6_local = {__u6_addr = {__u6_addr8 = '\000' , "\237\206v ", __u6_addr16 = {0, 0, 0, 0, 0, 0, 34463, 8310}, __u6_addr32 = {0, 0, 0, 544638623}}}}}, inc_dependroute = {inc4_route = {ro_rt = 0x0, ro_dst = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' }}, inc6_route = {ro_rt = 0x0, ro_dst = {sin6_len = 0 '\000', sin6_family = 0 '\000', sin6_port = 0, sin6_flowinfo = 0, sin6_addr = {__u6_addr = {__u6_addr8 = '\000' , __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}}}, sc_tsrecent = 0, sc_cc_send = 0, sc_cc_recv = 0, sc_irs = 3353271415, sc_iss = 1762452609, sc_rxttime = 0, sc_rxtslot = 0, sc_peer_mss = 0, sc_wnd = 49152, sc_requested_s_scale = 0 '\000', sc_request_r_scale = 0 '\000', sc_flags = 0 '\000', sc_hash = {tqe_next = 0x0, tqe_prev = 0x0}, sc_timerq = { tqe_next = 0x0, tqe_prev = 0x0}} (kgdb) list 664 tp->snd_wl1 = sc->sc_irs; 665 tp->rcv_up = sc->sc_irs + 1; 666 tp->rcv_wnd = sc->sc_wnd; 667 tp->rcv_adv += tp->rcv_wnd; 668 669 tp->t_flags = sc->sc_tp->t_flags & (TF_NOPUSH|TF_NODELAY); 670 if (sc->sc_flags & SCF_NOOPT) 671 tp->t_flags |= TF_NOOPT; 672 if (sc->sc_flags & SCF_WINSCALE) { 673 tp->t_flags |= TF_REQ_SCALE|TF_RCVD_SCALE; (kgdb) up #17 0xc01c4d59 in syncache_expand (inc=0xff80fed8, th=0xc1d56834, sop=0xff80fed4, m=0xc1d93900) at ../../netinet/tcp_syncache.c:755 755 so = syncache_socket(sc, *sop); (kgdb) i local inc = (struct in_conninfo *) 0xff80fed8 sop = (struct socket **) 0xff80fed4 m = (struct mbuf *) 0x0 sc = (struct syncache *) 0xe2b34a20 sch = (struct syncache_head *) 0x0 so = (struct socket *) 0xff80fed8 (kgdb) print *so $3 = {so_zone = 0xc7a10400, so_type = -17908, so_options = 20480, so_linger = -23331, so_state = -16357, so_pcb = 0xc769fa00 "", so_proto = 0xc7a10464, so_head = 0xd3f2869f, so_incomp = {tqh_first = 0x0, tqh_last = 0x1}, so_comp = {tqh_first = 0xffff0000, tqh_last = 0x2076869f}, so_list = {tqe_next = 0x0, tqe_prev = 0x0}, so_qlen = 0, so_incqlen = 52, so_qlimit = 1552, so_timeo = 20480, so_error = 47628, so_sigio = 0xc769fa00, so_oobmark = 3251988512, so_aiojobq = {tqh_first = 0x2076869f, tqh_last = 0xd3f2869f}, so_rcv = { sb_cc = 1, sb_hiwat = 3222984274, sb_mbcnt = 1711276044, sb_mbmax = 3252238592, sb_lowat = -1042978798, sb_mb = 0xc769fa00, sb_sel = { si_pid = -8323196, si_note = {slh_first = 0xc01ad4a7}, si_flags = -1536}, sb_flags = 26642, sb_timeo = -15915}, so_snd = {sb_cc = 0, sb_hiwat = 0, sb_mbcnt = 0, sb_mbmax = 0, sb_lowat = 0, sb_mb = 0x0, sb_sel = {si_pid = -8323172, si_note = {slh_first = 0xc01bca5a}, si_flags = 14592}, sb_flags = 20, sb_timeo = 0}, so_upcall = 0x6, so_upcallarg = 0xc1d93900, so_cred = 0x1, so_gencnt = 90194313215, so_emuldata = 0x2076869f, so_accf = 0xc1d56820} (kgdb) list 750 * If seg contains an ACK, but not for our SYN/ACK, send a RST. 751 */ 752 if (th->th_ack != sc->sc_iss + 1) 753 return (0); 754 755 so = syncache_socket(sc, *sop); 756 if (so == NULL) { 757 #if 0 758 resetandabort: 759 /* XXXjlemon check this - is this correct? */ (kgdb) up #18 0xc01c0820 in tcp_input (m=0xc1d93900, off0=20, proto=6) at ../../netinet/tcp_input.c:687 687 if (!syncache_expand(&inc, th, &so, m)) { >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message