Bug 152820 - always adopts i686 personality when running on x86_64 machine
Summary: always adopts i686 personality when running on x86_64 machine
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.9.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 11:38 UTC by Will Stephenson
Modified: 2007-12-16 14:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.