XmCreateFileSelectionDialog problem - Motif

This is a discussion on XmCreateFileSelectionDialog problem - Motif ; Hi, I have written a small motif app for my university studies which runs fine at home but seg faults on the university's machine. The seg fault occurs when I call the XmCreateFileSelectionDialog. The gdb debugger gives the follwing output: ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: XmCreateFileSelectionDialog problem

  1. XmCreateFileSelectionDialog problem

    Hi,
    I have written a small motif app for my university studies which runs
    fine at home but seg faults on the university's machine. The seg fault
    occurs when I call the XmCreateFileSelectionDialog. The gdb debugger
    gives the follwing output:

    Program received signal SIGSEGV, Segmentation fault.
    0xdf98c313 in XtScreenDatabase () from /lib/libXt.so.4
    (gdb) where
    #0 0xdf98c313 in XtScreenDatabase () from /lib/libXt.so.4
    #1 0xdf994cec in GetResources () from /lib/libXt.so.4
    #2 0xdf9956f7 in _XtGetResources () from /lib/libXt.so.4
    #3 0xdf98322e in xtCreate () from /lib/libXt.so.4
    #4 0xdf983967 in _XtCreatePopupShell () from /lib/libXt.so.4
    #5 0xdf9839e8 in XtCreatePopupShell () from /lib/libXt.so.4
    #6 0xdfaa16ad in XmCreateDialogShell () from /lib/libXm.so.4
    #7 0xdfaa1770 in XmeCreateClassDialog () from /lib/libXm.so.4
    #8 0xdfab4b2d in XmCreateFileSelectionDialog () from /lib/libXm.so.4

    I am running Solaris 9 on a Sparc and Linux on a PC at home and the
    program runs with no problems. The university's machine is running Intel
    Solaris 8. Using gcc to compile on all 3 machines (32 bit on the Sparc).

    There is a wide variation in executable file sizes:

    Solaris 9 574k
    Linux 352k
    Uni Solaris 8 985k

    Could the problem be a static/dynamic library mismatch? Any thoughts?

    Thanks in advance

    Ross

  2. Re: XmCreateFileSelectionDialog problem

    I'm not sure how much help I can offer, but I just wanted to mention that I am experiencing a similar problem. Here is the error message I'm receiving,

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread -1209071920 (LWP 13004)]
    0x00f54488 in XmToolTipGetLabel () from /usr/lib/libXm.so.4

    What is interesting is that if I do a make clean and rebuild, the application usually runs fine for me for awhile until I eventually receive a SIGSEGV again. I'm running RHEL 5.1 Tikanga. Here is my stack trace,

    (gdb) bt
    #0 0x00f54488 in XmToolTipGetLabel () from /usr/lib/libXm.so.4
    #1 0x00ed686a in _XmLeaveGadget () from /usr/lib/libXm.so.4
    #2 0x00e2b2bc in _XmProcessDrag () from /usr/lib/libXm.so.4
    #3 0x00e1f3aa in _XmDispatchGadgetInput () from /usr/lib/libXm.so.4
    #4 0x00ed2834 in _XmGadgetMultiActivate () from /usr/lib/libXm.so.4
    #5 0x03a24355 in XtDispatchEventToWidget () from /usr/lib/libXt.so.6
    #6 0x03a24c98 in _XtSendFocusEvent () from /usr/lib/libXt.so.6
    #7 0x03a23c77 in XtDispatchEvent () from /usr/lib/libXt.so.6
    #8 0x00a3ff7d in xvtxi_MainLoop (wait=0) at ./xQueue.c:86
    #9 0x00a3ffb8 in xvtk_app_process_pending_events () at ./xQueue.c:101
    #10 0x08c83f9f in xvt_app_process_pending_events () at ./tapp.c:340
    #11 0x08adc454 in CWinDeskTop::DoModalWindow (this=0xa263e98, theWindow=0xa37f3a8, doWait=1) at cwindesk.cpp:1117
    #12 0x08acfc61 in CViewWindow::DoModal (this=0xa37f3a8, itsModalReturn=@0xbfb6dff4, callWindow=0x0) at cviewwin.cpp:984
    #13 0x08ad3c97 in DoModalDialog (modalDialog=0xa37f3a8, callWindow=0x0) at cviewwin.cpp:339
    #14 0x0846546a in DoUpdateApp () at cupdatechecker.cpp:51
    #15 0x084654a3 in CUpdateChecker::AutoCheckDlg (this=0xbfb6e060) at cupdatechecker.cpp:429
    #16 0x080566d8 in CApp::UpdateProgram (this=0x8f1d6a0) at application.cpp:840
    #17 0x080585e7 in CApp::DoMenuCommand (this=0x8f1d6a0, theMenuItem=1825, isShiftKey=0, isControlKey=0) at application.cpp:1297
    #18 0x08bc911a in CDocument::DoMenuCommand (this=0xa2975a8, theMenuItem=1825, isShiftKey=0, isControlKey=0) at cdocumnt.cpp:260
    #19 0x08c27758 in CWindow::DoMenuCommand (this=0xa297708, theMenuItem=1825, isShiftKey=0, isControlKey=0) at cwindow.cpp:831
    #20 0x08c0cc20 in CSwitchBoard::EventHandler (win=170303920, ep=0xbfb6e580) at cswtchbr.cpp:137
    #21 0x08bba066 in hookWinEventHandler (theWinHandle=170303920, pEvent=0xbfb6e580) at callback.cpp:27
    #22 0x00a72125 in xvtv_cxo_call_next (win=170303920, cxo=171431728, ep=0xbfb6e580) at ./vcxo.c:186
    #23 0x00aa6b39 in xvtvn_tx_parent_eh (cxo=171431728, ep=0xbfb6e580) at ./vtxn.c:129
    #24 0x00a71f93 in xvtv_cxo_call_next (win=170303920, cxo=0, ep=0xbfb6e580) at ./vcxo.c:123
    #25 0x00aabef2 in xvtv_win_dispatch_event (win=170303920, ep=0xbfb6e580) at ./vwin.c:182
    #26 0x00a3fa40 in xvtk_win_dispatch_event (win=170303920, ep=0xbfb6e580) at ./xDispatch.c:330
    #27 0x00a3f8f3 in dequeue_event (widget=0xa239370, cdata=0x0, xevent=0xbfb6e8d0, cont=0xbfb6e6f6 "\001\001x
    #28 0x03a24738 in XtDispatchEventToWidget () from /usr/lib/libXt.so.6
    #29 0x03a24c98 in _XtSendFocusEvent () from /usr/lib/libXt.so.6
    #30 0x03a23c77 in XtDispatchEvent () from /usr/lib/libXt.so.6
    #31 0x00a3ff7d in xvtxi_MainLoop (wait=0) at ./xQueue.c:86
    #32 0x00a3ffb8 in xvtk_app_process_pending_events () at ./xQueue.c:101
    #33 0x08ca372d in xvtk_app_create (argc=1, argv=0xbfb6f274, flags=0, task_eh=0x8bba04e , config_p=0xbfb6ea48) at ./xmInit.c:201
    #34 0x08c83d98 in xvt_app_create (argc=1, argv=0xbfb6f274, flags=0, eh=0x8bba04e , config=0xbfb6ea48) at ./tapp.c:104
    #35 0x08bbbc4d in CApplication::Go (this=0x8f1d6a0, argc=1, argv=0xbfb6f274, theMenuBarId=1000, theAboutBoxId=2002, theBaseName=0x8ca5973 "application", theApplicationName=0xbfb6efb8 "VISTA Seismic Processing 2D/3D (Version: 7.009)", theTaskTitle=0xbfb6eebe "Application description (Version: 1.001) Project:") at capplctn.cpp:156
    #36 0x080574d4 in main (argc=1, argv=0xbfb6f274) at application.cpp:527
    (gdb)

+ Reply to Thread