<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 8: Seg faults during gnuplot calls; no Compile errors</title><link>https://sourceforge.net/p/gnuplotfortran/bugs/8/</link><description>Recent changes to 8: Seg faults during gnuplot calls; no Compile errors</description><atom:link href="https://sourceforge.net/p/gnuplotfortran/bugs/8/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 23 Jul 2008 15:26:02 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gnuplotfortran/bugs/8/feed.rss" rel="self" type="application/rss+xml"/><item><title>Seg faults during gnuplot calls; no Compile errors</title><link>https://sourceforge.net/p/gnuplotfortran/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am using the INtel Fortran Compiler on a Debian installation. I have installed all the necessary&lt;br /&gt;
libraries mentioned in the installation instructions. But I was&lt;br /&gt;
getting segmentation faults for the simplest gnuplot calls, and was&lt;br /&gt;
wondering if you could help me out with it.&lt;/p&gt;
&lt;p&gt;I just tried plotting 2 columns of a simple array as follows:&lt;/p&gt;
&lt;p&gt;**********&lt;br /&gt;
PROGRAM Plot&lt;/p&gt;
&lt;p&gt;USE datatypes&lt;br /&gt;
USE gnuplot_module_data&lt;br /&gt;
USE gnuplot_module&lt;/p&gt;
&lt;p&gt;IMPLICIT NONE&lt;/p&gt;
&lt;p&gt;REAL(dp) :: A(5,2)=(/1,2,3,4,5,2,4,6,8,10/)&lt;/p&gt;
&lt;p&gt;TYPE(GNUPLOT_CTRL), POINTER :: g_ctrl&lt;/p&gt;
&lt;p&gt;INTEGER :: Status&lt;br /&gt;
g_ctrl = gnuplot_init('-persist')&lt;/p&gt;
&lt;p&gt;Status = gnuplot_plot2d(g_ctrl,5,A(:,1),A(:,2))&lt;/p&gt;
&lt;p&gt;Status = gnuplot_close(g_ctrl)&lt;/p&gt;
&lt;p&gt;END PROGRAM Plot&lt;br /&gt;
*********&lt;/p&gt;
&lt;p&gt;I compiled with the following command :&lt;/p&gt;
&lt;p&gt;$ ifort "%filename" /opt/intel/fc/10.0.026/lib/libgnuplotfortran.so&lt;br /&gt;
/opt/intel/fc/10.0.026/lib/libfortranposix.so&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;$ ./a.out&lt;/p&gt;
&lt;p&gt;gave the messages :&lt;/p&gt;
&lt;p&gt;gnuplot_init : current display identified as     :0  {2}&lt;br /&gt;
No checking of     -persist as a valid X option will be done ...&lt;br /&gt;
Executing gnuplot -persist (16) with option w (1) ...&lt;br /&gt;
Opened pipe for GNUPlot-Fortran95 IPC : file descriptor 4&lt;br /&gt;
forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;br /&gt;
Image              PC        Routine            Line        Source&lt;br /&gt;
a.out              080AC0FF  Unknown               Unknown  Unknown&lt;br /&gt;
a.out              0804DB71  Unknown               Unknown  Unknown&lt;br /&gt;
libc.so.6          B7E11450  Unknown               Unknown  Unknown&lt;br /&gt;
a.out              0804DAD1  Unknown               Unknown  Unknown&lt;/p&gt;
&lt;p&gt;Further, running gdb gave me :&lt;/p&gt;
&lt;p&gt;gnuplot_init : current display identified as     :0  {2}&lt;br /&gt;
No checking of     -persist as a valid X option will be done ...&lt;br /&gt;
Executing gnuplot -persist (16) with option w (1) ...&lt;br /&gt;
Opened pipe for GNUPlot-Fortran95 IPC : file descriptor 7&lt;/p&gt;
&lt;p&gt;Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
0x080ac12f in both.aligned ()&lt;br /&gt;
Current language:  auto; currently asm&lt;/p&gt;
&lt;p&gt;I'd much appreciate any pointers. Thanks.&lt;/p&gt;
&lt;p&gt;--&lt;br /&gt;
Kumar Ravichandran&lt;/p&gt;
&lt;p&gt;Graduate Research Assistant&lt;br /&gt;
Department of Aerospace Engineering&lt;br /&gt;
University of Maryland&lt;br /&gt;
College Park, MD.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 23 Jul 2008 15:26:02 -0000</pubDate><guid>https://sourceforge.netf5458a9ea3e9a0b9204f0aa7370bbc0a9ad291d9</guid></item></channel></rss>