<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Linked list in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754139#M9674</link>
    <description>Hello,&lt;BR /&gt;I'm using intel fortran with Ubuntu 8.10 (amd64). I have the following problem: When I start idb with my program, I get the following message:&lt;BR /&gt;&lt;BR /&gt;Unable to parse input as legal command or Fortran expression.&lt;BR /&gt;Assertion failed: "expr" src/ui/model/dataretrieverdef.C:2901&lt;BR /&gt;This is an unexpected condition and may indicate the presence of a defect.&lt;BR /&gt;If you wish to report this, please include the stack trace that follows.&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN15IDBAssertFailed3runEPKcS1_j+0xe) [0x5d42e4]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN14DTLU_namespace12assertFailedEPKcS1_j+0x24) [0xb83d64]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN16DataRetrieverDef12fillEvalRootEPN4IUDG7DbgData10DataListWCESsiibSsiSs+0x9f2) [0x8f13de]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN16DataRetrieverDef22onRequestLocalEvalListERKSsS1_S1_S1_+0x6ee) [0x8f502a]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS13DataRetriever9onRequestERNS_7DbgData14DbgDataManager13DataHierarchyE+0x7dc) [0x7f8ebc4b0c8c]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS12DataServices10processMsgEPNS_15MSGCLASSFACTORY9ClientMsgE+0x20c) [0x7f8ebc4b18b0]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS10Dispatcher11dispatchMsgEPNS_15MSGCLASSFACTORY9ClientMsgE+0x207) [0x7f8ebc4bbe3f]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS12DSPostOffice13flushMsgQueueEv+0x6d) [0x7f8ebc4c06cf]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN8IudgGlue18processPendingMsgsEb+0x159) [0x91df4b]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(vfprintf+0x3aae) [0x5cfbbe]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_Z15ProcessCommandsv+0x47) [0x5cf851]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_Z7idbMainiPPKcS1_+0x1b0) [0x5cf2d8]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(main+0x3c) [0x5ce080]&lt;BR /&gt;/lib/libc.so.6(__libc_start_main+0xe6) [0x7f8ebce25466]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c+0x6a) [0x5cdfaa]&lt;BR /&gt;&lt;BR /&gt;I found out that the reason for this message is the use of a linked list. Just for demonstration, I have created the following useless program (of course, this program would not work correctly). After compiling "ifort -g tprog.f90" and starting the debugger with "idb a.out", I set a break point at "nnode=10" and run the debugger. Then I get this error message. In the real program, the linked list is initialized. But it doesn't solve the problem. I can still continue to use the debugger. But I don't get informations about local variables.&lt;BR /&gt;&lt;BR /&gt;Do you have any ideas?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Georg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;program tprog&lt;BR /&gt;!&lt;BR /&gt; implicit none&lt;BR /&gt;!&lt;BR /&gt; type tnode&lt;BR /&gt; real(8) ::xyz(3)&lt;BR /&gt; integer(4) ::node&lt;BR /&gt; type(tnode),pointer ::next,prev&lt;BR /&gt; end type tnode&lt;BR /&gt;&lt;BR /&gt; integer :: i,nnode&lt;BR /&gt;!&lt;BR /&gt; type(tnode),pointer::coofno&lt;BR /&gt; type(tnode),target ::first_coofno&lt;BR /&gt;!&lt;BR /&gt; nnode = 10&lt;BR /&gt;!&lt;BR /&gt; coofno =&amp;gt; first_coofno&lt;BR /&gt; do i=1,nnode&lt;BR /&gt; coofno =&amp;gt; coofno%next&lt;BR /&gt; end do&lt;BR /&gt;!&lt;BR /&gt;!&lt;BR /&gt;end program tprog&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 27 Mar 2009 13:05:29 GMT</pubDate>
    <dc:creator>geha</dc:creator>
    <dc:date>2009-03-27T13:05:29Z</dc:date>
    <item>
      <title>Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754139#M9674</link>
      <description>Hello,&lt;BR /&gt;I'm using intel fortran with Ubuntu 8.10 (amd64). I have the following problem: When I start idb with my program, I get the following message:&lt;BR /&gt;&lt;BR /&gt;Unable to parse input as legal command or Fortran expression.&lt;BR /&gt;Assertion failed: "expr" src/ui/model/dataretrieverdef.C:2901&lt;BR /&gt;This is an unexpected condition and may indicate the presence of a defect.&lt;BR /&gt;If you wish to report this, please include the stack trace that follows.&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN15IDBAssertFailed3runEPKcS1_j+0xe) [0x5d42e4]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN14DTLU_namespace12assertFailedEPKcS1_j+0x24) [0xb83d64]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN16DataRetrieverDef12fillEvalRootEPN4IUDG7DbgData10DataListWCESsiibSsiSs+0x9f2) [0x8f13de]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN16DataRetrieverDef22onRequestLocalEvalListERKSsS1_S1_S1_+0x6ee) [0x8f502a]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS13DataRetriever9onRequestERNS_7DbgData14DbgDataManager13DataHierarchyE+0x7dc) [0x7f8ebc4b0c8c]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS12DataServices10processMsgEPNS_15MSGCLASSFACTORY9ClientMsgE+0x20c) [0x7f8ebc4b18b0]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS10Dispatcher11dispatchMsgEPNS_15MSGCLASSFACTORY9ClientMsgE+0x207) [0x7f8ebc4bbe3f]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/idb/lib/intel64/libDebuggerServices.so(_ZN4IUDG2DS12DSPostOffice13flushMsgQueueEv+0x6d) [0x7f8ebc4c06cf]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZN8IudgGlue18processPendingMsgsEb+0x159) [0x91df4b]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(vfprintf+0x3aae) [0x5cfbbe]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_Z15ProcessCommandsv+0x47) [0x5cf851]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_Z7idbMainiPPKcS1_+0x1b0) [0x5cf2d8]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(main+0x3c) [0x5ce080]&lt;BR /&gt;/lib/libc.so.6(__libc_start_main+0xe6) [0x7f8ebce25466]&lt;BR /&gt;/opt/intel/Compiler/11.0/081/bin/intel64/iidb(_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c+0x6a) [0x5cdfaa]&lt;BR /&gt;&lt;BR /&gt;I found out that the reason for this message is the use of a linked list. Just for demonstration, I have created the following useless program (of course, this program would not work correctly). After compiling "ifort -g tprog.f90" and starting the debugger with "idb a.out", I set a break point at "nnode=10" and run the debugger. Then I get this error message. In the real program, the linked list is initialized. But it doesn't solve the problem. I can still continue to use the debugger. But I don't get informations about local variables.&lt;BR /&gt;&lt;BR /&gt;Do you have any ideas?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Georg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;program tprog&lt;BR /&gt;!&lt;BR /&gt; implicit none&lt;BR /&gt;!&lt;BR /&gt; type tnode&lt;BR /&gt; real(8) ::xyz(3)&lt;BR /&gt; integer(4) ::node&lt;BR /&gt; type(tnode),pointer ::next,prev&lt;BR /&gt; end type tnode&lt;BR /&gt;&lt;BR /&gt; integer :: i,nnode&lt;BR /&gt;!&lt;BR /&gt; type(tnode),pointer::coofno&lt;BR /&gt; type(tnode),target ::first_coofno&lt;BR /&gt;!&lt;BR /&gt; nnode = 10&lt;BR /&gt;!&lt;BR /&gt; coofno =&amp;gt; first_coofno&lt;BR /&gt; do i=1,nnode&lt;BR /&gt; coofno =&amp;gt; coofno%next&lt;BR /&gt; end do&lt;BR /&gt;!&lt;BR /&gt;!&lt;BR /&gt;end program tprog&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2009 13:05:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754139#M9674</guid>
      <dc:creator>geha</dc:creator>
      <dc:date>2009-03-27T13:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754140#M9675</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
I guess you must have disabled optimization, as that would enable the compiler to remove the dead code. Without optimization, running under idb shows a SIGSEGV when I attempt to step past where 'p coofno' shows that coofno%next is 0x0, so then coofno is set to 0x0. How are you looking for additional information?&lt;BR /&gt;I am running under Red Hat 5.2, with jre 1.6 64-bit installed from sun.com.&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2009 15:58:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754140#M9675</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-03-27T15:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754141#M9676</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I would expect undeterminable results on the second occurance of coofno =&amp;gt; coofno%next because first_coofno is not initialized first_coofno%{xyz, node, next, prev} are all junk.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2009 17:39:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754141#M9676</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-03-27T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754142#M9677</link>
      <description>Hello,&lt;BR /&gt;as I wrote, the code doesn't work. It was just for demonstration purpose. Here again a program which works, but I get the same error message when I start the debugger.&lt;BR /&gt;&lt;BR /&gt;program tprog&lt;BR /&gt;!&lt;BR /&gt; implicit none&lt;BR /&gt;!&lt;BR /&gt;!.....................declaration...........................&lt;BR /&gt;!&lt;BR /&gt; type tnode&lt;BR /&gt; real(8) ::xyz(3)&lt;BR /&gt; type(tnode),pointer ::next&lt;BR /&gt; end type tnode&lt;BR /&gt;&lt;BR /&gt; integer :: i,nnode&lt;BR /&gt;!&lt;BR /&gt; type(tnode),pointer::coofno&lt;BR /&gt; type(tnode),target ::first_coofno&lt;BR /&gt;!.....................executable part.......................&lt;BR /&gt;!&lt;BR /&gt; nnode = 10&lt;BR /&gt;!&lt;BR /&gt;! assign values&lt;BR /&gt; first_coofno%xyz(1:3)=1.d0&lt;BR /&gt;!&lt;BR /&gt; coofno =&amp;gt; first_coofno&lt;BR /&gt;!&lt;BR /&gt; do i=2,nnode&lt;BR /&gt;!&lt;BR /&gt; allocate(coofno%next)&lt;BR /&gt; coofno =&amp;gt; coofno%next&lt;BR /&gt;!&lt;BR /&gt;! set some values&lt;BR /&gt; coofno%xyz(1:3) = 1.d0*i&lt;BR /&gt; end do &lt;BR /&gt;!&lt;BR /&gt;! set to first set of coordinates&lt;BR /&gt; coofno =&amp;gt; first_coofno&lt;BR /&gt;!&lt;BR /&gt;! go around all nodes&lt;BR /&gt; do while( associated(coofno) )&lt;BR /&gt;!&lt;BR /&gt;! print&lt;BR /&gt; write(*,*) coofno%xyz&lt;BR /&gt;!&lt;BR /&gt;! set to next element in list&lt;BR /&gt; coofno =&amp;gt; coofno%next&lt;BR /&gt; end do&lt;BR /&gt;!&lt;BR /&gt;!&lt;BR /&gt;end program tprog&lt;BR /&gt;&lt;BR /&gt;With the option "-g", optimization should be turned off anyway.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Georg&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 09:39:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754142#M9677</guid>
      <dc:creator>geha</dc:creator>
      <dc:date>2009-03-30T09:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754143#M9678</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
No problem here. You said your previous version was "just a demonstration." Of what? In case your idb installation is bad, did you check your installation of jre etc?&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 16:53:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754143#M9678</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-03-30T16:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754144#M9679</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;The loop that allocates the next coofno does not nullify the link pointer of the new node.&lt;BR /&gt;Therefore, each node that is appended to the list has junkfor a pointer to the next node.&lt;BR /&gt;This isn't a problem until your code expects thelink pointer to point to NULL (.not. associated) whenexamining the link pointer at end of list.&lt;BR /&gt;The loop following the allocation loop will crap out when it tries to access the node after the last one you allocated.&lt;BR /&gt;&lt;BR /&gt;Do not assume that an allocation returns wiped data (Debug mode may or may not do this, release mode will not wipe.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 19:48:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754144#M9679</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-03-30T19:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754145#M9680</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
We confirmed this bug with the 11.0.081 compiler and IDB on Ubuntu 8.04 and 8.10. The trigger is to use the graphical idb interface, set a breakpoint, run to the breakpoint and then open the Locals window (the error will appear in your console window).&lt;BR /&gt;&lt;BR /&gt;The bug is not isolated to Ubuntu nor AMD - it occurs with any OS and processor. The bug is in the GUI code interfacing with IDB.&lt;BR /&gt;&lt;BR /&gt;Good news, our developers found this is fixed in the upcoming 11.1 release. I have confirmed the fix with your code and the Beta 11.1 compiler and IDB GUI. Tendatively, this compiler is due for general availability sometime this summer.&lt;BR /&gt;.&lt;BR /&gt;ron&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 19:57:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754145#M9680</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2009-03-30T19:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Linked list</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754146#M9681</link>
      <description>I am running IDB version 12.0 together with ifort (version 12.0.4) on Ubuntu 11.04. (I'm using the non-commercial version.) When using a linked list in my program I'm experiencing the same kind of problems as reported above. &lt;BR /&gt;Seeing that the bug causing the problem above should have been fixed in the 11.1 release, I was curious to know wether this bug was fixed or not? I would be very happy to know if my problems are caused by the IDB Gui as well, or if it is caused by something else. It is fairly anoying not to be able to see any local variables because of the linked list items which I will depend heavily upon....&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Gunhild</description>
      <pubDate>Thu, 30 Jun 2011 13:17:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Linked-list/m-p/754146#M9681</guid>
      <dc:creator>nillar</dc:creator>
      <dc:date>2011-06-30T13:17:42Z</dc:date>
    </item>
  </channel>
</rss>

