Hello,
I am trying to debug/fix an issue in EDM and hence trying to build it from scratch on a Redhat 6.1 64 bit machine. I have downloaded edm-1-12-71.tgz and am able to build it successfully. However, I get a core dump when I try to add a widget/line etc. Here’s the stack trace; all of these issues seem to come from an invalid/null colorInfoClass instance passed on from the activeLineClass::createInteractive method to the widgets. It is possible I have a configuration issue; I have followed the instructions as outlined at http://ics-web.sns.ornl.gov/edm/docs/retrieveDocument.php?documentId=19&folderId=1 . I have tried this with openMotif-2.2.3 (in addition to openmotif-2.3.3-4 which is the version that ships with this linux).
Any pointers are much appreciated.
Regards,
Murali
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7934997 in colorInfoClass::getPixelByIndex (this=0x31656c69, index=0) at ../color_pkg.cc:6344
6344 if ( index >= max_colors+num_blinking_colors )
Missing separate debuginfos, use: debuginfo-install giflib-4.1.6-3.1.el6.x86_64 glibc-2.12-1.47.el6_2.5.x86_64 libICE-1.0.6-1.el6.x86_64 libSM-1.1.0-7.1.el6.x86_64 libX11-1.3-2.el6.x86_64 libXau-1.0.5-1.el6.x86_64 libXcursor-1.1.10-2.el6.x86_64 libXext-1.1-3.el6.x86_64 libXfixes-4.0.4-1.el6.x86_64 libXi-1.3-3.el6.x86_64 libXmu-1.0.5-1.el6.x86_64 libXp-1.0.0-15.1.el6.x86_64 libXrender-0.9.5-1.el6.x86_64 libXt-1.0.7-1.el6.x86_64 libXtst-1.0.99.2-3.el6.x86_64 libgcc-4.4.6-3.el6.x86_64 libpng-1.2.46-1.el6_1.x86_64 libstdc++-4.4.6-3.el6.x86_64 libuuid-2.17.2-12.4.el6.x86_64 libxcb-1.5-1.el6.x86_64 zlib-1.2.3-27.el6.x86_64
(gdb) bt
#0 0x00007ffff7934997 in colorInfoClass::getPixelByIndex (this=0x31656c69, index=0) at ../color_pkg.cc:6344
#1 0x00007ffff7ccb1dc in colorInfoClass::pix (this=0x31656c69, index=0) at ../../../../include/edm/color_pkg.h:219
#2 0x00007ffff794b7a0 in pvColorClass::changeIndex (this=0x74d918, color=0, ci=0x31656c69) at ../pvColor.cc:405
#3 0x00007ffff794b956 in pvColorClass::setColorIndex (this=0x74d918, color=0, ci=0x31656c69) at ../pvColor.cc:474
#4 0x00007ffff7c63120 in activeLineClass::createInteractive (this=0x74d570, aw_obj=0x704cc0, _x=108, _y=188, _w=176, _h=232) at ../line_obj.cc:587
#5 0x00007ffff78e112a in createPopup_cb (w=0x710a60, client=0x704cc0, call=0x7fffffffc520) at ../act_win.cc:7674
#6 0x00000039cd81393f in XtCallCallbackList () from /usr/lib64/libXt.so.6
#7 0x00007ffff72902e2 in BtnUp (wid=0x710a60, event=0x7fffffffcb90, params=<value optimized out>, num_params=<value optimized out>) at PushB.c:2656
#8 0x00000039cd84a76d in ?? () from /usr/lib64/libXt.so.6
#9 0x00000039cd84a8c8 in ?? () from /usr/lib64/libXt.so.6
#10 0x00000039cd84b224 in _XtTranslateEvent () from /usr/lib64/libXt.so.6
#11 0x00000039cd821b8b in XtDispatchEventToWidget () from /usr/lib64/libXt.so.6
#12 0x00000039cd8223bb in ?? () from /usr/lib64/libXt.so.6
#13 0x00000039cd821344 in XtDispatchEvent () from /usr/lib64/libXt.so.6
#14 0x00000039cd82eae9 in XtAppProcessEvent () from /usr/lib64/libXt.so.6
#15 0x00007ffff793a2de in genericProcessAllEvents (sync=0, app=0x647eb0, d=0x6491e0) at ../utility.cc:1186
#16 0x00007ffff793a384 in processAllEvents (app=0x647eb0, d=0x6491e0) at ../utility.cc:1216
#17 0x00007ffff78cb5ca in appContextClass::applicationLoop (this=0x631d10) at ../app_pkg.cc:6174
#18 0x0000000000408e15 in main (argc=1, argv=0x7fffffffda88) at ../main.cc:2725
(gdb) inspect this->change
Cannot access memory at address 0x31656e21