RaspberryPi?
#11
I've downloaded the RasPi development VM and tried compiling MCServer in it. So far I've run into a problem - ARM doesn't handle va_list as a pointer, but rather a structure. That is in direct contrast with *nix, where the va_list NEEDS to be checked against NULL because on *nix, vsnprintf() fails when passed a NULL va_list.
Reply
Thanks given by:
#12
I got MCServer to compile in the RasPi development VM, but as soon as I run it, it crashes, and I have just no idea on how to debug that. It displays a few lines of the normal log, then some backtrace with no MCServer symbols in it, then a memory map, again not much help, and a note that "core has been dumped". It seems the dev VM doesn't have a RasPi version of gdb. And I couldn't locate the mentioned core file.

This is the output I got:
Code:
raspberrypi@raspberrypi-developer:~/mcs$ sb2 ./MCServer [40b21710|09:09:03] --- Started Log --- [40b21710|09:09:03] Error (2) opening world/player/ [40b21710|09:09:03] Creating new server instance... [40b21710|09:09:03] cSocketThreads startup [40b21710|09:09:03] Starting server... /============================\ | Custom Minecraft Server | | Created by Kevin Bansberg | | A.K.A. | | FakeTruth | | Monsters by Alex Sonek | | A.K.A. Duralex | \============================/ More info: WWW.MC-SERVER.ORG WWW.AE-C.NET WWW.RBTHINKTANK.COM email: faketruth@gmail.com [40b21710|09:09:03] Starting up server. [40b21710|09:09:03] Port 25565 has been bound, server is open for connections [40b21710|09:09:03] [Server].DefaultViewDistance not set, using a default of 9 [40b21710|09:09:03] Creating WebAdmin... [40b21710|09:09:03] Starting WebAdmin on port 8080 [40b21710|09:09:03] Loading settings... [40b21710|09:09:03] -- Loading Groups -- *** longjmp causes uninitialized stack frame ***: /home/raspberrypi/Development/qemu/bin/qemu-arm terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0xd71390] /lib/tls/i686/cmov/libc.so.6(+0xe22fa)[0xd712fa] /home/raspberrypi/Development/qemu/bin/qemu-arm[0x60022db4] /home/raspberrypi/Development/qemu/bin/qemu-arm[0x600abf17] /home/raspberrypi/Development/scratchbox2/lib/libsb2/libsb2.so.1(accept+0x80)[0x5e6800] /home/raspberrypi/Development/qemu/bin/qemu-arm[0x600637b6] /home/raspberrypi/Development/qemu/bin/qemu-arm[0x6006bba3] /home/raspberrypi/Development/qemu/bin/qemu-arm[0x6004fad9] /home/raspberrypi/Development/qemu/bin/qemu-arm[0x6006580a] /lib/tls/i686/cmov/libpthread.so.0(+0x596e)[0xa3e96e] /lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xd5ca4e] ======= Memory map: ======== 00110000-00112000 r-xp 00000000 08:01 1049291 /lib/tls/i686/cmov/libdl-2.11.1.so 00112000-00113000 r--p 00001000 08:01 1049291 /lib/tls/i686/cmov/libdl-2.11.1.so 00113000-00114000 rw-p 00002000 08:01 1049291 /lib/tls/i686/cmov/libdl-2.11.1.so 00114000-00131000 r-xp 00000000 08:01 917588 /lib/libgcc_s.so.1 00131000-00132000 r--p 0001c000 08:01 917588 /lib/libgcc_s.so.1 00132000-00133000 rw-p 0001d000 08:01 917588 /lib/libgcc_s.so.1 00265000-00294000 r-xp 00000000 08:01 917646 /lib/libpcre.so.3.12.1 00294000-00295000 r--p 0002e000 08:01 917646 /lib/libpcre.so.3.12.1 00295000-00296000 rw-p 0002f000 08:01 917646 /lib/libpcre.so.3.12.1 00379000-0039d000 r-xp 00000000 08:01 1049293 /lib/tls/i686/cmov/libm-2.11.1.so 0039d000-0039e000 r--p 00023000 08:01 1049293 /lib/tls/i686/cmov/libm-2.11.1.so 0039e000-0039f000 rw-p 00024000 08:01 1049293 /lib/tls/i686/cmov/libm-2.11.1.so 0039f000-003a0000 r--p 00000000 00:00 0 003b7000-0055f000 r-xp 00000000 08:01 548240 /home/raspberrypi/mcs/MCServer 0055f000-0057d000 rw-p 001a8000 08:01 548240 /home/raspberrypi/mcs/MCServer 0057d000-0059e000 rw-p 00000000 00:00 0 005ce000-00629000 r-xp 00000000 08:01 536202 /home/raspberrypi/Development/scratchbox2/lib/libsb2/libsb2.so.2.2.3 00629000-0062a000 r--p 0005a000 08:01 536202 /home/raspberrypi/Development/scratchbox2/lib/libsb2/libsb2.so.2.2.3 0062a000-0062b000 rw-p 0005b000 08:01 536202 /home/raspberrypi/Development/scratchbox2/lib/libsb2/libsb2.so.2.2.3 0062b000-0062c000 rw-p 00000000 00:00 0 00713000-0071a000 r-xp 00000000 08:01 1049315 /lib/tls/i686/cmov/librt-2.11.1.so 0071a000-0071b000 r--p 00006000 08:01 1049315 /lib/tls/i686/cmov/librt-2.11.1.so 0071b000-0071c000 rw-p 00007000 08:01 1049315 /lib/tls/i686/cmov/librt-2.11.1.so 007ad000-007c8000 r-xp 00000000 08:01 917530 /lib/ld-2.11.1.so 007c8000-007c9000 r--p 0001a000 08:01 917530 /lib/ld-2.11.1.so 007c9000-007ca000 rw-p 0001b000 08:01 917530 /lib/ld-2.11.1.so 0090c000-00910000 r-xp 00000000 08:01 3363 /usr/lib/libgthread-2.0.so.0.2400.1 00910000-00911000 r--p 00003000 08:01 3363 /usr/lib/libgthread-2.0.so.0.2400.1 00911000-00912000 rw-p 00004000 08:01 3363 /usr/lib/libgthread-2.0.so.0.2400.1 0093d000-00a05000 r-xp 00000000 08:01 917592 /lib/libglib-2.0.so.0.2400.1 00a05000-00a06000 r--p 000c7000 08:01 917592 /lib/libglib-2.0.so.0.2400.1 00a06000-00a07000 rw-p 000c8000 08:01 917592 /lib/libglib-2.0.so.0.2400.1 00a39000-00a4e000 r-xp 00000000 08:01 1049311 /lib/tls/i686/cmov/libpthread-2.11.1.so 00a4e000-00a4f000 r--p 00014000 08:01 1049311 /lib/tls/i686/cmov/libpthread-2.11.1.so 00a4f000-00a50000 rw-p 00015000 08:01 1049311 /lib/tls/i686/cmov/libpthread-2.11.1.so 00a50000-00a52000 rw-p 00000000 00:00 0 00c8f000-00de2000 r-xp 00000000 08:01 1049285 /lib/tls/i686/cmov/libc-2.11.1.so 00de2000-00de3000 ---p 00153000 08:01 1049285 /lib/tls/i686/cmov/libc-2.11.1.so 00de3000-00de5000 r--p 00153000 08:01 1049285 /lib/tls/i686/cmov/libc-2.11.1.so 00de5000-00de6000 rw-p 00155000 08:01 1049285 /lib/tls/i686/cmov/libc-2.11.1.so 00de6000-00de9000 rw-p 00000000 00:00 0 00e61000-00e62000 r-xp 00000000 00:00 0 [vdso] 403af000-403b0000 ---p 00000000 00:00 0 403b0000-40bb0000 rw-p 00000000 00:00 0 40bb0000-40bcc000 r-xp 00000000 08:01 1193247 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/ld-2.13.so 40bcc000-40bd3000 ---p 00000000 00:00 0 40bd3000-40bd4000 r--p 0001b000 08:01 1193247 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/ld-2.13.so 40bd4000-40bd5000 rw-p 0001c000 08:01 1193247 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/ld-2.13.so 40bd5000-40bd6000 rw-p 00000000 00:00 0 40be5000-40ca1000 r-xp 00000000 08:01 1324160 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/usr/lib/libstdc++.so.6.0.14 40ca1000-40ca8000 ---p 000bc000 08:01 1324160 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/usr/lib/libstdc++.so.6.0.14 40ca8000-40cab000 r--p 000bb000 08:01 1324160 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/usr/lib/libstdc++.so.6.0.14 40cab000-40cad000 rw-p 000be000 08:01 1324160 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/usr/lib/libstdc++.so.6.0.14 40cad000-40cb3000 rw-p 00000000 00:00 0 40cb3000-40d53000 r-xp 00000000 08:01 1200189 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libm-2.13.so 40d53000-40d5a000 ---p 000a0000 08:01 1200189 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libm-2.13.so 40d5a000-40d5b000 r--p 0009f000 08:01 1200189 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libm-2.13.so 40d5b000-40d5c000 rw-p 000a0000 08:01 1200189 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libm-2.13.so 40d5c000-40d67000 r-xp 00000000 08:01 1201738 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libgcc_s-4.5.1-20101112.so.1 40d67000-40d6e000 ---p 0000b000 08:01 1201738 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libgcc_s-4.5.1-20101112.so.1 40d6e000-40d6f000 rw-p 0000a000 08:01 1201738 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libgcc_s-4.5.1-20101112.so.1 40d6f000-40d84000 r-xp 00000000 08:01 1200233 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libpthread-2.13.so 40d84000-40d8b000 ---p 00015000 08:01 1200233 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libpthread-2.13.so 40d8b000-40d8c000 r--p 00014000 08:01 1200233 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libpthread-2.13.so 40d8c000-40d8d000 rw-p 00015000 08:01 1200233 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libpthread-2.13.so 40d8d000-40d8f000 rw-p 00000000 00:00 0 40d8f000-40ec2000 r-xp 00000000 08:01 1192641 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libc-2.13.so 40ec2000-40eca000 ---p 00133000 08:01 1192641 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libc-2.13.so 40eca000-40ecc000 r--p 00133000 08:01 1192641 /home/raspberrypi/Development/raspi_fedora14arm_rootfs/lib/libc-2.13.soqemu: uncaught target signal 6 (Aborted) - core dumped Exit reason and status: signal 6
Reply
Thanks given by:
#13
(03-25-2012, 11:19 PM)xoft Wrote: I got MCServer to compile in the RasPi development VM, but as soon as I run it, it crashes, and I have just no idea on how to debug that. It displays a few lines of the normal log, then some backtrace with no MCServer symbols in it, then a memory map, again not much help, and a note that "core has been dumped". It seems the dev VM doesn't have a RasPi version of gdb. And I couldn't locate the mentioned core file.

Have you tried running it using the official debian image? There is a Linux "how-to" on the following page: http://www.cnx-software.com/2012/02/18/r...-emulator/

I've run that on Windows using Qemu 1.0.1 using that "how-to", but never got network working... (It was a bi*** getting the files of the download image but managed in the end by using this tool: http://www.diskinternals.com/linux-reader/)
Reply
Thanks given by:
#14
Actually there's an emulator in the dev VM, so I tried that one. That's the one that crashed.

If you have that other image up and running, can you try running MCServer in it? I have no idea on how to provide the binary for you, though, I guess you;ll have to compile yourself. On most *nixes it should be as straightforward as downloading the source and issuing a "make" command. In the dev VM the command was actually "sb2 make" since it was doing cross-compilation.
Reply
Thanks given by:
#15
(03-30-2012, 01:23 AM)xoft Wrote: If you have that other image up and running, can you try running MCServer in it? I have no idea on how to provide the binary for you, though, I guess you;ll have to compile yourself. On most *nixes it should be as straightforward as downloading the source and issuing a "make" command. In the dev VM the command was actually "sb2 make" since it was doing cross-compilation.

I have it up and running but have yet to get network working (qemu crashes). Without network I won't be able to d/l get the required packages... I'll let you know if I make any progress...
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)