On 11/15/2016 10:47 PM, Hazen Babcock wrote:
>>
>> If I recall correctly example 2 moves through the pages in a unique
>> but legitimate way that other examples do not use so that may be
>> triggering this issue for the qt devices.  So I plan to take a look
>> later when I have finished up some other PLplot issues I am currently
>> dealing with unless you are able to solve this issue first on your own.
>>
>> Assuming you do want to investigate further on your own, I would try
>> compiling with
>>
>> export CFLAGS="-g"
>> export CXXFLAGS="-g"
>>
>> (so the valgrind results properly identify code lines and you can
>> attach a gdb session (if you like) whenever valgrind finds a memory
>> management issue.  Then run valgrind (with --db-attach=yes) on example
>> 2 with familying and a variety of qt devices to see if they all have
>> memory management issues and exactly what part of our qt code is
>> generating those.  My guess is it is something one or all of our qt
>> devices does wrong for the end-of-page processing in familying mode
>> for the unique way example 2 navigates through its two pages.
>
> Apparently --db-attach has been deprecated. My valgrind results are
> attached, but I'm not sure they tell us that much as (naturally) the
> example does not segfault when run in the context of valgrind.
>
> 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".

-Hazen


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

Reply via email to