Re: [Crash-utility] Re: backtrace problem with crash 0.2.18 on 2.6.14vanilia kernel ia64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Anderson wrote:

Jun'ichi Nomura wrote:

Hi,

Dave Anderson wrote:
 > Xavier also mentioned in a private email that "foreach bt" shows
 > nothing for all non-active tasks, so it appears that something has
 > changed affecting the ia64 unwind facility.  Has anybody else
 > running ia64 on 2.6.14 kernels seen this?

While 'bt' just works on my 2.6.15 vanilla kernel (16KB-page),
I noticed Xavier used 64KB-page kernel but crash assumed
stacksize was 32KB.

 > xb wrote:
 >>          pagesize: 65536
...
 >>         stacksize: 32768

Can this be a cause of the problem?
In kernel, the stack size is 64KB under 64KB-page.
Nice catch -- I didn't even notice his pagesize.  I should learn to
look at my own debug code...

Anyway, it sure looks like it could be the issue here.

Xavier, please try something like this and let us know:

--- ia64.c.orig 2006-01-10 14:07:07.000000000 -0500
+++ ia64.c      2006-01-10 14:07:31.000000000 -0500
@@ -92,6 +92,9 @@ ia64_init(int when)
                case 16384:
                        machdep->stacksize = (power(2, 1) * PAGESIZE());
                        break;
+               case 65536:
+                       machdep->stacksize = (power(2, 0) * PAGESIZE());
+                       break;
                default:
                        machdep->stacksize = 32*1024;
                        break;

Thanks again, Jun-ichi,
  Dave
In crash/ia64.c:ia64_init(),
..
       case 4096:
               machdep->stacksize = (power(2, 3) * PAGESIZE());
               break;
       case 8192:
               machdep->stacksize = (power(2, 2) * PAGESIZE());
               break;
       case 16384:
               machdep->stacksize = (power(2, 1) * PAGESIZE());
               break;
       default:
               machdep->stacksize = 32*1024;
               break;
..

In include/asm-ia64/ptrace.h of kernel,
   #if defined(CONFIG_IA64_PAGE_SIZE_4KB)
   # define KERNEL_STACK_SIZE_ORDER                3
   #elif defined(CONFIG_IA64_PAGE_SIZE_8KB)
   # define KERNEL_STACK_SIZE_ORDER                2
   #elif defined(CONFIG_IA64_PAGE_SIZE_16KB)
   # define KERNEL_STACK_SIZE_ORDER                1
   #else
   # define KERNEL_STACK_SIZE_ORDER                0
   #endif

Thanks,
Jun'ichi "Nick" Nomura

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

------------------------------------------------------------------------

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility
Hello Dave and Jun'ichi

With the patch it works fine !
Thanks again to all.

crash> bt 1
PID: 1      TASK: e000000101630000  CPU: 2   COMMAND: "init"
#0 [BSP:e000000101631330] schedule at a000000100573740
#1 [BSP:e0000001016312f8] schedule_timeout at a000000100576490
#2 [BSP:e0000001016311c8] do_select at a000000100180610
#3 [BSP:e0000001016310e8] sys_select at a000000100181030
#4 [BSP:e0000001016310e8] ia64_ret_from_syscall at a00000010000b460
 EFRAME: e00000010163fe40
     B0: 4000000000009dd0      CR_IIP: a000000000010640
CR_IPSR: 00001213081a6018      CR_IFS: 0000000000000005
 AR_PFS: c000000000000005      AR_RSC: 000000000000000f
AR_UNAT: 0000000000000000     AR_RNAT: 0000000000000000
 AR_CCV: 0000000000000000     AR_FPSR: 0009804c8a70033f
 LOADRS: 0000000001080000 AR_BSPSTORE: 600fffff7fff00d0
     B6: 2000000000269800          B7: 0000000000000000
     PR: 0000000000026261          R1: 20000000002e0238
     R2: 0000000000000000          R3: ffffffffffff00e0
     R8: 8000000000000000          R9: 2000000000345340
    R10: 0000000000000000         R11: c000000000000a19
    R12: 600fffffffa0d590         R13: 2000000000044ce0
    R14: 20000000003410f0         R15: 0000000000000441
    R16: 0000000000000000         R17: 0000000000000000
    R18: 0000000000000000         R19: 0000000000000000
    R20: 0009804c8a70033f         R21: 4000000000009bf0
    R22: 0000000000000000         R23: 600fffff7fff00d0
    R24: 0000000000000000         R25: 0000000000000000
    R26: c00000000000020c         R27: 000000000000000f
    R28: a000000000010640         R29: 00001213081a6018
    R30: 0000000000000008         R31: 0000000000026261
     F6: 000000000000000000000     F7: 000000000000000000000
     F8: 000000000000000000000     F9: 000000000000000000000
    F10: 000000000000000000000    F11: 000000000000000000000
crash>
begin:vcard
fn:Xavier Bru
n:Bru;Xavier
adr:;;1 rue de Provence, BP 208;38432 Echirolles Cedex;;;France
email;internet:Xavier.Bru@xxxxxxxx
title:BULL/DT/Open Software/linux/ia64
tel;work:+33 (0)4 76 29 77 45
tel;fax:+33 (0)4 76 29 77 70 
x-mozilla-html:TRUE
url:http://www.bull.com
version:2.1
end:vcard


[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux