From: Stuart Fuller <[EMAIL PROTECTED]>
   Date: Wed, 17 May 2000 16:37:33 +0100

   (I hope this is the right group for gdb aswell!!)

   Hi, I'm new to egcs and gdb and I have a problem.
   I'm using an SGI Octane runng Irix 6.5.5
   I have installed egcs and gdb from tardists off of
   the SGI freeware page.
   I have a small test program (crash.c) which will crash when
   executed:

   #include "stdio.h"

   void main()
   {

           int array[50], i;

           for( i = 0; i < 100; i++ )
           array[i] = i;
   }

   I compile this using 'egcs -g -o crash crash.c"
   When I run it it crashes (!!!!) which is okay,
   however when I do 'gdb crash'
   followed by a 'run'
   I get the message:
   (gdb) run
   Starting program: /usr/people/stuart/workbench/crash 

   Program received signal SIGSEGV, Segmentation fault.
   0x10001118 in __start ()
       at /xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s:179
   179     /xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s: No
   such file or directory.
   Current language:  auto; currently asm

   Does anyone know what the hell crt1text is?
   I have tried changin the crash program to not crash and running that
   through gdb and it's fine.

This is all perfectly reasonable.  The message about SIGSEGV tells you
that GDB has noticed that your programs crashed.  The bit about
crt1text tells you the name of the name of the source file where the
line of code that crashed your program lives.  This file doesn't exist
on your system, which is again reasonable since it is the source file
for the startup code, which is code that comes with your system and
the source file probably isn't present on your system (though it is
somewhat curious that the code was compiled with debugging information
included).

   =======================================================================
   This e-mail is intended for the person it is addressed to only. The
   information contained in it may be confidential and/or protected by
   law. If you are not the intended recipient of this message, you must
   not make any use of this information, or copy or show it to any
   person. Please contact us immediately to tell us that you have
   received this e-mail, and return the original to us. Any use,
   forwarding, printing or copying of this message is strictly prohibited.

   No part of this message can be considered a request for goods or
   services.

This is really scary!  You might want to try to convince your employer
to put something less threatening in their outgoing e-mail.

Mark

Reply via email to