Hi Rich,
The startup script starts two programs, mt_adc and mt_logger, mt_adc starts first in a terminal window, and then a second command uses tail to show the output of the mt_adc log file in a second (separate) terminal window, and then lastly mt_logger starts in a third terminal window, and creates/opens up the GUI.
But you're right, I have no idea whether the problem is with mt_adc, or mt_logger, I just assumed it was mt_logger since that's where all the GUI stuff is and my first symptom of a problem was a hung GUI.
I'm not sure, but I think mt_adc is basically sampling all the time and then the mt_logger program is responsible for "catching" transient events and displaying them in the GUI, and it's the mt_logger program where you can change sample rate, A-D scale, etc, inside the GUI.
When I run mt_adc in gdb it just runs, I can see it with "ps" as well, I just get a solid green cursor in the terminal window that's running gdb. I'm not totally sure, but I think it's doing what it's supposed too.
Back to my "original" testing method, which is to run the start script with the first two commands only, and then run mt_logger in gdb in another window, I'm seeing the segmentation fault, but now in a different spot
Tonight it (mt_logger) seems to get farther into the code before the segmentation fault happens
By the way, when I just type "gdb mt_logger" and "run", gdb gets hung up (I think) and I have to hit Crtl-C to get the prompt back, I can backtrace then but not sure that's valid ?
I did my creep through the mt_logger code with "next" and now I see the following,"Program received signal SIGSEGV, Segmentation fault. No function contains program counter for selected frame." And then when I type "bt" I see,
#0 0x00000003 in ?? ()
#1 0x00000005 in ?? ()
#2 0x0xbfb498cc in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack ?)
I don't know why in gdb when I type "layout next" I'm seeing assembly language code now too, sorry, can't figure anything out here...
I did try just running "gdb mt_logger", and then "run" and then "Ctrl-C" when it hangs, and then "bt", this is what I get in that case,"#13 0x080512a7 in main (argc=1, argv=0xbfcc4d64) at main.c:34"
This is different as this is quite near the last line of main.c now ?? ( gtk_main( ) )
Sorry for this novel, thrashing I guess, confused myself even further (if that's possible)...
Thanks,
David