LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2004, 11:00 AM   #1
Xpiral
LQ Newbie
 
Registered: Mar 2004
Distribution: Redhat 9
Posts: 16

Rep: Reputation: 0
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!!!
 
Old 03-05-2004, 11:05 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
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 ....
 
Old 03-05-2004, 02:55 PM   #3
Xpiral
LQ Newbie
 
Registered: Mar 2004
Distribution: Redhat 9
Posts: 16

Original Poster
Rep: Reputation: 0
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?
 
Old 03-05-2004, 02:56 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Very bad. Besides being a huge security problem, some applications, as Firefox, won't run when logged as root for... well... security problem
 
Old 03-07-2004, 01:16 AM   #5
homergreg
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
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.
 
Old 03-07-2004, 06:09 AM   #6
tk31337
Member
 
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
/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).
 
Old 03-07-2004, 08:54 AM   #7
homergreg
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
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!
 
Old 03-07-2004, 09:35 AM   #8
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
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.)

Last edited by GregLee; 03-07-2004 at 09:36 AM.
 
Old 03-07-2004, 01:16 PM   #9
Squall
Member
 
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239

Rep: Reputation: 31
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.
 
Old 03-07-2004, 01:27 PM   #10
homergreg
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
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?
 
Old 03-07-2004, 06:13 PM   #11
homergreg
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
Thumbs up 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!



Thanks all!
 
Old 09-26-2004, 09:34 PM   #12
the_Sisyphos
LQ Newbie
 
Registered: Sep 2004
Location: Germany - Mannheim
Distribution: Fedora Core 2, Mandrak 10, RedHat 7
Posts: 1

Rep: Reputation: 0
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 ;-)

Last edited by the_Sisyphos; 09-26-2004 at 09:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Firefox Slower than Windows Firefox on same machine gherikill Linux - Software 17 02-21-2008 12:06 AM
firefox on windows and firefox on linux boxerboy Fedora 7 08-13-2005 06:49 PM
[Linux; Firefox 1.02] Firefox gone blank?! Jeff_Eklund Linux - Software 5 05-13-2005 01:11 PM
Symlinking Firefox Extensions from Windows to Firefox? apachedude Linux - Software 11 11-26-2004 05:00 AM
Firefox died (Fedora Core 1, firefox latest) Brakki Fedora 1 03-05-2004 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration