running a command in nALFS segfaults,but not manually

Gerard Beekmans gerard at linuxfromscratch.org
Tue Aug 24 10:19:03 PDT 2004


Hiya,

I'm using nALFS-1.2.4 and installing Firefox. When running ./regxpcom it
segfaults, but when I run it manually from inside chroot there is no
problem.

This is the piece of XML that runs the command:

<execute base="/usr/lib/firefox-&firefox-version;"
	command="MOZILLA_FIVE_HOME=/usr/lib/firefox-&firefox-version;
	./regxpcom"/>

And nALFS output:

I: Executing system command in /usr/lib/firefox-0.9.3: │
I:     MOZILLA_FIVE_HOME=/usr/lib/firefox-0.9.3 ./regxpcom
E: Child (14196) killed by signal 11.

When I run that myself inside chroot:

root at lorien/usr/src# cd /usr/lib/firefox-0.9.3/
root at lorien/usr/lib/firefox-0.9.3#
MOZILLA_FIVE_HOME=/usr/lib/firefox-0.9.3 ./regxpcom
root at lorien/usr/lib/firefox-0.9.3# echo $?
0

When I have nALFS run "strace -o outputfile ./regxpcom", the tail end of
the output file is:

open("/usr/lib/firefox-0.9.3/components/compreg.dat",
O_RDONLY|O_LARGEFILE) = 7
stat64("/usr/lib/firefox-0.9.3/components/compreg.dat",
{st_mode=S_IFREG|0644, st_size=131797, ...}) = 0
mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40369000
read(7, "Generated File. Do not edit.\n\n[H"..., 131797) = 131797
brk(0)                                  = 0x8073000
brk(0x8094000)                          = 0x8094000
close(7)                                = 0
munmap(0x40369000, 135168)              = 0
access("/usr/lib/firefox-0.9.3/.autoreg", F_OK) = -1 ENOENT (No such
file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Not very helpful. The missing .autoreg seems harmless because that same
message shows up when I run ./regxpcom outside of nALFS but it doesn't
segfault then.

Any ideas what might be causing it?


-- 
Gerard Beekmans

/* If Linux doesn't have the solution, you have the wrong problem */




More information about the alfs-discuss mailing list