lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solving segmentation fault problem in gdb


From: Patrick McCarty
Subject: Re: Solving segmentation fault problem in gdb
Date: Tue, 30 Jun 2009 10:02:20 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Jun 30, 2009 at 08:40:05AM -0600, Carl D. Sorensen wrote:
> I'm trying to get the CG instructions for using gdb up-to-date.  And I'm
> trying to debug a problem with the new autobeam stuff I'm working on.
> 
> So I checked out a fresh master.
> 
> Then I did
> 
> ./configure --enable-debugging
> make
> 
> gdb lilypond
> 
> GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49 UTC
> 2007)
> 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 "i386-apple-darwin"...Reading symbols for shared
> libraries ................... done
> Breakpoint 1 at 0xf546
> Breakpoint 2 at 0x2bd32f: file warn.cc, line 68.
> Breakpoint 3 at 0xd681c: file grob.cc, line 536.
> 
> 
> inside of gdb, I did
> 
> (gdb) run testfiles/autobeam-test.ly
> Starting program: /Users/Carl/lilypond-working/out/bin/lilypond
> testfiles/autobeam-test.ly
> Segmentation fault

That's odd.  Normally when I run gdb with LilyPond, it gives me
information about the location of the segfault.  Then I can do a
backtrace.

When I compile LilyPond with the intent of debugging it, I use

./configure --disable-optimising

instead.  Did you try that?


Thanks,
Patrick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]