2016-09-09 0:13 GMT+02:00 Simon Albrecht <[email protected]>:

> How does one do a backtrace? I tried running
> gdb ~/lilypond/2.19.47/bin/lilypond
> but it said
> "/home/simon/lilypond/2.19.47/bin/lilypond": not in executable format: File
> format not recognised

You need to point gdb to the executable, not the script which execute it.
For example the absolute path to my lilypond 2.18.2-executable is:
lilypond/usr/bin/lilypond
It's obviously in my home directory.
So:
gdb lilypond/usr/bin/lilypond

Then invoke by doing
run path-to-the-file-you-want-be-executed

Then do
bt

The sequence for me was:

gdb lilypond/usr/bin/lilypond
run lilypondH/Test/forum/unfinished-tie-crash.ly
bt


You should see something like:

gdb lilypond/usr/bin/lilypond
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lilypond/usr/bin/lilypond...(no debugging symbols
found)...done.
(gdb) run lilypondH/Test/forum/unfinished-tie-crash.ly
Starting program: /home/hermann/lilypond/usr/bin/lilypond
lilypondH/Test/forum/unfinished-tie-crash.ly
GNU LilyPond 2.18.2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Processing `lilypondH/Test/forum/unfinished-tie-crash.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `unfinished-tie-crash.ps'...
Converting to `./unfinished-tie-crash.pdf'...
Success: compilation successfully completed
[Inferior 1 (process 16217) exited normally]
(gdb) bt
No stack.

The last command does not give any result, ofcourse. No crash with 2.18.2

HTH,
  Harm

_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to