delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/15/14:21:02

Message-Id: <200512151921.jBFJKw5b015935@delorie.com>
X-Spam-Check-By: sourceware.org
From: "William J. Leslie" <wjl AT mcpproductions DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Vorbisfile and gdb
Date: Thu, 15 Dec 2005 13:20:53 -0600
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id jBFJKw5b015935

It seems that running any program linked with vorbisfile in gdb causes gdb to hang immediately at the beginning of the program, even before reaching main().  Note, everything works fine outside the debugger!

I've simplified it to a very basic sanity check:

#include <stdio.h>
extern int ov_open;

int
main (int argc, char **argv)
{
  printf ("ov_open is 0x%08x\n", &ov_open);
  return 0;
}

And here's the test:
$ gcc -g -o blah.exe blah.c $(pkg-config --cflags vorbisfile) $(pkg-config --libs vorbisfile)
$ ./blah
ov_open is 0x004010a0
$ gdb blah.exe
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) b mainCRTStartup
Breakpoint 1 at 0x401006
(gdb) r
Starting program: /home/wjl/projects/test/blah.exe

-- GDB and Blah.exe both hang at this point.

It seems that the mere presence of any symbol from vorbisfile, anywhere in the program, causes gdb to hang at the beginning of the program.  Does anyone else's gdb have the same behaviour?  If this is a widespread problem, I suppose it is a bug in gdb.  Please verify.

Thanks
Will


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019