August 27, 2015
i think i started to narrow down the error, and i think the actual error is not in vibe.d, or atleast no only there

since import vibe.d causes the shared lib to crash my program, i investigated the vibe.d module. it consists of all the vibe submodule + some modules of phobos. so i started commenting out some of the modules to see which one are causing the error. first i removed all vibe modules and only left in the phobos modules ... crash again - wait what?

import std.datetime; causes my library to crash -_- eeeek
this is a different error now, but still importing std.datetime; in my test creates a segfault 0.o strange

to be continued ...

This program has crashed with signal: Segmentation fault
The current Gameversion is: CoD4 X 1.7a linux-i386-custom_debug type 'e' build 3382 Aug 27 2015
File is ./cod4x17a_dedrun Hash is: 1c941e6f17d4b4bc3243e033707e1625e48ae9cfa232aeabc42f294ce5adaecc
---------- Crash Backtrace ----------
    2: .(Sys_DumpCrash+0xe7) [0x206a5c9]
    1: .(Sys_SigHandler+0x3c) [0x206a70c]
    0: linux-gate.so.1(__kernel_sigreturn+0) [0xf76e8d40]

-- Registers ---
edi 0xec0d41b8
esi 0x0
ebp 0xff88ce58
esp 0xff88ce30
eax 0xec0d9380
ebx 0xf770b000
ecx 0x8
edx 0x3960292072
eip 0x0
-------- Backtrace Completed --------
Received signal: Segmentation fault, exiting...
Server received signal: Segmentation fault
Shutting down server...
----- Server Shutdown -----

With the reason:
Server received signal: Segmentation fault
Terminating server...
Sending heartbeat to cod4master.activision.com
Sending heartbeat to cod4master.iceops.in
Sending heartbeat to cod4master.activision.com
Sending heartbeat to cod4master.iceops.in
==== ShutdownGame (1) ====
---------------------------
./run.sh: line 1:  6629 Segmentation fault      ./cod4x17a_dedrun +exec server.cfg



August 27, 2015
-fpic was missing
std.datetime didnt cause crash anymore after i added the fpic option

import vibe.inet.url;
import vibe.inet.urltransfer;
import vibe.mail.smtp;
import vibe.stream.counting;
import vibe.stream.memory;
import vibe.stream.operations;
import vibe.stream.ssl;
import vibe.stream.tls;
import vibe.stream.zlib;
//import vibe.templ.diet;
//import vibe.templ.utils;
import vibe.textfilter.html;
import vibe.textfilter.markdown;
import vibe.textfilter.urlencode;
import vibe.utils.string;
//import vibe.web.web;
//import vibe.web.rest;

from those modules, the commented out 4 cause the following error
Error: Sys_LoadLibrary error: /home/vagrant/.callofduty4/plugin.failtest.tmp: cannot allocate memory in static TLS block
Error: Failed to load the plugin /home/vagrant/.callofduty4/plugin.failtest.tmp!
August 27, 2015
same result on windows
August 28, 2015
looks like too much global memory is allocated
everything >1kb of global memory crashes with

Error: Sys_LoadLibrary error: /home/vagrant/.callofduty4/plugin.failtest.tmp: cannot allocate memory in static TLS block
Error: Failed to load the plugin /home/vagrant/.callofduty4/plugin.failtest.tmp!

is there a way to increase the maximum storage space for global variables?

1 2
Next ›   Last »