Message-Id: <200512151921.jBFJKw5b015935@delorie.com> X-Spam-Check-By: sourceware.org From: "William J. Leslie" To: Subject: Vorbisfile and gdb Date: Thu, 15 Dec 2005 13:20:53 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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 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/