<div class="gmail_quote"><br>Andrei,<br><br>Great progress. Thanks for pointing us in the right direction. I have been trying to find a way to progress this and have been stuck. In the process, I have got mythtv on Eclipse on Win32, but no solution. I hope this will point us there. BTW, have you looked at OllyDbg? It might help if you know what you are looking for.<br>
<font color="#888888">
<br>Arnon</font><div><div></div><div class="Wj3C7c"><br>
<br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" width="100%"><tbody><tr><td colspan="2" align="left" valign="top">
<font color="black" face="Verdana,Arial,Helvetica" size="2"><br><b></b>
</font>
</td>
</tr>
<tr><td colspan="2"><hr noshade size="1"></td></tr>
</tbody></table>
<font color="black" face="Verdana,Arial,Helvetica" size="2">
<font color="#660066">> This is the error that is reported IMMEDIATELY on startup: ( there is <br>> no stacktrace or any information from GDB - any help with this would <br>> be appreciated!) <br>> <br>> Program received signal SIGSEGV, Segmentation fault. <br>
> Program exited with code 030000000005. <br>> <br>> (it happens on all .exe's EXCEPT mtd.exe ) <br></font> <br>The problem happens apparently, in a constructor of some global static <br>object, which is supposed to be executed before main(), that's why GDB is <br>
helpless. The problem might be worse (probably is since this only happens on <br>Windows), because "on Windows constructors are not executed for global <br>static data placed in dlls" (see reference below). <br>
<br>So far, I traced the problem to libmythtv. See attachment - unpack it under <br>"programs" and build it, it will run fine, dumping the standard <br>initialization stuff to console and silently exiting. However, as soon as <br>
you uncomment line 102 ("ProgramInfo pi;"), this will link the executable to <br>libmythtv and it will start experiencing the symptoms. <br> <br>This article: <a href="http://www.kdedevelopers.org/node/2889" rel="nofollow" target="_blank">http://www.kdedevelopers.org/node/2889</a> describes exactly the <br>
same issue and offers a solution, the only problem is how to find out where <br>to apply this solution to. This one helps understand the issue too: <br><a href="http://www.microsoft.com/msj/0297/c/c0297.aspx" rel="nofollow" target="_blank">http://www.microsoft.com/msj/0297/c/c0297.aspx</a> <br>
<br>Can somebody help figuring out what these global objects are? So far, using <br>the method from the first article, I found that constructors are called for <br>SSDPCache in upnp.cpp:23, and an array of QTextCodec's "static const <br>
QTextCodec *iso8859_codecs[16];" in dvbdescriptors.cpp:11, but neither seems <br>to be responsible. <br>The method in the article is only good for finding objects inheriting from <br>something common (QObject, in this case), so the scope of the search was <br>
very limited.</font>
</blockquote></div><br>
</div></div></div><br>