LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-23-2021, 02:42 PM   #1
ioi_xd
LQ Newbie
 
Registered: Jun 2021
Distribution: Debian & Arch
Posts: 1

Rep: Reputation: Disabled
Tux Racer 1.1 segfaults on Debian 11


(At the risk of being a bit rude, I want to start the post by noting that I have no interest in running the open source Tux Racer or any of its ports. I'm thus not interested in hearing that this is a 20 year old program)

I'd like to specifically run 1.1 of Tux Racer, the finished commercial release of the program from 2000, shown here running on a (at the time of the video's posting) modern version of OpenSUSE. But this version is infamously closed source, hence why forks of it are usually based on the free, open source, but not very good beta version of it. About three weeks ago I contacted the original developer asking if he was interested in making it open source, but he never got back to me, so I've chosen to continue to try and get the pre-built binary working. (Another side note: the Windows version doesn't run very stable in a Windows XP VM, and on wine it has weird sound issues + doesn't have all of the graphics options available, so I'm specifically looking to get the Linux version running.)

I actually solved the dependencies of it, by copying the dependencies the CD comes with into
Code:
/usr/lib
(I suppose I'll find out later if this was a bad idea, but it seems their modern counterparts are stored in
Code:
/usr/lib/linux-x86_64-gnu/
), and then filling in the rest through
Code:
apt-get
and
Code:
dpkg
. The problem is launching the game, which results in a segmentation fault. Looking up the segmentation fault in relation to 32-bit programs on 64-bit Linux, a proposed solution was to set
Code:
vm.mmap_min_addr
to 0 in
Code:
/etc/sysctl.d/mmap_min_addr.conf
, but the error persists.

Without access to the source or any knowledge of debugging tools, I'm not sure what the problem could be, so I was hoping somebody here could guide me to getting this program working? My last resort would be visualizing an older Linux distro or AntiX, but given that I've supposedly seen it run on a somewhat modern distro I'd love to see it working natively. Thank you.
 
Old 06-25-2021, 06:53 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Hello, ioi_xd & welcome to LQ.

I think you may well find out there's trouble ahead.

If this is a 20 year old game, you need to know that kernel changes around 2004 converted linux to a fully contiguous model, and away from the fixed I/O adresses and A20 handler used in Dos. That may cause problems.

There is also the fact that all libraries will be 32 bit and you have a 64 bit system. So when tux wants/lib/ld-linux.so (which every program uses), it wants a 32bit version. When your system wants/lib/ld-linux.so, it wants 64 bit version and 32 ≠ 64! You will need a 32bit OS, or a multilib system. They are some obvious failings.

When you post in future post program logs. A simple command like
Code:
tux_racer > ~/tux.err 2>&1
will catch the output to stdout in a file in your home dir every time, and you can post the juicy bits so we can see how you're getting on. Don't post big files without reading them. Why should we read them if you won't?
 
Old 06-26-2021, 05:49 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Debian - amd64: The 'Tux Racer' package name is extremetuxracer
https://packages.debian.org/search?s...rds=extremetux

The game runs OK.

-
 
Old 06-26-2021, 06:31 AM   #4
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Debian - amd64: The 'Tux Racer' package name is extremetuxracer
https://packages.debian.org/search?s...rds=extremetux
No. The OP asks about the commercial version which does not have a lot in common with its open-source incarnations. I remember to have installed it quite simply on a Linux-machine, but by following a routine layed-out in detail... there must be an easy way, like with dpkg -i or alienate for RPM or something like an install-script...

I do not remember. But copying libraries by hand to anywhere was *not* part of the procedure. A structured approach to problem-solving should precede the discussion.

[deleted my link to the 0.61 installation – same error on my side ]

Last edited by Michael Uplawski; 06-26-2021 at 06:37 AM. Reason: skip it.
 
Old 06-29-2021, 02:24 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Michael Uplawski View Post
The OP asks about the commercial version which does not have a lot in common with its open-source incarnations.
I wouldn't go that far.
I looked at the video; it has a lot in common with the extremetuxracer (etr) I tried on my machine, but I can see how it has different tracks and looks generally more polished and fun.
 
Old 06-29-2021, 06:16 AM   #6
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
I wouldn't go that far.
Okay. A complete re-write which approached sufficiently the original free version. Writing tracks for the commercial tuxracer was however a chore, compared to the simplicity of combining a few image-files for 0.61.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Running Racer game (not Tux Racer) on Slack 13.1 Smokinbars Linux - Newbie 2 08-24-2010 11:28 AM
Tux Racer or Planet Penguin Racer kimothy Linux - Games 5 03-19-2006 01:21 AM
tux racer biophysics Linux - General 11 05-20-2003 05:28 PM
Tux Racer! DavidPhillips Linux - General 4 01-12-2002 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration