LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 02-27-2011, 07:04 PM   #46
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled

Hi -

Here's what I get when I downloaded your "hw32.txt" (renaming it to "hw32.exe"):
Code:
$ ls -l hw32.exe
-rwxr-xr-x 1 paulsm paulsm 4940 Feb 27 17:00 hw32.exe

$ file hw32.exe
hw32.exe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

$ ldd hw32.exe
        libc.so.6 => /lib/libc.so.6 (0xb7dcb000)
        /lib/ld-linux.so.2 (0xb7f2f000)

$ chmod +rx hw32.exe

$ ./hw32.exe
Hello World
From my earlier post:
Quote:
1) The initial post seemed to have NOTHING to do with 32- vs 64-bit, and EVERYTHING to do with the correct syntax for invoking a Java program with the correct .jar. Please revisit that at some point before closing this thread.
<= The Java/.jar question is COMPLETELY INDEPENDENT of the 32- vs 64-bit executable question

2) In general, 32-bit apps CAN and DO run without any problem on 64-bit OS's.
...
<= Even if you DIDN'T have the right runtime libraries for your 32-bit .exe...
the symptoms would NOT be what you've described!!!!!

3) Please cut/paste your exact "hello world" source, compile command and command line output now that you've updated your libraries. If anything's wrong, please run "file hw*" and "ldd hw*" on your "hw" executables, and cut/paste the results.
<= I firmly believe you're simply running the wrong .exe somehow.
Please - PLEASE - recompile, execute (with "./hw32" syntax) and cut/paste everything exactly into your next post.

Last edited by paulsm4; 02-27-2011 at 07:10 PM.
 
Old 02-27-2011, 07:30 PM   #47
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
Paul,

You'll find all the information you requested in one of the posts of mine in this thread already. Yeah, I ran the correct executable.

All,
Valery and johnsfine's theory seems to be the winning one for now. I'll forward this to red hat on that ticket and see how where it goes. Hopefully this is it. Quite a bit of progress in less than 48 hours.

Thanks! And I'll update when I know something for sure.
 
Old 02-27-2011, 08:41 PM   #48
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
Talking

I went for the Hail Mary and just did the fix for the fix. The binary "hw32" prints "Hello World" to stdout as it should. The java program I was interested in now runs properly.

Thank you all for the help. This was figured out so fast.

I'll leave this open just to confirm with the enterprise support.

Last edited by frznchckn; 02-27-2011 at 08:42 PM.
 
Old 02-27-2011, 08:47 PM   #49
corp769
Guru
 
Registered: Apr 2005
Posts: 5,798

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
Quote:
Originally Posted by frznchckn View Post
I went for the Hail Mary and just did the fix for the fix. The binary "hw32" prints "Hello World" to stdout as it should. The java program I was interested in now runs properly.

Thank you all for the help. This was figured out so fast.

I'll leave this open just to confirm with the enterprise support.
Awesome! I have been following the whole thing because the other guys that were helping out knew more than me to troubleshoot that. Mentally noted, thanks to all also.

Cheers,

Josh
 
Old 02-28-2011, 11:46 AM   #50
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks

RH confirmed that this was the problem and that this security problem was definitely corrected for my RHEL 5 update 6 box.

I'm going to close this. Again, thanks to all of you. We avoided reinstalling this box today which we needed to do because of a compressed project schedule.
 
Old 02-28-2011, 12:13 PM   #51
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 663

Rep: Reputation: 132Reputation: 132
Quote:
Originally Posted by frznchckn View Post
RH confirmed that this was the problem and that this security problem was definitely corrected for my RHEL 5 update 6 box.

I'm going to close this. Again, thanks to all of you. We avoided reinstalling this box today which we needed to do because of a compressed project schedule.
I enjoyed investigation your problem - it wasn't ordinary. Always something new to learn.
Have you another one, interesting like this?

Valery.

(By the way, you moved ld.so.cache to ld.so.cache.orig. I guess it's a time to move it back)
 
2 members found this post helpful.
Old 02-28-2011, 12:20 PM   #52
frznchckn
Member
 
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks for reminding me of that Valery. I had left that on a todo list that I probably would've forgotten.

No, no more interesting problems (thankfully for me). I'm an engineer, I needed this server for CAD work.
 
  


Reply

Tags
java, rhel, rhel54


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 10:04 AM
Java runtime error. Exception in thread "main" java.lang.NoClassDefFoundError: / Priyadivya Red Hat 2 10-26-2010 05:01 AM
Runtime.getRuntime().exec("cd") returns java.io.IOException, error 2 in java tatarin Programming 4 03-28-2008 07:42 PM
Java-GTK glib-java-0.2.5 Error hikkerguy Linux - Software 2 07-19-2006 06:01 PM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration