Hello, I get a segfault when i try to insmod a module that calls kmem_cache_create. Here is the 'relevent' code: node_cache = kmem_cache_create ("hash_table_nodes_cache", sizeof (HashTableNode), 0, SLAB_HWCACHE_ALIGN, NULL, NULL); the value of sizeof (HashTableNode) is 16. Here is the exact error i get: ------------[ cut here ]------------ kernel BUG at slab.c:642! invalid operand: 0000 hellow parport_pc lp parport autofs 8139too mii ipt_REJECT ipt_state ip_conntrack iptable_filter ip_tables floppy sg scsi_mod microcode keybdev mousedev hid i CPU: 0 EIP: 0060:[<c013add6>] Not tainted EFLAGS: 00010202 EIP is at kmem_cache_create [kernel] 0x66 (2.4.22-1.2115.nptl) eax: 00000000 ebx: 00000000 ecx: 00000016 edx: 00000100 esi: d80f2647 edi: d80f268e ebp: 00002000 esp: d50cda38 ds: 0068 es: 0068 ss: 0068 Process insmod (pid: 2678, stackpage=d50cd000) Stack: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 d50cdae8 d80f2647 d50cdac5 d50cda90 d80f2258 d80f2677 00000010 00000000 00002000 00000000 00000000 00000000 00000000 00000000 d50cdae8 d50cdf10 d80f2138 Call Trace: [<d80f2647>] .LC2 [hellow] 0x0 (0xd50cda58) [<d80f2258>] hash_table_init [hellow] 0x45 (0xd50cda64) [<d80f2677>] .LC2 [hellow] 0x30 (0xd50cda68) [<d80f2138>] init_module [hellow] 0xa3 (0xd50cda94) [<c01a0504>] release_dev [kernel] 0x314 (0xd50cdacc) [<c011ed74>] sys_init_module [kernel] 0x584 (0xd50cdf14) [<d80f2060>] demo [hellow] 0x0 (0xd50cdf2c) [<d80f2060>] demo [hellow] 0x0 (0xd50cdf58) [<c0109b9f>] system_call [kernel] 0x33 (0xd50cdfc0) The whole source code can be found at: http://www.geocities.com/zeelists/htable.tgz The kernel i am using is: 2.4.22-1.2115.nptl ===== "The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts." --Bertrand Russell "We are convinced that freedom without Socialism is privilege and injustice, and that Socialism without freedom is slavery and brutality." from the book: "The Political Philosophy of Bakunin". __________________________________ Do you Yahoo!? Yahoo! Search - Find what you?re looking for faster http://search.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/