On 2016-11-16 08:58-0500 Hazen Babcock wrote:

>> I also tried running it in gdb, where it did segfault with the following
>> backtrace:
>> 
>> (gdb) backtrace
>> #0  0x00007fffedf1012d in gtk_container_add () from
>> /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
> ..
>> #18 0x0000000000400e5c in main (argc=1, argv=0x7fffffffdf38) at
>> /home/hbabcock/Code/plplot/examples/c/x02c.c:28
>> 
>> One thing that at least looks suspicious is frame #10:
>> initQtApp (isGUI=true)
>> 
>> Maybe isGUI should be false for the non-interactive devices?
>
> Never mind, I see that we have previously discussed isGUI and why it should 
> be true in 2010 in the thread: "tiffqt device hangs in test_noninteractive".

Sorry, still no time to do this myself, and your knowledge of the qt
device driver is much better than mine in any case.  However, the
quick gdb tutorial for this situation (if you need one) is the
following:

Establish an important breakpoint with

break initQtApp

Then run (from the start) with

run -dev pnqt -fam -o test.pngqt

The when that breakpoint is hit, run the "cont" command to continue
until you finally find the problematic call to initQtApp that
generates the segfault.  Count the number of times you have to
continue, and then run again with one less continue and then look more
carefully at the problematic call that ends in the segfault by
stepping through the code after the breakpoint is reached with "next"
and printing out all relevant variables until you reach the condition
that causes that segfault.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to