Re: Crash on insmod

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

 



Hi, when I write the init and exit functions, I always put it static. Try to make it a static function and see whether it solves the problem.


Po Ki


Gilad Benjamini wrote:

Hi,
I have a simple scenario, with a simple-cut-down module
which crashes very frequently.

mips-linux 2.4.20 32 bit with 64-bit phys addresses enabled.

- Start the kernel
- insmod (full path, or short-name-after-depmod)
- Crash.

Other modules show no problems.

After much work, the module is now shrunk down to the following
-----------------
#define MODVERSIONS
#include <linux/module.h>
#include <linux/init.h>


int __init CG_init_module( void )
{
 return 0;
}

void __exit CG_cleanup_module( void )
{
}

module_init(CG_init_module);
module_exit(CG_cleanup_module);
-----------------

I am clueless as to the cause of the crash.
Oops info didn't provide anything useful, except a possible hint towards sys_create_module. printk's in this function showed it completed succesfully.

insmod -V shows 2.4.7 - Could that be related ?

Any ideas ?

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/






--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux