• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GDB Crashing Reproducably
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB Crashing Reproducably


  • Subject: GDB Crashing Reproducably
  • From: email@hidden
  • Date: Sun, 23 Nov 2003 14:44:15 +0100

Hello,

I wrote some time ago reporting a problem with gdb while debugging in
XCode. I took a closer look as to where the problem is exactly. Finally it
turned out, that it seems to be a problem between XCode and gdb but
certainly gdb is crashing with a SIGSEV message. I tried a clean reinstall
of Panther and XCode (before I had made an Archive type install copying my
home dir) and the first thing I did on the machine was try to debug the
following program:

Create a default C++ Tool Project and make main.cpp the following:

#include <iostream>
#include <vector>
#include <set>


public static void main(...) {
    // Set a Breakpoint here and continue with "Step Into"
    std::set< int > setInt;

    // Will crash after stepping into vector constructor
    // in stl_vector:239 I think
    std::vector< int > vecInt;

    vecInt.push_back( 100 );
    vecInt.push_back( 200 );

    // Following the default "Hello World" stuff in main.cpp

    // Please ignore any accidental syntax errors.
    // They're not the problem. I'm not in front of my computer now.
}



If I do the same debugging in "pure gdb", ie in a Terminal window, and
just do "step" commands it works fine though. I have the gdb crash log on
my machine and the project file too if this could be of any interest. In
any case, the problem is pretty grave for me. I'm currently using Panther
10.3 and XCode 1.0. However, the problem existed on Panther 10.3.1 and
with the XCode upgrade too.

Is there any workaround and is this a known problem? I would gladly
appreciate any help on this.

Regards,
Sebastian
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: GDB Crashing Reproducably
      • From: Jim Ingham <email@hidden>
  • Prev by Date: Re: Turning off spurious C warning in XCode ?
  • Next by Date: Re: Turning off spurious C warning in XCode ?
  • Previous by thread: Re: Creating a regular executable in xcode
  • Next by thread: Re: GDB Crashing Reproducably
  • Index(es):
    • Date
    • Thread