• 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
Re: GDB Crashing Reproducably
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB Crashing Reproducably


  • Subject: Re: GDB Crashing Reproducably
  • From: Jim Ingham <email@hidden>
  • Date: Sun, 23 Nov 2003 12:06:47 -0800

Sebastian,

I tried this code in the current development version of Xcode, and the debugger can step into these constructors and back out again without a problem. I fixed a few variable representation bugs in gdb, though I don't recognize this one explicitly. If you send me the backtrace, I will probably recognize it however.

Jim



On Nov 23, 2003, at 5:44 AM, email@hidden wrote:

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.


_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham email@hidden
Developer Tools - gdb
_______________________________________________
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.

References: 
 >GDB Crashing Reproducably (From: email@hidden)

  • Prev by Date: IB can't embed a custom view in an HIScrollView
  • Next by Date: Re: Shell scripts, build rules
  • Previous by thread: GDB Crashing Reproducably
  • Next by thread: IB can't embed a custom view in an HIScrollView
  • Index(es):
    • Date
    • Thread