Xfce Terminal can't execute bin file (after chmod)

Bug #291258 reported by Howard Teng
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: xfce4-terminal

Xfce Terminal (bash) seems cannot execute .bin after permission changed.

What expected to happen: Terminal execute bin file.
What actually happened: Terminal reporting no such file.
Platform : Xubuntu Intrepid x86-64

Log :

trumpet-205@HT-Computer-Linux:~/$ ./RealPlayer11GOLD.bin
bash: ./RealPlayer11GOLD.bin: Permission denied
trumpet-205@HT-Computer-Linux:~$ chmod +x RealPlayer11GOLD.bin
trumpet-205@HT-Computer-Linux:~$ ./RealPlayer11GOLD.bin
bash: ./RealPlayer11GOLD.bin: No such file or directory
trumpet-205@HT-Computer-Linux:~$ ls -l
total 7648
drwx------ 3 trumpet-205 trumpet-205 4096 2008-10-30 13:27 Desktop
-rwxr-xr-x 1 trumpet-205 trumpet-205 7815081 2008-10-30 13:07 RealPlayer11GOLD.bin
trumpet-205@HT-Computer-Linux:~$ sudo su
root@HT-Computer-Linux:/home/trumpet-205# ./RealPlayer11GOLD.bin
bash: ./RealPlayer11GOLD.bin: No such file or directory
root@HT-Computer-Linux:/home/trumpet-205# ls -l
total 7648
drwx------ 3 trumpet-205 trumpet-205 4096 2008-10-30 13:27 Desktop
-rwxr-xr-x 1 trumpet-205 trumpet-205 7815081 2008-10-30 13:07 RealPlayer11GOLD.bin

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

I think this is a result of the move from bash to dash in Ubuntu. Try using a ¨sh¨ in front of the command. As an alternative,
http://www.real.com/realcom/R?href=http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.deb
is now available. This is installed using
sudo dpkg -i RealPlayer11GOLD.deb

I can not reproduce this error since I do not have RealPlayer11GOLD.bin

Changed in xfce4-terminal:
status: New → Incomplete
Revision history for this message
Howard Teng (trumpet-205-deactivatedaccount) wrote :

Charlie Kravetz,

I use "sh" before command and can't open the file (sh /RealPLayer11GOLD.bin - can't open file) (sh ./RealPlayer11GOLD.bin - syntax error). After that I do a regular executing and RealPlayer11GOLD.bin can be executed. I confirmed it is working with "jre-6u10-linux-x64.bin" (Java x64) as well. Any idea how "sh" corrected the error?

Revision history for this message
Howard Teng (trumpet-205-deactivatedaccount) wrote :

Charlie Kravetz,

Also add on to that, apparently someone have similar issue that I previously suffered. I marked it as duplicate, could you please check it out?

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Bug #121368 is a duplicate of this bug that was reported against Kubuntu 7.04. It is not a matter of not knowing how to run the flie as the system just does not recognize the .bin as existing. Thanks for taking the time to make Ubuntu better!

Changed in xfce4-terminal:
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Still an issue in Jaunty or Karmic?

Changed in xfce4-terminal (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: Confirmed → Incomplete
Revision history for this message
Howard Teng (trumpet-205-deactivatedaccount) wrote :

Out of two fresh install of Xubuntu Jaunty, the same bug happens once. However, the problem goes away after a couple days.

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Changed back to confirmed, per the original reporter verification. Please don't ask the reporter to confirm again until a fix is released.

Changed in xfce4-terminal (Ubuntu):
status: Incomplete → Confirmed
assignee: Rolf Leggewie (r0lf) → nobody
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Charlie, what's up with you? The bug hasn't been touched for 9 months. I think it's quite natural to pick up the ball again, so don't hush-hush me, OK? Rather than letting this rot, some more analysis should be done. Especially since the way I read this report it's not a bug in xfce4-terminal, but elsewhere, likely in the .bin file itself.

Reassigning back to me until I completed some more bug triage. I'd like to know where to get this RealPlayer11GOLD.bin script, for example. I've got a hunch the script is faulty. If the script isn't, I'm still not convinced xfce4-terminal is the right place to look for a fix.

Changed in xfce4-terminal (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: Confirmed → Incomplete
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Howard, one more request. Can you please change to a virtual terminal (Ctrl+Alt+F2, switch back to the GUI with Ctrl+Alt+F7), log in and try executing the script there? What is the output? What does "echo $0" say?

Revision history for this message
Howard Teng (trumpet-205-deactivatedaccount) wrote :

Rolf,

After went into virtual terminal, I went ahead and try to execute the script. Here are the result. Keep in mind that I reinstall Xubuntu to reproduce the bug. I will try to include other bins from other sources later on.

trumpet-205@HT-Computer-Linux:~/Desktop$ dir
RealPlayer11GOLD.bin
trumpet-205@HT-Computer-Linux:~/Desktop$ ls -l
total 7632
-rwxr-xr-x 1 trumpet-205 trumpet-205 7815081 2009-08-01 20:41 RealPlayer11GOLD.bin
trumpet-205@HT-Computer-Linux:~/Desktop$ chmod a+x RealPlayer11GOLD.bin
trumpet-205@HT-Computer-Linux:~/Desktop$ ./RealPlayer11GOLD.bin
-bash: ./RealPlayer11GOLD.bin: No such file or directory
trumpet-205@HT-Computer-Linux:~/Desktop$ echo $0
-bash

You can get RealPlayer11GOLD.bin from Real Website (Go to google RealPlayer Linux).

Revision history for this message
Rolf Leggewie (r0lf) wrote :

OK, thank you for reporting back. That means, it's not a problem in xfce-terminal, but rather in one of the libs, bash or (as I suspect) the script itself.

Reassigning to bash for further triage.

affects: xfce4-terminal (Ubuntu) → bash (Ubuntu)
Changed in bash (Ubuntu):
assignee: Rolf Leggewie (r0lf) → nobody
status: Incomplete → New
Revision history for this message
Rolf Leggewie (r0lf) wrote :

The script is likely http://www.real.com/realcom/R?href=http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.bin

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

$ ldd Desktop/RealPlayer11GOLD.bin
ldd: warning: you do not have execution permission for `Desktop/RealPlayer11GOLD.bin'
 linux-gate.so.1 => (0x00d4e000)
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x0036a000)
 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00689000)
 libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00401000)
 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x008e2000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00193000)
 /lib/ld-linux.so.2 (0x00610000)

Changed in bash (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.