[omniORB] Runtime issue with mingw32-g++-4.5.0 (static constructors)

Jérôme Carretero cJ-omniorb at zougloub.eu
Wed Aug 11 15:55:56 BST 2010


Hi all,

I don't know if some of you tried building omniORB and its tests with the latest (4.5.0) gcc for win32 targets, either i686-pc-mingw32 (cross-compilation) or mingw32 (from Windows).
Well, I did (it's still a pain to build omniORB for this platform), and have encountered some run-time issues (everything links fine).

(gdb) r
Starting program: X:\ESS\Dev\ExternalCode\omni\src\examples\echo/eg1.exe
[New Thread 47164.0x9f0c]

Program received signal SIGSEGV, Segmentation fault.
0x77c42a16 in wscanf () from C:\WINDOWS\system32\msvcrt.dll
(gdb) bt
#0  0x77c42a16 in wscanf () from C:\WINDOWS\system32\msvcrt.dll
#1  0x00650078 in ?? ()
#2  0x77c5fca0 in msvcrt!_iob () from C:\WINDOWS\system32\msvcrt.dll
#3  0x0000002b in ?? ()
#4  0x77c4189f in printf () from C:\WINDOWS\system32\msvcrt.dll
#5  0x77c5fca0 in msvcrt!_iob () from C:\WINDOWS\system32\msvcrt.dll
#6  0x004b72f3 in omni::omni_giopbidir_initialiser_ ()
#7  0x77c5fca0 in msvcrt!_iob () from C:\WINDOWS\system32\msvcrt.dll
#8  0x00650078 in ?? ()
#9  0x004a5848 in __CTOR_LIST__ ()
#10 0x0000002b in ?? ()
#11 0x00454b9a in global constructors keyed to _ZN4omni13orbParameters15scanGranularityE ()
#12 0x004947f2 in __do_global_ctors ()
#13 0x004010ba in __mingw_CRTStartup ()
#14 0x00401178 in mainCRTStartup ()

I can't find where the issue lies...

-- 
cJ



More information about the omniORB-list mailing list