Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jun 2011 11:37:47 +0200
From:      "Richard Kartas" <rkartas@junisphere.net>
To:        <freebsd-bugs@freebsd.org>
Subject:   While executing scp on 8.1-RELEASE: Fatal trap 12: page fault while in kernel mode
Message-ID:  <B8DECFDCDEBF2C458D911D842FB121CB4C9E4A@office01.Junisphere.local>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------_=_NextPart_001_01CC25BF.8AB94762
Content-Type: multipart/related; type="multipart/alternative";
	boundary="----_=_NextPart_002_01CC25BF.8AB94762"


------_=_NextPart_002_01CC25BF.8AB94762
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_003_01CC25BF.8AB94762"


------_=_NextPart_003_01CC25BF.8AB94762
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

=20

While executing several parallel

scp(pass, from, dir, opt);=20

tasks in a multithreaded application, occasionally the following system
crash appears on:

FreeBSD test-v40z2.junisphere.local 8.1-RELEASE FreeBSD 8.1-RELEASE #0:
Mon Jul 19 02:36:49 UTC 2010
root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

=20

=20

=20

The same software runs without problems on FreeBSD 6.1-STABLE.

=20

=20

=20

Dump (full in the enclosed file):

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D

test-v40z2.junisphere.net dumped core - see /var/crash/vmcore.0

=20

Wed May 25 03:29:02 CEST 2011

=20

FreeBSD test-v40z2.junisphere.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0:
Mon Jul 19 02:36:49 UTC 2010
root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

=20

panic: page fault

=20

GNU gdb 6.1.1 [FreeBSD]

Copyright 2004 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 "amd64-marcel-freebsd"...

=20

Unread portion of the kernel message buffer:

=20

=20

Fatal trap 12: page fault while in kernel mode

cpuid =3D 1; apic id =3D 01

fault virtual address   =3D 0x134

fault code              =3D supervisor read data, page not present

instruction pointer     =3D 0x20:0xffffffff805638d2

stack pointer           =3D 0x28:0xffffff8075ffb780

frame pointer           =3D 0x28:0xffffff8075ffb7b0

code segment            =3D base 0x0, limit 0xfffff, type 0x1b

                        =3D DPL 0, pres 1, long 1, def32 0, gran 1

processor eflags        =3D interrupt enabled, resume, IOPL =3D 0

current process         =3D 98095 (scp)

trap number             =3D 12

panic: page fault

cpuid =3D 0

Uptime: 10h33m40s

Physical memory: 4017 MB

Dumping 1360 MB: 1345 1329 1313 1297 1281 1265 1249 1233 1217 1201 1185
1169 1153 1137 1121 1105 1089 1073 1057 1041 1025 1009 993 977 961 945
929 913 897 881 865 849 833 817 801 785 769 753 737 721 705 68

9 673 657 641 625 609 593 577 561 545 529 513 497 481 465 449 433 417
401 385 369 353 337 321 305 289 273 257 241 225 209 193 177 161 145 129
113 97 81 65 49 33 17 1

=20

=20

#0  doadump () at pcpu.h:223

223     pcpu.h: No such file or directory.

        in pcpu.h

(kgdb) #0  doadump () at pcpu.h:223

#1  0xffffffff805a4d29 in boot (howto=3D260)

    at /usr/src/sys/kern/kern_shutdown.c:416

#2  0xffffffff805a515c in panic (fmt=3D0xffffffff80964764 "%s")

    at /usr/src/sys/kern/kern_shutdown.c:590

#3  0xffffffff8088b928 in trap_fatal (frame=3D0xffffff009c2b8000,
eva=3DVariable "eva" is not available.

)

    at /usr/src/sys/amd64/amd64/trap.c:777

#4  0xffffffff8088bcf4 in trap_pfault (frame=3D0xffffff8075ffb6d0,
usermode=3D0)

    at /usr/src/sys/amd64/amd64/trap.c:693

#5  0xffffffff8088c53a in trap (frame=3D0xffffff8075ffb6d0)

    at /usr/src/sys/amd64/amd64/trap.c:451

#6  0xffffffff80871f03 in calltrap ()

    at /usr/src/sys/amd64/amd64/exception.S:223

#7  0xffffffff805638d2 in destroy_dev_sched_cb (dev=3D0x0,

    cb=3D0xffffffff805f5770 <tty_dealloc>, arg=3D0xffffff0001742000)

    at /usr/src/sys/kern/kern_conf.c:1138

#8  0xffffffff805f5eeb in ttydev_close (dev=3D0xffffff009c2a3800,
fflag=3DVariable "fflag" is not available.

)

    at /usr/src/sys/kern/tty.c:340

#9  0xffffffff80530254 in devfs_close (ap=3D0xffffff8075ffb850)

    at /usr/src/sys/fs/devfs/devfs_vnops.c:513

#10 0xffffffff806408e7 in vn_close (vp=3D0xffffff009c523b10, flags=3D3,

    file_cred=3D0xffffff0001a52b00, td=3D0xffffff009c2b8000) at
vnode_if.h:225

#11 0xffffffff806409ba in vn_closefile (fp=3D0xffffff009c0a25f0,

    td=3D0xffffff009c2b8000) at /usr/src/sys/kern/vfs_vnops.c:937

#12 0xffffffff8052e588 in devfs_close_f (fp=3DVariable "fp" is not
available.

)

    at /usr/src/sys/fs/devfs/devfs_vnops.c:528

#13 0xffffffff8056ab23 in _fdrop (fp=3D0xffffff009c0a25f0, td=3DVariable
"td" is not available.

) at file.h:293

#14 0xffffffff8056bd3b in closef (fp=3D0xffffff009c0a25f0,

    td=3D0xffffff009c2b8000) at /usr/src/sys/kern/kern_descrip.c:2117

#15 0xffffffff8056cdfc in fdfree (td=3D0xffffff009c2b8000)

    at /usr/src/sys/kern/kern_descrip.c:1826

#16 0xffffffff80579df7 in exit1 (td=3D0xffffff009c2b8000, rv=3D0)

    at /usr/src/sys/kern/kern_exit.c:281

#17 0xffffffff8057afbe in sys_exit (td=3DVariable "td" is not available.

) at /usr/src/sys/kern/kern_exit.c:109

#18 0xffffffff8088bf07 in syscall (frame=3D0xffffff8075ffbc80)

    at /usr/src/sys/amd64/amd64/trap.c:945

#19 0xffffffff808721e1 in Xfast_syscall ()

    at /usr/src/sys/amd64/amd64/exception.S:374

#20 0x0000000800d0033c in ?? ()

Previous frame inner to this frame (corrupt stack?)

(kgdb)

=20

=20

Best regards

=20

Richard Kartas

Senior Software Engineer

=20

   =20

Junisphere Systems AG
Glatt Tower
P.O. Box 1572
CH-8301 Glattzentrum

=20

Phone +41 43 443 31 80
Direct +41 43 443 31 91
Mobile +41 79 832 08 86

rkartas@junisphere.net <mailto:rkartas@junisphere.net> =20

www.junisphere.net <http://www.junisphere.net/>;           =20

=20

This email contains information which is confidential and may be
privileged. Unless you are the intended addressee (or authorised to
receive for the addressee) you may not use, forward, copy or disclose to
anyone this email or any information contained in this email. If you
have received this email in error, please advise the sender by reply
email immediately and delete this email.

=20

=20

=20


------_=_NextPart_003_01CC25BF.8AB94762
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"


   Hello,


   While executing several = parallel

   scp(pass, from, dir, opt); =

   tasks in a multithreaded = application, occasionally the following
   system crash appears = on:

   FreeBSD test-v40z2.junisphere.local 8.1-RELEASE FreeBSD = 8.1-RELEASE
   #0: Mon Jul 19 02:36:49 UTC 2010     =
   root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  = amd64




   The same software runs = without problems on FreeBSD 6.1-STABLE.




   Dump (full in the = enclosed file):

   =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
   =3D=3D=3D=3D=3D=3D=3D=3D=3D

   test-v40z2.junisphere.net dumped core - see = /var/crash/vmcore.0


   Wed May 25 03:29:02 = CEST 2011


   FreeBSD test-v40z2.junisphere.net 8.1-RELEASE FreeBSD 8.1-RELEASE =
   #0: Mon Jul 19 02:36:49 UTC 2010     =
   root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  = amd64


   panic: page fault


   GNU gdb 6.1.1 = [FreeBSD]

   Copyright 2004 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 = "amd64-marcel-freebsd"...


   Unread portion of the = kernel message buffer:



   Fatal trap 12: page = fault while in kernel mode

   cpuid =3D 1; apic id =3D 01

   fault virtual address   =3D = 0x134

   fault = code           &nb= sp;  =3D supervisor read data, page not =
   present

   instruction = pointer     =3D = 0x20:0xffffffff805638d2

   stack = pointer           =3D = 0x28:0xffffff8075ffb780

   frame = pointer           =3D = 0x28:0xffffff8075ffb7b0

   code = segment           = =3D base 0x0, limit 0xfffff, type 0x1b

              &= nbsp;            = =3D DPL 0, pres 1, long 1, def32 0,
   gran 1

   processor eflags        =3D = interrupt enabled, resume, IOPL =3D 0

   current process         = =3D 98095 (scp)

   trap = number           &= nbsp; =3D 12

   panic: page = fault

   cpuid =3D 0

   Uptime: 10h33m40s

   Physical memory: 4017 = MB

   Dumping 1360 MB: 1345 1329 1313 1297 = 1281 1265 1249 1233 1217 1201
   1185 1169 1153 1137 1121 1105 1089 1073 = 1057 1041 1025 1009 993 977
   961 945 929 913 897 881 865 849 833 817 801 = 785 769 753 737 721 705
   68

   9 673 657 641 625 609 593 577 561 545 529 513 497 481 465 449 433 =
   417 401 385 369 353 337 321 305 289 273 257 241 225 209 193 177 161
   145 = 129 113 97 81 65 49 33 17 1



   #0  doadump () at = pcpu.h:223

   223     pcpu.h: = No such file or directory.

           in = pcpu.h

   (kgdb) #0  doadump () at = pcpu.h:223

   #1  0xffffffff805a4d29 in boot = (howto=3D260)

       at = /usr/src/sys/kern/kern_shutdown.c:416

   #2  0xffffffff805a515c in panic (fmt=3D0xffffffff80964764 = "%s")

       = at = /usr/src/sys/kern/kern_shutdown.c:590

   #3  0xffffffff8088b928 in trap_fatal = (frame=3D0xffffff009c2b8000,
   eva=3DVariable "eva" is not = available.

   )

       at = /usr/src/sys/amd64/amd64/trap.c:777

   #4  0xffffffff8088bcf4 in trap_pfault = (frame=3D0xffffff8075ffb6d0,
   usermode=3D0)

       at = /usr/src/sys/amd64/amd64/trap.c:693

   #5  0xffffffff8088c53a in trap = (frame=3D0xffffff8075ffb6d0)

       at = /usr/src/sys/amd64/amd64/trap.c:451

   #6  0xffffffff80871f03 in calltrap ()

       at = /usr/src/sys/amd64/amd64/exception.S:223

   #7  0xffffffff805638d2 in destroy_dev_sched_cb = (dev=3D0x0,

       = cb=3D0xffffffff805f5770 <tty_dealloc>, =
   arg=3D0xffffff0001742000)

       at = /usr/src/sys/kern/kern_conf.c:1138

   #8  0xffffffff805f5eeb in ttydev_close = (dev=3D0xffffff009c2a3800,
   fflag=3DVariable "fflag" is not = available.

   )

       at = /usr/src/sys/kern/tty.c:340

   #9  0xffffffff80530254 in devfs_close = (ap=3D0xffffff8075ffb850)

       at = /usr/src/sys/fs/devfs/devfs_vnops.c:513

   #10 = 0xffffffff806408e7 in vn_close (vp=3D0xffffff009c523b10, =
   flags=3D3,

       file_cred=3D0xffffff0001a52b00, td=3D0xffffff009c2b8000) at =
   vnode_if.h:225

   #11 0xffffffff806409ba = in vn_closefile (fp=3D0xffffff009c0a25f0,

       td=3D0xffffff009c2b8000) at = /usr/src/sys/kern/vfs_vnops.c:937

   #12 0xffffffff8052e588 in devfs_close_f (fp=3DVariable = "fp" is not
   available.

   )

       at = /usr/src/sys/fs/devfs/devfs_vnops.c:528

   #13 0xffffffff8056ab23 in _fdrop (fp=3D0xffffff009c0a25f0, =
   td=3DVariable "td" is not available.

   ) at file.h:293

   #14 0xffffffff8056bd3b = in closef (fp=3D0xffffff009c0a25f0,

       td=3D0xffffff009c2b8000) at =
   /usr/src/sys/kern/kern_descrip.c:2117

   #15 0xffffffff8056cdfc in fdfree = (td=3D0xffffff009c2b8000)

       at /usr/src/sys/kern/kern_descrip.c:1826

   #16 = 0xffffffff80579df7 in exit1 (td=3D0xffffff009c2b8000, = rv=3D0)

       at = /usr/src/sys/kern/kern_exit.c:281

   #17 0xffffffff8057afbe in sys_exit (td=3DVariable "td" = is not
   available.

   ) at = /usr/src/sys/kern/kern_exit.c:109

   #18 0xffffffff8088bf07 in syscall = (frame=3D0xffffff8075ffbc80)

       at = /usr/src/sys/amd64/amd64/trap.c:945

   #19 0xffffffff808721e1 in Xfast_syscall ()

       at = /usr/src/sys/amd64/amd64/exception.S:374

   #20 0x0000000800d0033c in ?? ()

   Previous frame inner to this frame (corrupt = stack?)

   (kgdb)



   Best = regards


   Richard = Kartas

   Senior = Software Engineer


   3D"rolldisplay_kompositin_RGB_150dpi"    =

   Ju= nisphere Systems AG
   Glatt Tower
   P.O. Box 1572
   CH-8301 = Glattzentrum


   Ph= one +41 43 443 31 80
   Direct +41 43 443 31 91
   Mobile +41 79 832 08 = 86

   [1]rkartas@junisphere.net

   [2]www.junisphere.net    = ;


   Th= is email contains information which is confidential and may be =
   privileged. Unless you are the intended addressee (or authorised to =
   receive for the addressee) you may not use, forward, copy or disclose
   to = anyone this email or any information contained in this email. If
   you = have received this email in error, please advise the sender by
   reply = email immediately and delete this email.=

References

   1. 3D"mailto:rkartas@junisphere.net"
   2. 3D"http://www.junisphere.net/"

------_=_NextPart_003_01CC25BF.8AB94762--

------_=_NextPart_002_01CC25BF.8AB94762--

------_=_NextPart_001_01CC25BF.8AB94762--



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