Bug 152820

Summary: always adopts i686 personality when running on x86_64 machine
Product: [Applications] konsole Reporter: Will Stephenson <wstephenson>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 1.9.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Will Stephenson 2007-11-24 11:38:37 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

It seems that Konsole always runs in its "32-bit Terminal Emulator" mode on a x86_64 machine.

Testcase:
start xterm

> uname -m
x86_64

start konsole from xterm
in konsole,
 
> uname -m
i686

I've tried to debug this but can't even find where the "32-bit Terminal Emulator" menu entry comes from in order to identify how konsole takes on the i686 personality, if it's just run as "linux32 konsole" or what. The testcase suggests this is not the case.
Comment 1 Robert Knight 2007-11-24 15:48:10 UTC
How odd, unfortunately I don't have access to a 64bit machine for testing purposes.
Comment 2 Will Stephenson 2007-11-24 15:53:26 UTC
Whereabouts in the code is this functionality implemented?  I tried the obvious grep for 32 and 64, and i can't find the strings "32-bit Terminal Program" and "Linux 32-bit Konsole" anywhere.
Comment 3 Robert Knight 2007-12-02 21:57:17 UTC
> Whereabouts in the code is this functionality implemented?

Right.  There is no architecture specific code in Konsole that I am aware of.
Comment 4 Robert Knight 2007-12-11 05:34:49 UTC
Can you try running the "uname -m" command from inside an embedded terminal in Dolphin or Kate and see what the result is?

Is there a flag on the executable which controls whether it runs in 32bit / 64bit mode?
Comment 5 Will Stephenson 2007-12-11 09:02:41 UTC
I located the source of the "32-bit Konsole" menu entry - it's installed by the SUSE "linux32" package, which adds a .desktop file that runs "linux32 konsole".  But that doesn't explain why running normal konsole comes up in 32 bit mode. 

With SUSE RC2 rpms, I can't reproduce the problem.

I'm rebuilding SVN on this machine, will see if it is still present.
Comment 6 Robert Knight 2007-12-16 00:13:09 UTC
Any updates on this Will?
Comment 7 Will Stephenson 2007-12-16 14:37:39 UTC
It's gone away.  

I don't like closing stuff without getting to the bottom of it,but we all have enough to do.