Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Re: xquake binary update
       [not found] <6066sh$s6g$1@palladium.transmeta.com >
@ 1997-09-22  4:00 ` Chris Adams
  1997-09-23  4:00   ` Andrew Kieschnick
  1997-10-03  4:00   ` Andreas Trottmann
  0 siblings, 2 replies; 7+ messages in thread
From: Chris Adams @ 1997-09-22  4:00 UTC (permalink / raw)



Linus Torvalds <torvalds@transmeta.com > wrote:
 > I was asked to show xquake on my alpha yesterday, and noticed that my
 >xquake binary no longer worked on my machine.  It core-dumped when
 >trying to start a new game.  Panic.  Embarrassment.
 >
 >I don't know if anybody else has seen this problem, or if anybody cares,
 >but I decided I might as well make a new test binary available in case
 >others see the same thing with the old binary.
 >
 >The problem was due to the newer 'malloc()' implementation that no
 >longer allocated contiguous memory (it uses anonymous mmap() for large
 >memory allocations).  Quake uses some 32-bit offsets internally, and the
 >offsets between different allocations no longer fit into 32 bits with
 >the new malloc.
 >
 >The new binary is available on
 >
 >  ftp://ftp.kernel.org/pub/linux/kernel/testing/xquake-1.06-alpha-bin.gz
 >
 >but if the old binaries work for you the new one shouldn't have any new
 >features, so this is relevant only if you have had problems with quake
 >on the alpha.

I tried to run xquake on my UDB just last week, and figured I was doing
something wrong since it crashed everytime I tried to start a game.  It
wasn't me I guess. :-)

However, I got the new binary from ftp.kernel.org and now all I get is:

131:sprocket:~/ftp/alpha-quake$ ./xquake-1.06-alpha-bin
Illegal Instruction

Now what?
-- 
Chris Adams - cadams@ro.com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* xquake binary update
@ 1997-09-22  4:00 Linus Torvalds
  1997-09-23  4:00 ` Alex Butcher
  1997-09-24  4:00 ` Wolfram Gloger
  0 siblings, 2 replies; 7+ messages in thread
From: Linus Torvalds @ 1997-09-22  4:00 UTC (permalink / raw)




 I was asked to show xquake on my alpha yesterday, and noticed that my
xquake binary no longer worked on my machine.  It core-dumped when
trying to start a new game.  Panic.  Embarrassment.

I don't know if anybody else has seen this problem, or if anybody cares,
but I decided I might as well make a new test binary available in case
others see the same thing with the old binary.

The problem was due to the newer 'malloc()' implementation that no
longer allocated contiguous memory (it uses anonymous mmap() for large
memory allocations).  Quake uses some 32-bit offsets internally, and the
offsets between different allocations no longer fit into 32 bits with
the new malloc.

The new binary is available on

  ftp://ftp.kernel.org/pub/linux/kernel/testing/xquake-1.06-alpha-bin.gz

but if the old binaries work for you the new one shouldn't have any new
features, so this is relevant only if you have had problems with quake
on the alpha.

		Linus



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xquake binary update
  1997-09-22  4:00 ` xquake binary update Chris Adams
@ 1997-09-23  4:00   ` Andrew Kieschnick
  1997-10-03  4:00   ` Andreas Trottmann
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Kieschnick @ 1997-09-23  4:00 UTC (permalink / raw)



Chris Adams <cadams@ro.com> wrote:

: I tried to run xquake on my UDB just last week, and figured I was doing
: something wrong since it crashed everytime I tried to start a game.  It
: wasn't me I guess. :-)

: However, I got the new binary from ftp.kernel.org and now all I get is:

: 131:sprocket:~/ftp/alpha-quake$ ./xquake-1.06-alpha-bin
: Illegal Instruction

: Now what?

I get the same from my UDB... 
From an xquake that won't work to one that works even less. :)

Andrew





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xquake binary update
  1997-09-22  4:00 Linus Torvalds
@ 1997-09-23  4:00 ` Alex Butcher
  1997-09-24  4:00 ` Wolfram Gloger
  1 sibling, 0 replies; 7+ messages in thread
From: Alex Butcher @ 1997-09-23  4:00 UTC (permalink / raw)



In article <6066sh$s6g$1@palladium.transmeta.com>, Linus Torvalds wrote:
>
> I was asked to show xquake on my alpha yesterday, and noticed that my
>xquake binary no longer worked on my machine.  It core-dumped when
>trying to start a new game.  Panic.  Embarrassment.

I recall similar feelings just before an expo we were attending. :)

>I don't know if anybody else has seen this problem, or if anybody cares,
>but I decided I might as well make a new test binary available in case
>others see the same thing with the old binary.
>
>The problem was due to the newer 'malloc()' implementation that no
>longer allocated contiguous memory (it uses anonymous mmap() for large
>memory allocations).

We used to get round it by LD_PRELOADing an old version of libc.so (from
RH4.1 IIRC) which would certainly fit in with this explanation.

>		Linus

Regards,
Alex.
-- 
Alex Butcher - Support Specialist         Annex Technology Europe Ltd.
Tel: +44 (0)118 984 1207 (Fax 1217)           [http://www.annex.co.uk]
9 Horseshoe Park, Pangbourne, Reading, RG8 7JW #include [stdisclaim.h]




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xquake binary update
  1997-09-22  4:00 Linus Torvalds
  1997-09-23  4:00 ` Alex Butcher
@ 1997-09-24  4:00 ` Wolfram Gloger
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfram Gloger @ 1997-09-24  4:00 UTC (permalink / raw)



torvalds@transmeta.com (Linus Torvalds) writes:

> The problem was due to the newer 'malloc()' implementation that no
> longer allocated contiguous memory (it uses anonymous mmap() for large
> memory allocations).  Quake uses some 32-bit offsets internally, and the
> offsets between different allocations no longer fit into 32 bits with
> the new malloc.

This is true, probably because the kernel picks addresses far away
from the `conventional' heap for anonymous mmap(0, ...).  I guess no
application should depend on small offsets for 64bit systems.

Please take note that a quick solution for this kind of problem
(without compiling a new binary) is to disable the use of mmap() in
the allocator by setting the environment variable
`MALLOC_MMAP_MAX_=0'.  This works on any recent GNU libc-2 (and also
with Linux libc-5.4.x), and is IMHO _much_ preferable to preloading
another libc or malloc.

The same holds for buggy applications that e.g. free() a pointer twice
in a row -- in many cases this can be caught by setting
`MALLOC_CHECK_=1' (at some performance cost; please do fix the
applications in the long run).

I hope this helps preventing some panic and embarassment in the
future...

Regards,
Wolfram.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xquake binary update
  1997-09-22  4:00 ` xquake binary update Chris Adams
  1997-09-23  4:00   ` Andrew Kieschnick
@ 1997-10-03  4:00   ` Andreas Trottmann
  1997-10-11  4:00     ` Azira
  1 sibling, 1 reply; 7+ messages in thread
From: Andreas Trottmann @ 1997-10-03  4:00 UTC (permalink / raw)



In article <606i0t$1i3$1@news.ro.com>, Chris Adams <cadams@ro.com> wrote:

 CA> However, I got the new binary from ftp.kernel.org and now all I get
 CA> is:

 CA> 131:sprocket:~/ftp/alpha-quake$ ./xquake-1.06-alpha-bin
 CA> Illegal Instruction

I've got the same problem running the new version of xquake on a RedHat 4.1 
miata. strace gives me the following:

execve("./xquake-1.06-alpha-bin", ["./xquake-1.06-alpha-bin"], [/* 47 vars */]) = 0
brk(0)                                  = 0x120224654
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/local/lib/qt/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/kde/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libm.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=5491, ...}) = 0
mmap(0, 4831833368, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x15555564000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555666000
mprotect(0x1555568e000, 1060372, PROT_NONE) = 0
mmap(0x15555766000, 1060372, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555766000
close(3)                                = 0
open("/usr/local/lib/qt/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/kde/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libXext.so.6.3", O_RDONLY) = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555792000
mprotect(0x155557a4000, 1045024, PROT_NONE) = 0
mmap(0x15555892000, 1045024, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555892000
close(3)                                = 0
open("/usr/local/lib/qt/lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/kde/lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libX11.so.6", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libX11.so.6.1", O_RDONLY) = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x155558a4000
mprotect(0x15555990000, 1092044, PROT_NONE) = 0
mmap(0x155559a4000, 1092044, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x155559a4000
close(3)                                = 0
open("/usr/local/lib/qt/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/kde/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555a9c000
mprotect(0x15555b58000, 1142032, PROT_NONE) = 0
mmap(0x15555b9c000, 1142032, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555b9c000
mmap(0x15555c62000, 1142032, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555c62000
close(3)                                = 0
mprotect(0x15555a9c000, 770048, PROT_READ|PROT_WRITE) = 0
mprotect(0x15555a9c000, 770048, PROT_READ|PROT_EXEC) = 0
personality(PER_LINUX)                  = 0
osf_getsysinfo(0x2d, 0x11ffff1c8, 0x11ffff230, 0, 0x2) = 0
osf_setsysinfo(0xe, 0x11ffff1c8, 0x11ffff230, 0, 0x2) = 0
sigaction(SIGFPE, {SIG_IGN}, {SIG_DFL}) = 0
fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
brk(0)                                  = 0x120224654
brk(0x122224654)                        = 0x122224654
--- SIGILL (Illegal Instruction) ---
+++ killed by SIGILL +++


I don't think anything with the quake data files is wrong, since the 
"old" version runs fine when I use LD_PRELOAD to make it use glibc-1.98

So, fixing it does not have highest priority (I think the linux kernel is 
more important than quake :-) ), but if you got an idea...
-- 
Andreas Trottmann <andreas.trottmann@aart.ch>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: xquake binary update
  1997-10-03  4:00   ` Andreas Trottmann
@ 1997-10-11  4:00     ` Azira
  0 siblings, 0 replies; 7+ messages in thread
From: Azira @ 1997-10-11  4:00 UTC (permalink / raw)



I tried to get the xquake binary, but it didn't work for me.
I'm not sure of the error I got, I'd have to go look, but where can I
get a copy
of the old binary?  I just want one that works. (isn't that what we all
want?)


Andreas Trottmann wrote:

> In article <606i0t$1i3$1@news.ro.com>, Chris Adams <cadams@ro.com>
> wrote:
>
>  CA> However, I got the new binary from ftp.kernel.org and now all I
> get
>  CA> is:
>
>  CA> 131:sprocket:~/ftp/alpha-quake$ ./xquake-1.06-alpha-bin
>  CA> Illegal Instruction
>
> I've got the same problem running the new version of xquake on a
> RedHat 4.1
> miata. strace gives me the following:
>
> execve("./xquake-1.06-alpha-bin", ["./xquake-1.06-alpha-bin"], [/* 47
> vars */]) = 0
> brk(0)                                  = 0x120224654
> open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
> directory)
> open("/usr/local/lib/qt/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> open("/usr/local/lib/kde/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/libm.so.6", O_RDONLY)    = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat(3, {st_mode=S_IFREG|0644, st_size=5491, ...}) = 0
> mmap(0, 4831833368, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x15555564000
> close(3)                                = 0
> open("/lib/libm.so.6", O_RDONLY)        = 3
> mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
> munmap(0x15555566000, 8192)             = 0
> mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555666000
> mprotect(0x1555568e000, 1060372, PROT_NONE) = 0
> mmap(0x15555766000, 1060372, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
> 0x15555766000
> close(3)                                = 0
> open("/usr/local/lib/qt/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/usr/local/lib/kde/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/usr/X11R6/lib/libXext.so.6.3", O_RDONLY) = 3
> mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
> munmap(0x15555566000, 8192)             = 0
> mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555792000
> mprotect(0x155557a4000, 1045024, PROT_NONE) = 0
> mmap(0x15555892000, 1045024, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
> 0x15555892000
> close(3)                                = 0
> open("/usr/local/lib/qt/lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/usr/local/lib/kde/lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/libX11.so.6", O_RDONLY)  = -1 ENOENT (No such file or
> directory)
> open("/usr/X11R6/lib/libX11.so.6.1", O_RDONLY) = 3
> mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
> munmap(0x15555566000, 8192)             = 0
> mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x155558a4000
> mprotect(0x15555990000, 1092044, PROT_NONE) = 0
> mmap(0x155559a4000, 1092044, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
> 0x155559a4000
> close(3)                                = 0
> open("/usr/local/lib/qt/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> open("/usr/local/lib/kde/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or
> directory)
> open("/lib/libc.so.6", O_RDONLY)        = 3
> mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
> munmap(0x15555566000, 8192)             = 0
> mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555a9c000
> mprotect(0x15555b58000, 1142032, PROT_NONE) = 0
> mmap(0x15555b9c000, 1142032, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
> 0x15555b9c000
> mmap(0x15555c62000, 1142032, PROT_NONE, 0 /* MAP_??? */, 0, 0) =
> 0x15555c62000
> close(3)                                = 0
> mprotect(0x15555a9c000, 770048, PROT_READ|PROT_WRITE) = 0
> mprotect(0x15555a9c000, 770048, PROT_READ|PROT_EXEC) = 0
> personality(PER_LINUX)                  = 0
> osf_getsysinfo(0x2d, 0x11ffff1c8, 0x11ffff230, 0, 0x2) = 0
> osf_setsysinfo(0xe, 0x11ffff1c8, 0x11ffff230, 0, 0x2) = 0
> sigaction(SIGFPE, {SIG_IGN}, {SIG_DFL}) = 0
> fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
> fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
> brk(0)                                  = 0x120224654
> brk(0x122224654)                        = 0x122224654
> --- SIGILL (Illegal Instruction) ---
> +++ killed by SIGILL +++
>
> I don't think anything with the quake data files is wrong, since the
> "old" version runs fine when I use LD_PRELOAD to make it use
> glibc-1.98
>
> So, fixing it does not have highest priority (I think the linux kernel
> is
> more important than quake :-) ), but if you got an idea...
> --
> Andreas Trottmann <andreas.trottmann@aart.ch>



--
Danny Chen
Linux/Windows Programmer
azira@kiwigods.dyn.ml.org
http://kiwigods.dyn.ml.org/





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-10-11  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <6066sh$s6g$1@palladium.transmeta.com >
1997-09-22  4:00 ` xquake binary update Chris Adams
1997-09-23  4:00   ` Andrew Kieschnick
1997-10-03  4:00   ` Andreas Trottmann
1997-10-11  4:00     ` Azira
1997-09-22  4:00 Linus Torvalds
1997-09-23  4:00 ` Alex Butcher
1997-09-24  4:00 ` Wolfram Gloger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox