[vtkusers] Compiling under Cygwin

Joey Mukherjee joey at swri.edu
Tue Mar 2 16:01:03 EST 2004


On Mar 2, 2004, at 2:45 PM, Mathieu Malaterre wrote:

> Joey Mukherjee wrote:
>> Is anyone using Cygwin 1.5.7-1 and VTK with X11?
>> When I use the above combination, I get a coredump in cygwin.dll.  
>> VTK on its own works okay (well, the test programs in bin) and my 
>> other X programs which do not include VTK work fine, yet the 
>> combination of the two causes an issue.
>
> - Is this before or after you made some changes to VTK ?

I made a Local directory which has stuff I've added, but that's it.  
The rest is the VTK4.4 off the web using cmake-1.8.3-1 (I thinkI guess 
it would help to mention that I compiled with pthreads on and win32 
threads off, but I've tried the reverse and had the same results.

> - Did you run first: startxwin.sh ?

Yes.

> - Can you send the backtrace of the problem ?
>
> $gdb ./main
> > r
> ...
> > bt

#0  0x610aaaac in random () from /usr/bin/cygwin1.dll
#1  0x61054ca6 in localtime_r () from /usr/bin/cygwin1.dll
#2  0x61086211 in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#3  0x0071173c in vtkObjectFactoryCollection::New() ()
    at f:/sddas/VTK/Common/vtkObjectFactoryCollection.cxx:30
#4  0x006a38ae in vtkObjectFactory::Init() ()
    at f:/sddas/VTK/Common/vtkObjectFactory.cxx:90
#5  0x006a3830 in vtkObjectFactory::CreateInstance(char const*) (
    vtkclassname=0x5675d0 "vtkRenderer")
    at f:/sddas/VTK/Common/vtkObjectFactory.cxx:53
#6  0x00599485 in vtkGraphicsFactory::CreateInstance(char const*) (
    vtkclassname=0x5675d0 "vtkRenderer")
    at f:/sddas/VTK/Rendering/vtkGraphicsFactory.cxx:139
#7  0x005675ee in vtkRenderer::New() ()
    at f:/sddas/VTK/Rendering/vtkRenderer.cxx:121
#8  0x00434352 in VTKPackage::VTKPackage(_WidgetRec*, SDDAS_BOOL) (
    this=0x101008f8, parent=0x100af068, printMode=sFalse) at 
VTKPackage.C:181
#9  0x00409aa0 in MainDialog::Draw(DrawState, SDDAS_BOOL) 
(this=0x100ac210,
    whichPage=FIRST_PAGE, printMode=sFalse) at MainDialog.C:1462
#10 0x004085f5 in MainDialog::DrawFirstPage(_WidgetRec*, void*, void*) (
     this=0x100ac210, w=0x100c0790, clientData=0x0, callData=0x22e3c0)
     at MainDialog.C:1087
#11 0x004085d2 in MainDialog::DrawFirstPageCallback(_WidgetRec*, void*,
void*)
     (w=0x100c0790, clientData=0x100abed8, callData=0x22e3c0)
     at MainDialog.C:1079
#12 0x01bc26b3 in cygXt-6!XtCallCallbackList ()
    from /usr/X11R6/bin/cygXt-6.dll
#13 0x019b0377 in cygXm-2!XmSetWMProtocolHooks ()
#14 0x01bf6f41 in cygXt-6!_XtMatchAtom () from
/usr/X11R6/bin/cygXt-6.dll
#15 0x01bf73e9 in cygXt-6!_XtMatchAtom () from
/usr/X11R6/bin/cygXt-6.dll
#16 0x01bf797b in cygXt-6!_XtTranslateEvent () from
/usr/X11R6/bin/cygXt-6.dll
#17 0x01bd0165 in cygXt-6!XtDispatchEventToWidget ()
    from /usr/X11R6/bin/cygXt-6.dll
#18 0x01bd0c6f in cygXt-6!_XtOnGrabList () from
/usr/X11R6/bin/cygXt-6.dll
#19 0x01bd0ebf in cygXt-6!XtDispatchEvent () from
/usr/X11R6/bin/cygXt-6.dll
#20 0x01bd13e4 in cygXt-6!XtAppMainLoop () from
/usr/X11R6/bin/cygXt-6.dll
#21 0x00401751 in _fu30__XtStrings () at Contour.C:263
#22 0x61005de0 in getprogname () from /usr/bin/cygwin1.dll
#23 0x10071920 in ?? ()
#25 0x00000001 in ?? ()
#26 0x6167018c in ?? ()
#27 0x735c3a66 in ?? ()
#28 0x73616464 in ?? ()
#29 0x6464735c in ?? ()
#30 0x735c7361 in ?? ()
#31 0x435c6372 in ?? ()
#32 0x6f746e6f in ?? ()
#33 0x435c7275 in ?? ()
#34 0x6f746e6f in ?? ()
#35 0x652e7275 in ?? ()
#36 0x00006578 in ?? ()
#37 0x0022ef98 in ?? ()
#38 0x00401094 in __do_sjlj_init () at Contour.C:95


The vtkRenderer::New is the first thing I call from VTK when my program 
executes a draw command.  I know this has worked before, but recently 
my Windows machine died so now I have to rebuild everything.

Joey




More information about the vtkusers mailing list