Mineserver Community

Mineserver => Development => Topic started by: drewbug on January 25, 2011, 06:27:38 am



Title: PowerPC(64)
Post by: drewbug on January 25, 2011, 06:27:38 am
I'm attempting to run Mineserver on my PlayStation 3, which has a PPC64 architecture, and is running Debian. Everything compiles fine, but I can't get the server to start without throwing an error and crashing. I disabled all plugins, compiled again with "DEBUG=YES" and ran it with the GNU Debugger. Here is my output from there: http://pastebin.com/raw.php?i=6yktqeMm

Perhaps somebody can help me out here...? =/ I asked around on IRC, and I also reported this on the bug tracker, but I posted it here, too, because it's not really a normal bug, and that's what I was directed to do on IRC.

Thanks,
Drew Carey Buglione


Title: Re: PowerPC(64)
Post by: Ben S. on January 25, 2011, 07:03:11 am
That exception is thrown when memory is trying to be allocated (new).  It could just be that you are running out of memory.  Any idea how much you have in a PS3?  Debian may be a little stingy with giving memory out due hardware limitations.


Title: Re: PowerPC(64)
Post by: drewbug on January 25, 2011, 07:24:58 am
I only have 256MB of real actual RAM, but I'm using the GPU's 256MB of RAM as a high-speed swap and also have a swap partition on my hard drive. Shouldn't it use that..?  :-\


Title: Re: PowerPC(64)
Post by: Fador on January 25, 2011, 09:05:29 pm
So it was (big)endian problem, it should now be fixed.

Gzipped files contain the uncompressed length at the last four bytes and it was reading it in reversed byte order which caused the size to be quite too big to handle ;)


Title: Re: PowerPC(64)
Post by: Jailout2000 on January 26, 2011, 07:58:37 am
So it was (big)endian problem, it should now be fixed.
I wonder how many other places the server has problems like this.

On the other hand, does this mean the server will run on both little- and big-endian architectures? I mean, I know the way a program stores/retrieves memory is usually done in a way that doesn't really depend on the endianness, but I also know that file formats can be dependent on the endianness, along with network protocol messages.


Title: Re: PowerPC(64)
Post by: Fador on January 26, 2011, 03:26:07 pm
I believe this was the only place that had this kind of a problem ;)


Title: Re: PowerPC(64)
Post by: Ben S. on January 26, 2011, 07:44:22 pm
So it was (big)endian problem, it should now be fixed.
I wonder how many other places the server has problems like this.

On the other hand, does this mean the server will run on both little- and big-endian architectures? I mean, I know the way a program stores/retrieves memory is usually done in a way that doesn't really depend on the endianness, but I also know that file formats can be dependent on the endianness, along with network protocol messages.
The standard is that all network traffic is big endian, and your local system treats it as such, by either leaving it big endian, or converting to little endian.

So yes, the server can run on both big and little endian, or any other type of endianness (yes there are others).


Title: Re: PowerPC(64)
Post by: Jailout2000 on January 27, 2011, 01:35:12 am
Interesting.


Title: Re: PowerPC(64)
Post by: SweetCraft Girl on March 09, 2011, 05:35:21 am
I'm attempting to run Mineserver on my PlayStation 3, which has a PPC64 architecture, and is running Debian. Everything compiles fine, but I can't get the server to start without throwing an error and crashing. I disabled all plugins, compiled again with "DEBUG=YES" and ran it with the GNU Debugger. Here is my output from there: http://pastebin.com/raw.php?i=6yktqeMm

Perhaps somebody can help me out here...? =/ I asked around on IRC, and I also reported this on the bug tracker, but I posted it here, too, because it's not really a normal bug, and that's what I was directed to do on IRC.

Thanks,
Drew Carey Buglione

This really sounds like Steve Wozniak/Jobs type of stuff from the 70's.

I am so beyond clueless how one can even crack open a console game with the intent of having it run an OS AND a server no less.

Seriously brilliant and hacker in the original use of the word.


Title: Re: PowerPC(64)
Post by: TBK on May 13, 2011, 06:03:43 am
Heheh there should be a "Hacker Corner" for people who try to run Mineserver on special devices - PS3, mediacenters, ipods.... :P