Re: seg. fault

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri May 28 1999 - 12:03:00 MEST


Marek Idzik wrote:
> 
> Dear Rooters,
> 
> I'm running root on Debian linux with egcs 1.1.
> By know I have ~6000 lines of my application.
> (I have 256MB Ram)
> After last changes in my program it compiles
> but after launching it I get only "segmentation fault",
> and so I cannot trace the bug easily.
> Most probably I have a bug in my program but to be sure about
> I'd like to ask if
> is it possible that there are some memory or program size
> limitations in root itself ?
> 
> Thanks,
>   marek

Marek,
6000 lines is a very small program. However, a 2 lines long program
like
   void big() {
      float *crazy = new float[1000000000];
    }
can crash !

You have to provide more info (please not on this list)
Could you run under gdb and send me teh trace back info:

gdb myapplication.exe
gdb > run
gdb > info stack     when you get the crask

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:33 MET