Re: Null pointer exception for local variables in stack with C++ kernel modules

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bernhard Walle
Date: Tuesday, January 4, 2011 - 3:10 pm

Hello Leo,

Am 04.01.11 20:46, schrieb Leo Prasath:

Wild guess: Stack overflow. In the kernel the stack is very limited
(depends on the configuration and IIRC on the archtecture, but 4K is the
minimum IIRC) and in C++ it's possible and common to put larger objects
on the stack.

However, C++ isn't supported by the kernel developers and you're on your
own. Rewrite the code to use plain C.


Regards,
Bernhard
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Null pointer exception for local variables in stack wi ..., Bernhard Walle, (Tue Jan 4, 3:10 pm)