RE: [Linux-ia64] Kernel dumps stacks while calling exported function from a loadable module

From: Jeff Lee <jeff_at_falconstor.com.tw>
Date: 2002-08-20 21:41:47
My kernel was from the RH installation CD.  I haven't touched it yet.

I used gcc3.1 for a reason: the 2.96 gcc causes the same problem; hence I tried gcc3.1 but that doesn't seem to matter,

Actually, I tried a little experiment.  I printed the address of dummy() out;  surprisingly, the reading of dummy() is different in the exporting module from the calling module (no wonder the kernel stacks).  But, any other global variables look fine.  

What so special about the kernel function symbols in IA 64?

Jeff


-----Original Message-----
From: willy@www.linux.org.uk [mailto:willy@www.linux.org.uk]On Behalf Of Matthew Wilcox
Sent: Tuesday, August 20, 2002 7:11 PM
To: Jeff Lee
Cc: linux-ia64@linuxia64.org
Subject: Re: [Linux-ia64] Kernel dumps stacks while calling exported function from a loadable module

On Tue, Aug 20, 2002 at 05:52:32PM +0800, Jeff Lee wrote:
> I am having trouble in calling exported functions on my RH 7.2 box.
> running 2.4.9-18 kernel.  The calling module causes kernel stack dumps

My understanding is that this kernel was compiled with gcc 2.96 ...

> The compilation line looks like this:
>
> /opt/gcc3.1/bin/gcc -c -DLINUX -D__SMP__ -D"__BOOT_KERNEL_SMP=1"
> -D"__BOOT_KERNEL_UP=0"  -O2 -Wall -Wstrict-prototypes  -D__ia64__ -D_LP64
> -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functions=32
> -fno-common -Wno-unused -mb-step -I -I/usr/src/linux-2.4/drivers/scsi -I
> -I/scsi  -I/usr/src/linux-2.4/drivers/scsi -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4/include/linux/modversions.h-D__KERNEL__  myhello1.c

.. and you're using gcc 3.1, so maybe this compiler mismatch is causing
the problem?

--
Revolutions do not require corporate support. 
Received on Tue Aug 20 04:43:52 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST