public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jeff Lee" <jeff@falconstor.com.tw>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] Kernel dumps stacks while calling exported function from a loadable module
Date: Tue, 20 Aug 2002 09:52:32 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590701905956@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]

Hello everyone, 

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
with messages like this:

insmod[1508]: Unimplemented Instruction Address fault 4398046511120
Using_Versions [] 0x2047fff <-- 
::

My modules are really trivial.  The one exported a dummy function is
listed below:

void dummy(void)
{
  printk("Dummy is called!\n");
}

int init_module(void)      
{ 
  printk("<1>Hello, world\n"); 
  return 0; 
}

And the calling module looks like this:

extern void dummy(void);

int init_module(void)      
{ 
  printk("<00>Hello, world\n"); 
  dummy();
  printk("done\n"); 
  return 0; 
}


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

The module that exports function loads without any problems but the
calling module fails.  

Any input regarding this matter is greatly appreciated.


Jeff Lee


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 10876 bytes --]

             reply	other threads:[~2002-08-20  9:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-20  9:52 Jeff Lee [this message]
2002-08-20 11:11 ` [Linux-ia64] Kernel dumps stacks while calling exported function from a loadable module Matthew Wilcox
2002-08-20 11:22 ` Richard Hirst
2002-08-20 11:41 ` Jeff Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590701905956@msgid-missing \
    --to=jeff@falconstor.com.tw \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox