On Mon, Sep 10, 2001 at 03:24:31PM +0100, Brian Somers wrote:
> > > What sort of problem do you have with ppp ?
> > 1. pcmcia-modem
> > 2. active ppp-link
> > zzz
> > ----
> > wakeup -> panic
> > the same problem is with pppd(as I remember).
> > I'll give you dump-information in 5-6 hours: my pcmcia-modem is at home...
> 
> Hmm, I've never been able to suspend and resume on my laptop (with 
> APM or ACPI), so I'm not going to be able to help I'm afraid.
ohh... I think it is so booooring to boot twice a day...

> My apologies.
never mind, but... could you 'just to see', may be you'll have any ideas?
I think the problem is:
when I suspend my system, pccard is unregistred and disapeared as device.
when I resume, it needs some time to activate device back, but in the
same time ppp or tun or bpf or some network stuff try to talk with this device
and... ta-da
I think I saw the same when I suspend with pccard-NIC at the moment,
when trafshow was running...

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"...
IdlePTD 4993024
initial pcb at 2e85a0
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x14
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc014709f
stack pointer           = 0x10:0xcfc97c60
frame pointer           = 0x10:0xcfc97c78
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         = 616 (ppp)
                        \\|/ ____ \\|/
                        "@'/ .. \\`@"
                        /_| \\__/ |_\\
                           \\__U_/   
panic: from debugger
                        \\|/ ____ \\|/
                        "@'/ .. \\`@"
                        /_| \\__/ |_\\
                           \\__U_/   
panic: from debugger
Uptime: 2m26s

dumping to dev ad0s3b, offset 128
dump ata0: resetting devices .. done
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 /usr/src/sys/kern/kern_shutdown.c:489
489             if (dumping++) {
(kgdb) bt
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:489
#1  0xc0170f68 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:332
#2  0xc01713de in panic (fmt=0xc028b1be "from debugger")
    at /usr/src/sys/kern/kern_shutdown.c:657
#3  0xc01287c1 in db_panic (addr=-1072402273, have_addr=0, count=1, 
    modif=0xcfc97adc "") at /usr/src/sys/ddb/db_command.c:443
#4  0xc0128761 in db_command (last_cmdp=0xc02c69f8, cmd_table=0xc02c6838, 
    aux_cmd_tablep=0xc02be560, aux_cmd_tablep_end=0xc02be564)
    at /usr/src/sys/ddb/db_command.c:341
#5  0xc012882b in db_command_loop () at /usr/src/sys/ddb/db_command.c:465
#6  0xc012aa9f in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:72
#7  0xc0265204 in kdb_trap (type=12, code=0, regs=0xcfc97c20)
    at /usr/src/sys/i386/i386/db_interface.c:167
#8  0xc0273468 in trap_fatal (frame=0xcfc97c20, eva=20)
    at /usr/src/sys/i386/i386/trap.c:929
#9  0xc02731c5 in trap_pfault (frame=0xcfc97c20, usermode=0, eva=20)
    at /usr/src/sys/i386/i386/trap.c:848
#10 0xc02728a4 in trap (frame={tf_fs = -1070727144, tf_es = 16, 
      tf_ds = -1070661616, tf_edi = 0, tf_esi = -1032471552, 
      tf_ebp = -808878984, tf_isp = -808879028, tf_ebx = -808878956, 
      tf_edx = 0, tf_ecx = 19, tf_eax = 64, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1072402273, tf_cs = 8, tf_eflags = 66195, 
      tf_esp = -1032471552, tf_ss = 64}) at /usr/src/sys/i386/i386/trap.c:405
#11 0xc014709f in spec_poll (ap=0xcfc97c94)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/sys/fs/specfs/spec_vnops.c:333
#12 0xc0146d1d in spec_vnoperate (ap=0xcfc97c94)
    at /usr/src/sys/fs/specfs/spec_vnops.c:119
#13 0xc01bfd4f in vn_poll (fp=0xc2ac2200, events=64, cred=0xc2ac6900, 
    p=0xcfb95540) at vnode_if.h:381
#14 0xc01961a3 in selscan (p=0xcfb95540, ibits=0xcfc97d44, obits=0xcfc97d38, 
    nfd=7) at /usr/src/sys/sys/file.h:192
#15 0xc0195b15 in select (p=0xcfb95540, uap=0xcfc97f80)
    at /usr/src/sys/kern/sys_generic.c:838
#16 0xc0273ac5 in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = 0, tf_esi = 134842880, tf_ebp = -1077937900, 
      tf_isp = -808878124, tf_ebx = -1, tf_edx = 134991872, 
      tf_ecx = 134945792, tf_eax = 93, tf_trapno = 0, tf_err = 2, 
      tf_eip = 673186856, tf_cs = 31, tf_eflags = 659, tf_esp = -1077937992, 
      tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1117
#17 0xc026627d in syscall_with_err_pushed ()
#18 0x806de25 in ?? ()
#19 0x804b395 in ?? ()
(kgdb) up 10
#10 0xc02728a4 in trap (frame={tf_fs = -1070727144, tf_es = 16, 
      tf_ds = -1070661616, tf_edi = 0, tf_esi = -1032471552, 
      tf_ebp = -808878984, tf_isp = -808879028, tf_ebx = -808878956, 
      tf_edx = 0, tf_ecx = 19, tf_eax = 64, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1072402273, tf_cs = 8, tf_eflags = 66195, 
      tf_esp = -1032471552, tf_ss = 64}) at /usr/src/sys/i386/i386/trap.c:405
405                             (void) trap_pfault(&frame, FALSE, eva);
(kgdb) up 1
#11 0xc014709f in spec_poll (ap=0xcfc97c94)
    at /usr/src/sys/fs/specfs/spec_vnops.c:333
333             return (*devsw(dev)->d_poll)(dev, ap->a_events, ap->a_p);
(kgdb) list
328             } */ *ap;
329     {
330             dev_t dev;
331     
332             dev = ap->a_vp->v_rdev;
333             return (*devsw(dev)->d_poll)(dev, ap->a_events, ap->a_p);
334     }
335     
336     /* ARGSUSED */
337     static int
(kgdb) up
#12 0xc0146d1d in spec_vnoperate (ap=0xcfc97c94)
    at /usr/src/sys/fs/specfs/spec_vnops.c:119
119             return (VOCALL(spec_vnodeop_p, ap->a_desc->vdesc_offset, ap));
(kgdb) list
114             struct vop_generic_args /* {
115                     struct vnodeop_desc *a_desc;
116                     <other random data follows, presumably>
117             } */ *ap;
118     {
119             return (VOCALL(spec_vnodeop_p, ap->a_desc->vdesc_offset, ap));
120     }
121     
122     static void spec_getpages_iodone __P((struct buf *bp));
123     
(kgdb) up
#13 0xc01bfd4f in vn_poll (fp=0xc2ac2200, events=64, cred=0xc2ac6900, 
    p=0xcfb95540) at vnode_if.h:381
381             rc = VCALL(vp, VOFFSET(vop_poll), &a);
(kgdb) list
376             a.a_desc = VDESC(vop_poll);
377             a.a_vp = vp;
378             a.a_events = events;
379             a.a_cred = cred;
380             a.a_p = p;
381             rc = VCALL(vp, VOFFSET(vop_poll), &a);
382             return (rc);
383     }
384     struct vop_kqfilter_args {
385             struct vnodeop_desc *a_desc;
(kgdb) up
#14 0xc01961a3 in selscan (p=0xcfb95540, ibits=0xcfc97d44, obits=0xcfc97d38, 
    nfd=7) at /usr/src/sys/sys/file.h:192
192             error = (*fp->f_ops->fo_poll)(fp, events, cred, p);
(kgdb) list
187             struct proc *p;
188     {
189             int error;
190     
191             fhold(fp);
192             error = (*fp->f_ops->fo_poll)(fp, events, cred, p);
193             fdrop(fp, p);
194             return (error);
195     }
196     
(kgdb) up
#15 0xc0195b15 in select (p=0xcfb95540, uap=0xcfc97f80)
    at /usr/src/sys/kern/sys_generic.c:838
838             error = selscan(p, ibits, obits, uap->nd);
(kgdb) list
833             PROC_LOCK(p);
834     retry:
835             ncoll = nselcoll;
836             p->p_flag |= P_SELECT;
837             PROC_UNLOCK(p);
838             error = selscan(p, ibits, obits, uap->nd);
839             PROC_LOCK(p);
840             if (error || p->p_retval[0])
841                     goto done;
842             if (atv.tv_sec || atv.tv_usec) {
(kgdb) up
#16 0xc0273ac5 in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = 0, tf_esi = 134842880, tf_ebp = -1077937900, 
      tf_isp = -808878124, tf_ebx = -1, tf_edx = 134991872, 
      tf_ecx = 134945792, tf_eax = 93, tf_trapno = 0, tf_err = 2, 
      tf_eip = 673186856, tf_cs = 31, tf_eflags = 659, tf_esp = -1077937992, 
      tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1117
1117            error = (*callp->sy_call)(p, args);
(kgdb) list
1112            p->p_retval[0] = 0;
1113            p->p_retval[1] = frame.tf_edx;
1114    
1115            STOPEVENT(p, S_SCE, narg);
1116    
1117            error = (*callp->sy_call)(p, args);
1118    
1119            switch (error) {
1120            case 0:
1121                    frame.tf_eax = p->p_retval[0];
(kgdb) up
#17 0xc026627d in syscall_with_err_pushed ()
(kgdb) list
1122                    frame.tf_edx = p->p_retval[1];
1123                    frame.tf_eflags &= ~PSL_C;
1124                    break;
1125    
1126            case ERESTART:
1127                    /*
1128                     * Reconstruct pc, assuming lcall $X,y is 7 bytes,
1129                     * int 0x80 is 2 bytes. We saved this in tf_err.
1130                     */
1131                    frame.tf_eip -= frame.tf_err;
(kgdb) up
#18 0x806de25 in ?? ()

-- 
bye
Juriy Goloveshkin

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to