[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Re: stack problem
From:       Gunther Piez <gpiez () web ! de>
Date:       2005-07-12 10:01:29
Message-ID: 200507121201.29320.gpiez () web ! de
[Download RAW message or body]

Am Dienstag, 12. Juli 2005 11:02 schrieb Ellen De Beuckeleer:
> Hi,
>
> I can't get it to work :(. I tried  "ulimit -s unlimited" and "ulimit -s
> 1000000" followed by kdevelop started from the shell. Valgrind (run from
> kdevelop interface) still gives the errors. Any suggestions?
>
>
> Ellen

Just to make it sure, I did a small test with

int main(int argv, char *argc[]) {
        char big[100000000];
        big[99999999]=0;
        return big[0];
}

If ulimit is set to unlimited or more than 100 M it works, otherwise it 
crashes.
Try it yourself. Maybe there is a stack limit imposed by a library you use, 
but neither the C++ compiler nor the operating system have limits besides the 
archictecture depended limits, AFAIK at least 2 GB.
So this is the wrong place to look for errors, i recommend to debug your 
program/libray.

-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic