LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firefox (https://www.linuxquestions.org/questions/linux-software-2/firefox-153830/)

Xpiral 03-05-2004 11:00 AM

Firefox
 
I just uncompressed firefox and when i run it with the ./firefox command i get this error message in the console:
/root/firefox/firefox/run-mozilla.sh: line 451: 2093 Illegal instruction "$prog" ${1+"$@"}

What is this??? Please help!!!

DrOzz 03-05-2004 11:05 AM

just a shot in the dark here, but are you logged in as normal user, and trying to run this as root in a terminal ?
if so, there is no need to be root to uncompress nor run firefox ... so just try uncompressing it into your users home folder, and then run it ....

Xpiral 03-05-2004 02:55 PM

root
 
I am root all the time because i didn't make another user for me i log in every time as root. Is that bad?

Mega Man X 03-05-2004 02:56 PM

Very bad. Besides being a huge security problem, some applications, as Firefox, won't run when logged as root for... well... security problem :p

homergreg 03-07-2004 01:16 AM

I'm getting the exact same error. I didn't install it as root, I just downloaded it into my home directory. Funny thing is I have another PC with Fedora Core 1, the same as the one with the problem, and it works just fine.

tk31337 03-07-2004 06:09 AM

/root/firefox/firefox/run-mozilla.sh: line 451: 2093 Illegal instruction "$prog" ${1+"$@"}

This is an error with the shell script (on line 451). Unfortunately, you apparently need to run the script, as otherwise it doesn't detect the shared libs in the same dir. If it weren't for that, I'd tell you to bypass the script and just run the prog directly "firefox-bin", but that won't work that easily.

If you're adventurous enough, you might try opening the script in a text editor and see what might be wrong on line 451 (on my system, 451 is simply "fi", so yours is probably different). You might also look into a way of setting up manually whatever the script really does to get the prog to run, and then bypassing the script (I'm considering looking into it).

Hope you get something worked out. Don't forget that Firefox is pre-release software (and I'm not so sure about RH's stability either).

homergreg 03-07-2004 08:54 AM

tk,

I looked at that file and I've got the same fi on that line. I ended up making different error messages vi'ing the script so I removed firefox and redownloaded it. I now get the original message. You're right about the beta, but it's such a great beta! Maybe 0.9 will work!

Thanks for the ideas!

GregLee 03-07-2004 09:35 AM

Quote:

Originally posted by tk31337
/root/firefox/firefox/run-mozilla.sh: line 451: 2093 Illegal instruction "$prog" ${1+"$@"}

This is an error with the shell script (on line 451). Unfortunately, you apparently need to run the script, as otherwise it doesn't detect the shared libs in the same dir. ...

If that is the problem, a way to fix it is to edit the "firefox" script to tell firefox where its libs are. I have the following

Quote:

MOZILLA_FIVE_HOME=/b/firefox
cd /b/firefox
curdir=/b/firefox
in my "firefox" script, since its libs are, in fact, in "/b/firefox" on my system. (Also, remove the other definition of "curdir" near the beginning of the script.)

Squall 03-07-2004 01:16 PM

Re: root
 
Quote:

Originally posted by Xpiral
I am root all the time because i didn't make another user for me i log in every time as root. Is that bad?
Yes, Megaman X is right. I'd just like to add a little bit. Not only is that an outside security risk, but it is more likely to be an internal error. You can easily make your system inoperable by making a mistake in root. There is no confirmation to delete files if you do not explicitly add that in.

homergreg 03-07-2004 01:27 PM

I found out that firefox and K6-2 processors have issues and will cause this error. Thanks for the suggestions. Xpiral, do you have a K6 2 or 3 proc?

homergreg 03-07-2004 06:13 PM

Hooray!
 
I dug around in bugzilla and found that this problem has been reported and fixed a few times in firebird/firefox's history with Pentium I and K6 processors. So I wondered if I loaded up firebird 0.7 what would happen. I found it and it runs just fine! Just look in Mozilla's ftp site for the firebird folder and load the i686 build there if you have the same problem I had. It's close enough for my taste!

:D :D :D

Thanks all!

the_Sisyphos 09-26-2004 09:34 PM

Re: Firefox
 
Quote:

Originally posted by Xpiral
I just uncompressed firefox and when i run it with the ./firefox command i get this error message in the console:
/root/firefox/firefox/run-mozilla.sh: line 451: 2093 Illegal instruction "$prog" ${1+"$@"}

What is this??? Please help!!!

I got the same Error ..

after using strace I found out that several fonts used by some pages are not readable.

Code:

  open("/usr/X11R6/lib/X11/fonts/TTF/arial.ttf", O_RDONLY) = -1 EACCES (Permission denied)
  open("/usr/X11R6/lib/X11/fonts/TTF/arial.ttf", O_RDONLY) = -1 EACCES (Permission denied)
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  rt_sigaction(SIGSEGV, NULL, {0x267e14, [], SA_RESTORER, 0x537458}, 8) = 0
  times({tms_utime=245, tms_stime=34, tms_cutime=0, tms_cstime=0}) = 432866032
  rt_sigaction(SIGSEGV, {0x877cbb8, ~[KILL STOP RTMIN], SA_RESTORER, 0x537458}, NULL, 8) = 0
  tgkill(24114, 24114, SIGSEGV)          = 0
  sigreturn()                            = ? (mask now [])
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  unlink("/home/goetz/.mozilla/firefox/default.ubm/lock") = 0
  rt_sigaction(SIGSEGV, {SIG_DFL}, NULL, 8) = 0
  rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
  tgkill(24114, 24114, SIGSEGV)          = 0
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  +++ killed by SIGSEGV +++

So by starting firefox/mozilla as non root user check file permissions of your /usr/X11R6/lib/X11/fonts/TTF folder
especialy if you copied the Arial True Type Fonts in this folder!!! Cause this killed my firefox once it started, or better say, once i visited a web page wich tryed to use Arial Fonts and many Site use them!

This seems to be a problem oft the newer XFT enabled builds.

Also check this things:
1.) try to start firefox/mozilla from command line without displaying a page
Code:

# firefox about:blank
2.) try to start firefox/mozilla from command line with displaying something uncritical like the plugins
Code:

# firefox about: plugins
3.) use strace to debug your session
a) first edit /usr/lib/firefox/run-mozilla.sh around line 444 to show up the paths
Code:

export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH DYLD_LIBRARY_PATH

b) insert below or above this lines
Code:

echo "export MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo "export SHLIB_PATH=$SHLIB_PATH LIBPATH=$LIBPATH LIBRARY_PATH=$LIBRARY_PATH ADDON_PATH=$ADDON_PATH DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH"

c) then start firefox once again from command line and quit it
d) copy the path information with the export statement and paste it to the command line
Code:

# export MOZILLA_FIVE_HOME=/home/...
# export SHLIB_PATH=/usr/...

e) change the working directory to the firefox binary path
Code:

# cd /usr/lib/firefox
e) start firefox binary with strace
Code:

# strace ./firefox-bin
f) now strace punch a lot lines on the screen, wait till the browser finished loading. Then visit your crash site and strace will print some additional infos about the error. Watch for something like
Code:

open("/usr/X11R6/lib/X11/fonts/TTF/arial.ttf", O_RDONLY) = -1 EACCES (Permission denied)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

hope this will help ;-)


All times are GMT -5. The time now is 10:07 AM.