[mythtv] Ticket #4516: Fix broken Win32 build (circular references out of control again).

Andrei Tanas andrei at tanas.ca
Wed Jan 23 19:28:51 UTC 2008


 
> I updated to 15553 and rebuilt everything. I have a number of patches
> I'm currently working on, so my source is not entirely clean, but as
> far as I can tell 15553 builds properly.

... but it doesn't run at all.

This is what I get now:

Program received signal SIGSEGV, Segmentation fault.
0x03ffbc37 in MythContext::GetShareDir (this=0x47f025ff) at
mythcontext.cpp:1850
1850        return d->m_installprefix + "/share/mythtv/";

(gdb) bt
#0  0x03ffbc37 in MythContext::GetShareDir (this=0x47f025ff) at
mythcontext.cpp:1850
#1  0x07b19b2b in HttpServer::HttpServer (this=0xb635ad8, nPort=6547) at
httpserver.cpp:77
#2  0x00508304 in _fu757___ZN4UPnp9g_pConfigE () at mediarenderer.cpp:42
#3  0x0040907d in _fu25__gContext () at main.cpp:1071

(gdb) break MythContext::MythContext
[0] cancel
[1] all
[2] MythContext::MythContext(QString const&) at mythcontext.cpp:1455
[3] MythContext::MythContext(QString const&) at mythcontext.cpp:1455


The segfault appears to be caused by a call to uninitialized MythContext
(constructor wasn't called, MythContextPrivate was not created), when I
tried to put a breakpoint on the constructor, it turns out, there's two
instances now.
"info sharedlibrary" shows that libmyth was loaded once, so I don't know
where the two are coming from.



More information about the mythtv-dev mailing list