Segmentation fault with Raspian (Debian)
So I thought I'd see if I would be able to get EQEmu running on a Raspberry Pi (Model B+ currently, with Pi 2 in the mail).
Was able to get everything to compile (using this guide as my reference), and WORLD is able to start, but quickly hits a segmentation fault. Quote:
Thought I would post here to see if anyone has any suggestions on how to progress from here. I've done some C++ on Windows but haven't used a debugger on linux before. |
Ok, so are you running on a Raspberry Pi? The first thing you should do is run gdb against the core file and see what kind of general info that can tell you. Could be something really simple, but that's the first step if you have no log files.
At a glance, this looks like a DB configuration issue. Have you verified the user/password and all that works to connect to the DB? |
That's an eqemu_update.pl message.
It will resolve win- or linux-based locations. My guess is that you could either adapt the script to recognize raspberryPi, or manually ensure that your db is up-to-date and ignore the script failure message. |
Uleat, the perl script is causing the segmentation fault? I had thought the perl script was fine, since the segmentation fault occurs after "[World Server] Loading variables.."
|
The update script is failing due to a bad MySQL path and the world server is seg faulting when it's pulling variables from the database. I'm guessing it's an issue with how Raspian handles its MySQL installation or your MySQL configuration.
|
Perhaps its due to the DB being some months out of date. It took a while to get it working properly when I initially set up EQEmu in my Ubuntu VM (few month ago), and I didn't want to lose my player database. So I may need to run an update SQL file or two.
Though it does seem to be connecting, since I get failure messages when the DB is offline or has the wrong credentials. |
Yeah, I was a nooblet and assumed that the DB hadn't changed since world was still version 1.1.3, but it seems I'm missing quite a few DB updates.
Will report back on what happens after updating. Mysql path is fine now that I did "apt-get install mysql-client". I initially skipped a lot of DB pre-reqs since the DB is on the VM still since the RPi doesnt have the space for it. |
Alright, seems the DB is up to date after installing mysql and letting the patcher do its things, though the Segmentation Fault still occurs.
Code:
pi@raspberrypi ~/eq/server $ ./world |
After using GDB...
Code:
GNU gdb (GDB) 7.4.1-debian |
Looks more like a MySQL issue to me. What's ldd on the binary return?
|
Has any progress been made, Wisteso? I've done the exact same thing and I'm getting the very same Segmentation fault following "Loading variables...". Any help would be great.
|
My gdb code...
Code:
(gdb) run |
Quote:
Straying away from the recommended perl versions can lead to issues. |
It is the root of all sorts of evil.
|
I'm new to Linux btw. How would one downgrade to a previous version? Has anyone actually succeeded in getting an Eq server to work on a raspberry pi?
|
All times are GMT -4. The time now is 03:09 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.