Re: [LTP] Char Limit issue on 2.6.29 kernels

From: Tim Bird
Date: Fri Jul 24 2009 - 14:26:58 EST


naresh kamboju wrote:
> Hi Mike,
>
> On Fri, Jul 24, 2009 at 11:19 PM, Mike Frysinger<vapier@xxxxxxxxxx> wrote:
>> On Friday 24 July 2009 11:31:59 naresh kamboju wrote:
>>> I have come across with char Limit issue on 2.6.29 kernels.
>>>
>>>
>>> SIGFAULT:
>>>
>>> #define SIZE ï ï ï ï ï ï8053759
>>> char buf1[SIZE] ;
>>>
>>> NO SIGFAULT:
>>>
>>> #define SIZE ï ï ï ï ï ï8053758
>>> char buf1[SIZE] ;
>>>
>>> This SIGFAULT not observed on 2.6.23 kernels.
>> -ENOINFO
>>
>> post some actual code rather than saying "i declared a large buffer and things
>> crashed".
>
> currently i am debugging this issue.
> i'll come up with more details.

Some more feedback...

It's SEGFAULT - short for "Segmentation Fault", not SIGFAULT.

Please include in your details at least the following:
* what software this is in (is this declaration in the kernel?, a library, a
user space program, etc.)
* what operation is being performed when the SEGFAULT occurs.
* what compiler you are using.
* the code surrounding the operation when the fault occurs

If you can, make the smallest possible program that reproduces this error,
and send the complete source for that.
-- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/