I'm newly trying out KDB in the latest mainline on an old x86 box,
and I saw the following:

 > / # echo ttyS0 >/sys/module/kgdboc/parameters/kgdboc
> [  423.670596] kgdb: Registered I/O driver kgdboc.                            
>   
> / # echo g >/proc/sysrq-trigger                                               
>   
> [  439.174124] SysRq : DEBUG                                                  
>   
> [  439.175011] int3: 0000 [#1] SMP                                            
>   
> [  439.175011] Modules linked in:                                             
>   
> [  439.175011]                                                                
>   
> [  439.175011] Pid: 506, comm: ash Not tainted 3.1.0-rc2+ #2                  
> /D
> 865PERL                                                                       
>   
> [  439.175011] EIP: 0060:[<c108ccb0>] EFLAGS: 00000002 CPU: 0                 
>   
> [  439.175011] EIP is at kgdb_breakpoint+0x10/0x20                            
>   
> [  439.175011] EAX: c18e0be0 EBX: c18c9820 ECX: 00000000 EDX: 00000001        
>   
> [  439.175011] ESI: 00000067 EDI: 00000007 EBP: c77c5efc ESP: c77c5efc        
>   
> [  439.175011]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068                  
>   
> [  439.175011] Process ash (pid: 506, ti=c77c4000 task=c7662700 
> task.ti=c77c4000
> )                                                                             
>   
> [  439.175011] Stack:                                                         
>   
> [  439.175011]  c77c5f08 c108cd1e c77c5f14 c77c5f2c c127ed93 c186c811 
> c1806082 0
> 0e1e700                                                                       
>   
> [  439.175011]  00000282 09d99000 00000002 fffffffb c77c5f3c c127ee85 
> c7519400 c
> 127ee40                                                                       
>   
> [  439.175011]  c77c5f60 c113a086 c77c5f98 00000002 09d99000 c7672f00 
> c7672f00 0
> 9d99000                                                                       
>   
> [  439.175011] Call Trace:                                                    
>   
> [  439.175011]  [<c108cd1e>] sysrq_handle_dbg+0x1e/0x50                       
>   
> [  439.175011]  [<c127ed93>] __handle_sysrq+0x73/0x120                        
>   
> [  439.175011]  [<c127ee85>] write_sysrq_trigger+0x45/0x50                    
>   
> [  439.175011]  [<c127ee40>] ? __handle_sysrq+0x120/0x120                     
>   
> [  439.175011]  [<c113a086>] proc_reg_write+0x56/0x80                         
>   
> [  439.175011]  [<c10f38f9>] vfs_write+0x99/0x160                             
>   
> [  439.175011]  [<c113a030>] ? proc_reg_poll+0x70/0x70                        
>   
> [  439.175011]  [<c10f3f5d>] sys_write+0x3d/0x70                              
>   
> [  439.175011]  [<c1613f75>] syscall_call+0x7/0xb                             
>   
> [  439.175011]  [<c1610000>] ? trustee_thread+0x310/0x5a0                     
>   
> [  439.175011] Code: 0f 44 d0 5d 89 d0 c3 8d 74 26 00 5d ba ff ff ff ff 89 d0 
> c3
>  8d b4 26 00 00 00 00 55 89 e5 3e ff 05 68 c5 9e c1 0f ae f8 89 f6 cc <0f> ae 
> f8
>  89 f6 3e ff 0d 68 c5 9e c1 5d c3 66 90 55 89 e5 e8 d8                        
>   
> [  439.175011] EIP: [<c108ccb0>] kgdb_breakpoint+0x10/0x20 SS:ESP 
> 0068:c77c5efc 
> [  439.175011] ---[ end trace 473db697683685fe ]---                           
>   
> [  439.175011] note: ash[506] exited with preempt_count 1                     
>   
> [  439.341606] BUG: scheduling while atomic: ash/506/0x10000001               
>   
> [  439.347266] Modules linked in:                                             
>   
> [  439.350334] Pid: 506, comm: ash Tainted: G      D     3.1.0-rc2+ #2        
>   
> [  439.356597] Call Trace:                                                    
>   
> [  439.359059]  [<c103c8f4>] ? printk+0x24/0x40                               
>   
> [  439.363337]  [<c102f619>] __schedule_bug+0x59/0x60                         
>   
> [  439.368136]  [<c161240e>] schedule+0x9de/0xa20                             
>   
> [  439.372588]  [<c105b70d>] ? __run_hrtimer+0x8d/0x1a0                       
>   
> [  439.377560]  [<c105bab7>] ? hrtimer_interrupt+0x137/0x240                  
>   
> [  439.382964]  [<c109a7e8>] ? rcu_irq_exit+0x8/0x10                          
>   
> [  439.387674]  [<c1041940>] ? irq_exit+0x40/0xa0                             
>   
> [  439.392125]  [<c101b04b>] ? smp_apic_timer_interrupt+0x5b/0x90             
>   
> [  439.397965]  [<c1038d66>] __cond_resched+0x16/0x30                         
>   
> [  439.402764]  [<c1612665>] _cond_resched+0x25/0x30                          
>   
> [  439.407475]  [<c16133eb>] down_read+0xb/0x20                               
>   
> [  439.411751]  [<c103d9cb>] exit_mm+0x2b/0x110                               
>   
> [  439.416028]  [<c103e54b>] do_exit+0x18b/0x790                              
>   
> [  439.420396]  [<c103c8f4>] ? printk+0x24/0x40                               
>   
> [  439.424675]  [<c1614fcf>] oops_end+0xbf/0xc0                               
>   
> [  439.428953]  [<c1004ef0>] die+0x50/0x70                                    
>   
> [  439.432798]  [<c1614781>] do_trap+0x91/0xc0                                
>   
> [  439.436989]  [<c1614c6a>] do_int3+0x6a/0x90                                
>   
> [  439.441181]  [<c16146d5>] int3+0x29/0x30                                   
>   
> [  439.445115]  [<c108ccb0>] ? kgdb_breakpoint+0x10/0x20                      
>   
> [  439.450175]  [<c108cd1e>] sysrq_handle_dbg+0x1e/0x50                       
>   
> [  439.455148]  [<c127ed93>] __handle_sysrq+0x73/0x120                        
>   
> [  439.460034]  [<c127ee85>] write_sysrq_trigger+0x45/0x50                    
>   
> [  439.465266]  [<c127ee40>] ? __handle_sysrq+0x120/0x120                     
>   
> [  439.470411]  [<c113a086>] proc_reg_write+0x56/0x80                         
>   
> [  439.475208]  [<c10f38f9>] vfs_write+0x99/0x160                             
>   
> [  439.479659]  [<c113a030>] ? proc_reg_poll+0x70/0x70                        
>   
> [  439.484545]  [<c10f3f5d>] sys_write+0x3d/0x70                              
>   
> [  439.488910]  [<c1613f75>] syscall_call+0x7/0xb                             
>   
> [  439.493361]  [<c1610000>] ? trustee_thread+0x310/0x5a0                     
>   
> Segmentation fault                                                            
>   
> uptime3: 439.51 398.52                                                        
>   
>                                                                               
>   
>                                                                               
>   
> BusyBox v1.2.0 (2007.02.09-05:17+0000) Built-in shell (ash)                   
>   
> Enter 'help' for a list of built-in commands.                                 
>   
>                                                                               
>   
> ash: can't access tty; job control turned off                                 
>   
> / # 

Is this the type of thing that would be unstable in an '-rcX' release?

Should I back up to 3.0, or is there something obvious I'm doing wrong?

I can send the kernel log buffer (dmesg) output on request.  Note that
I'm using both a vga and ttyS0 console. (Don't know if that matters.)

Thanks for any help.
 -- Tim

=============================
Tim Bird
Architecture Group Chair, CE Workgroup of the Linux Foundation
Senior Staff Engineer, Sony Network Entertainment
=============================


------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to