usb/88445: Computer reboots after printing CUPS test page on HP LaserJet 1010 USB

Alex Pivovarov apivovarov at gmail.com
Thu Nov 3 03:50:15 PST 2005


>Number:         88445
>Category:       usb
>Synopsis:       Computer reboots after printing CUPS test page on HP LaserJet 1010 USB
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 03 11:50:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alex Pivovarov
>Release:        5.4
>Organization:
>Environment:
FreeBSD st1.fqdn 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Wed Oct 19
20:52:56 MSD 2005     root at st1.fqdn:/usr/src/sys/i386/compile/st1deb
i386
>Description:
Computer reboots after printing a page on USB Printer HP LaserJet 1010.
Using print system - LPD with ifhp filter. (I also tried CUPS - the same result).
I tried this situation on two different computers with the same result.
I used branded usb cable (~ 1.5m).
I tested my memory with MEM86 - no errors.
CPU and Memory not overclocked.
See full software and hardware configuration at the end.

Backtrace
st1# kgdb kernel.debug.4 vmcore.4

[GDB will not be able to debug user-mode threads:
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
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 "i386-marcel-freebsd".
#0  doadump () at pcpu.h:159
159     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) where
#0  doadump () at pcpu.h:159
#1  0xc0501662 in boot (howto=260) at ../../../kern/kern_shutdown.c:410
#2  0xc0501928 in panic (fmt=0xc067a977 "from debugger")
    at ../../../kern/kern_shutdown.c:566
#3  0xc045fd91 in db_panic (addr=-1068810355, have_addr=0, count=-1,
    modif=0xd5221acc "") at ../../../ddb/db_command.c:435
#4  0xc045fd28 in db_command (last_cmdp=0xc06d3584, cmd_table=0x0,
    aux_cmd_tablep=0xc06a2c34, aux_cmd_tablep_end=0xc06a2c38)
    at ../../../ddb/db_command.c:349
#5  0xc045fdf0 in db_command_loop () at ../../../ddb/db_command.c:455
#6  0xc0461985 in db_trap (type=12, code=0) at ../../../ddb/db_main.c:221
#7  0xc0518cca in kdb_trap (type=12, code=0, tf=0xd5221c5c)
    at ../../../kern/subr_kdb.c:468
#8  0xc0653fc9 in trap_fatal (frame=0xd5221c5c, eva=0)
    at ../../../i386/i386/trap.c:812
#9  0xc0653d4f in trap_pfault (frame=0xd5221c5c, usermode=0, eva=0)
    at ../../../i386/i386/trap.c:735
#10 0xc065396d in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1068836304,
tf_esi = -1050102144, tf_ebp = -719184740, tf_isp = -719184760, tf_ebx
= -1050102144, tf_edx = 0, tf_ecx = -1050102096, tf_eax = 0, tf_trapno
= 12, tf_err = 2, tf_eip = -1068810355, tf_cs = 8, tf_eflags = 66118,
tf_esp = -719184696, tf_ss = -1068836258})
    at ../../../i386/i386/trap.c:425
#11 0xc064416a in calltrap () at ../../../i386/i386/exception.s:140
#12 0x00000018 in ?? ()
#13 0x00000010 in ?? ()
#14 0x00000010 in ?? ()
#15 0xc04ada30 in ulpt_read_cb () at ../../../dev/usb/ulpt.c:822
#16 0xc04ada5e in ulpt_tick (xsc=0x10246) at ../../../dev/usb/ulpt.c:835
#17 0xc050d4de in softclock (dummy=0x0) at ../../../kern/kern_timeout.c:279
#18 0xc04ed98d in ithread_loop (arg=0xc15de280)
    at ../../../kern/kern_intr.c:547
#19 0xc04ecc20 in fork_exit (callout=0xc04ed83c <ithread_loop>,
    arg=0xc15de280, frame=0xd5221d48) at ../../../kern/kern_fork.c:791
#20 0xc06441cc in fork_trampoline () at ../../../i386/i386/exception.s:209
(kgdb) Quit


----------------------------------------
What I get on the screen when this problem occurs

#Fatal trap
----------------------------------------------------------
Fatal trap 12: page fault while in kernel mode
fault virtual adress    = 0x0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc05b5df9
stack pointer           = 0x10:0xe33a5c9c
frame pointer           = 0x10:0xe33a5c9c
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         = 28 (swi5: clock sio)
trap number             = 12
panic: page fault
Uptime: 1m5s
-----------------------------------------------------------------

or this one

-----------------------------------------------------------------
Fatal trap 12: page fault while in kernel mode
fault virtual adress    = 0x0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc05b5df9
stack pointer           = 0x10:0xe4de6c9c
frame pointer           = 0x10:0xe4de6c9c
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         = 36 (swi5: clock sio)
trap number             = 12
panic: page fault
Uptime: 2m59s
------------------------------------------------------------------


hardware:
CPU: AMD Athlon(tm) XP 1800+ (1531.03-MHz 686-class CPU) (not overclocked)
Chipset: nVidia nForce 2
RAM: 512MB DDR400 (checked by memtest86 v.3.2 - no errors)
Printer: HP LaserJet 1010 USB

or another computer
CPU Intel Celeron 2.6 
Chipset SIS645
RAM 256MB

Soft:
FreeBSD 5.4
Kernel: GENERIC
cups-1.1.23.0
cups-base-1.1.23.0_4
cups-lpr-1.1.23.0
cups-pstoraster-8.15
ghostscript-gnu-7.07_13  (I also tried ghostscript-gpl-8.15)
ghostview-1.5
gsfonts-8.11_2
>How-To-Repeat:
Print some pages on HP LaserJet 1010 or 1012 or 1015 USB.
But computer reboots not always.
Aprox. in 25% case.
Usually it needs no more than 10 page to print for getting result.
It's better to start print from different programs.
It's better to print complex page. e.g. CUPS test page.
I'm not sure but pages must be not plain text.
I printed from firefox, konqueror, openoffice etc.
Use LPD with ifhp filter or CUPS.
Kernel Generic
>Fix:
              
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list