[JDEV] Segmentation Fault problem
Colin Putney
cputney at whistler.net
Tue Aug 8 14:09:19 CDT 2000
Another thing you could do is allocate the memory on the heap rather
than the stack. This would be a more efficient use of memory and you
can easily grow the array without changing your stack size.
-- Schuyler Heath <sheath at jabber.org> wrote:
> I'm not sure if this is the problem or not, but it's worth a try.
> Spawn the thread with a PTH_ATTR_STACK_SIZE attr, like this:
[snip code]
> Kang-pen Chen wrote:
>>
>> I am now writing a simple transport.
>> But when I declare a too large array ( about 16 kbytes),
>> the segmentation fault always occurs.
>>
>> I have a doubt that is a problem with gnu protable thread.
>> Have you ever met such kind of problems ?
--------------------------------------------------
Colin Putney cputney at whistler.net
Whistler Networks http://www.whistler.net/
If you can't see your glasses then you will
have tunnel vision your whole life. --Phil Agre
More information about the JDev
mailing list