Cuberite Forum
SegFault: Build908 from Berboe on Ubuntu13.10x32 - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: SegFault: Build908 from Berboe on Ubuntu13.10x32 (/thread-1260.html)

Pages: 1 2


SegFault: Build908 from Berboe on Ubuntu13.10x32 - Stephen304 - 10-23-2013

Literally spun up a fresh VPS instance and thought I might try a linux build. Got #908 from Berboe but it segfaults every time. Here is the complete log since I spun up the instance, since I hardly did anything to the server. Before I tried the x64 build on Ubuntu13.10x64 but got the same issue. I thought x32 might fix it but I was wrong. Any ideas?
Code:
root@DevBox:~# apt-get install vsftpd
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  vsftpd
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 115 kB of archives.
After this operation, 372 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ saucy/main vsftpd i386 3.0.2-1ubuntu2 [115 kB]
Fetched 115 kB in 0s (1,930 kB/s)
Preconfiguring packages ...
Selecting previously unselected package vsftpd.
(Reading database ... 56587 files and directories currently installed.)
Unpacking vsftpd (from .../vsftpd_3.0.2-1ubuntu2_i386.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up vsftpd (3.0.2-1ubuntu2) ...
vsftpd start/running, process 1356
Processing triggers for ureadahead ...
root@DevBox:~# nano /etc/vsftpd.conf
root@DevBox:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@DevBox:~# service vsftpd restart
vsftpd stop/waiting
vsftpd start/running, process 1397
root@DevBox:~# ls
mcserver  minecraft  vent
root@DevBox:~# cd mcserver/
root@DevBox:~/mcserver# ls
banned.example.ini  hg.supp       README.txt            webadmin
crafting.txt        items.ini     settings.example.ini  webadmin.example.ini
furnace.txt         MCServer      users.example.ini     whitelist.example.ini
groups.example.ini  monsters.ini  vg
hg                  Plugins       vg.supp
root@DevBox:~/mcserver# ls
banned.example.ini  hg.supp       README.txt            webadmin
crafting.txt        items.ini     settings.example.ini  webadmin.example.ini
furnace.txt         MCServer      users.example.ini     whitelist.example.ini
groups.example.ini  monsters.ini  vg
hg                  Plugins       vg.supp
root@DevBox:~/mcserver# ./MCServer
-bash: ./MCServer: cannot execute binary file
root@DevBox:~/mcserver# ./MCServer
Segmentation fault (core dumped)
root@DevBox:~/mcserver# ./MCServer
Segmentation fault (core dumped)
root@DevBox:~/mcserver# ./MCServer
Segmentation fault (core dumped)
root@DevBox:~/mcserver# ./MCServer
Segmentation fault (core dumped)
root@DevBox:~/mcserver# ./MCServer
Segmentation fault (core dumped)
root@DevBox:~/mcserver#



RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - bearbin - 10-23-2013

The problem is probably incompatible glibc versions or something. Would you mind giving me `file MCServer`?


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - xoft - 10-23-2013

There's a guide on how to report crashes in Linux, can you try to follow it?

https://forum.cuberite.org/showthread.php?tid=631

I'd prefer if you tried it on the 32-bit version, because I have a 32-bit only OS, so I can analyze only 32-bit core dumps.


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - Stephen304 - 10-23-2013

Didn't report a bug because I thought maybe I was doing something wrong. Would want to create confusion about that. MC doesn't get a chance to write a log and a crash dump doesn't seem to be made. file says:
MCServer: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked (uses shared libs), stripped


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - bearbin - 10-23-2013

That's uh.. strange. My build shouldn't be stripped. Can you md5sum it and compare to the provided MD5 sum on the buildserver?


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - Stephen304 - 10-24-2013

MD5 (/Users/Stephen/Downloads/MCServer (1).tar) =
e98965539c31546f4a37170d016ed591 and
e98965539c31546f4a37170d016ed591 MCServer.tar

All I did was unzip on my computer and send via ftp, then chmod executable.
(Build page: http://ci.berboe.co.uk/job/MCServer%20Linux-x86/906/ )

P.S. Any reason why the threads about reporting crashes are in the Off Topic section? I would have posted there, but I felt like crashes are more closely related to development.

Edit: Found out why core dump wasn't writing, here it is: http://www.mediafire.com/download/27b5hjl4txoi388/core


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - bearbin - 10-24-2013

The only thing I can think of is if you FTP'd in the wrong mode, but I think that unlikely since it did start running. Must just be incompatible. It definitely works for me on 13.04.


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - Stephen304 - 10-25-2013

(10-24-2013, 04:41 PM)bearbin Wrote: The only thing I can think of is if you FTP'd in the wrong mode, but I think that unlikely since it did start running. Must just be incompatible. It definitely works for me on 13.04.

I was on 13.10. I changed to 13.04 and it works! So I guess it's something with 13.10. (All x32)


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - xoft - 10-25-2013

My Linux VM is refusing to open the coredump, so I guess I won't be able to help at all.
Any chance you could run it under GDB and get me a backtrace? (The Live analysis step in the guide)


RE: SegFault: Build908 from Berboe on Ubuntu13.10x32 - Stephen304 - 10-25-2013

(10-25-2013, 07:10 AM)xoft Wrote: My Linux VM is refusing to open the coredump, so I guess I won't be able to help at all.
Any chance you could run it under GDB and get me a backtrace? (The Live analysis step in the guide)

Sure! Idk what's wrong with the coredump, its 13.10 x32. I'll try the backtrace in a sec.

Edit: Oh.......... Even though vsftpd doesn't allow ascii mode, I somehow managed to FTP the files that way....... It works now......