glob2-devel
[Top][All Lists]
Advanced

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

don't move your debugging source directory (was: [glob2-devel] glob2 0.8


From: Joe Wells
Subject: don't move your debugging source directory (was: [glob2-devel] glob2 0.8.22 crash: Signature match failed. Expected "EchoSig", recieved "")
Date: Sat, 21 Apr 2007 18:49:25 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Bradley Arsenault" <address@hidden> writes:

> On 4/16/07, Joe Wells <address@hidden> wrote:
>> Sorry, this is not my debugging version.  (That version stopped
>> working mysteriously and crashes whenever I try to run it.)
>
> I get this problem if I don't make clean && make the sources after I
> enable debugging.

It turns out the reason why my debugging version wasn't working is
because I had moved the directory to a new location.  strace reveals
glob2 is trying to load these files just before it aborts because it
can't find texts.list.txt:

  open("/home/jbw/.glob2/data/texts.list.txt", O_RDONLY) = -1 ENOENT (No such 
file or directory)
  open("./data/texts.list.txt", O_RDONLY) = -1 ENOENT (No such file or 
directory)
  
open("/mnt/gentoo-portage/jbw/glob-debugging/glob2-0.8.22/share/glob2/data/texts.list.txt",
 O_RDONLY) = -1 ENOENT (No such file or directory)
  open("${datarootdir}/glob2/data/texts.list.txt", O_RDONLY) = -1 ENOENT (No 
such file or directory)
  
open("/home/jbw/Desktop/software/glob-debugging/glob2-0.8.22/data/texts.list.txt",
 O_RDONLY) = -1 ENOENT (No such file or directory)

The last one would have succeeded before I moved the directory.

I'm not sure why it is trying to load
"${datarootdir}/glob2/data/texts.list.txt".  The ${datarootdir} here
should have been replaced at compile-time by a path.

>From the 2nd file it attempts, I figured out I could run it from the
root directory of the unpacked tar file (not from within the “src”
directory).

The moral of the story:

  Don't move your source directory after compiling it if you want to
  reliably run the compiled program sitting in that directory.

-- 
Joe




reply via email to

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