<?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 Re: GDB Segmentation fault in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1788717#M9451</link>
    <description>&lt;P&gt;It does seem to be related to disassembly. I just stopped my code with a breakpoint, then clicked the icon to enter Instruction Stepping Mode, which opened the disassembly view and then crashed gdb.&lt;/P&gt;&lt;P&gt;The logs are attached.&lt;/P&gt;&lt;P&gt;The last line before the crash is&lt;/P&gt;&lt;P&gt;812,174 126-data-disassemble --thread 1 -s 1610641434 -e 1610641574 -- 3&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;The disassembly of that section from Binary Utilities-&amp;gt;Disassemble is attached. It seems to have a lot of unexpected "&lt;SPAN&gt;.word" lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;I set the &lt;/FONT&gt;breakpoint&lt;FONT face="inherit"&gt;&amp;nbsp;somewhere else, and managed to get the &lt;/FONT&gt;disassembly&lt;FONT face="inherit"&gt;&amp;nbsp;view to show without crashing. The contents of the same &lt;/FONT&gt;memory&lt;FONT face="inherit"&gt;&amp;nbsp;section in that view are also attached.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 15 Jan 2024 10:15:53 GMT</pubDate>
    <dc:creator>expertsleepers</dc:creator>
    <dc:date>2024-01-15T10:15:53Z</dc:date>
    <item>
      <title>GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1773238#M9370</link>
      <description>&lt;P&gt;Just recently I'm getting a lot of crashes from GDB. Using MCUXpressoIDE 11.8.1 with J-Link&amp;nbsp;&lt;SPAN&gt;V7.94a.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sometimes when I start a debug session, the code downloads OK but then GDB crashes before I can run the code from the initial breakpoint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The debugger console gives me the below. Any assistance would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;GNU gdb (Arm GNU Toolchain 12.2 (Build arm-12.24)) 12.1.90.20221210-git&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Copyright (C) 2022 Free Software Foundation, Inc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;A href="http://gnu.org/licenses/gpl.html" target="_blank"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is free software: you are free to change and redistribute it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is NO WARRANTY, to the extent permitted by law.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Type "show copying" and "show warranty" for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This GDB was configured as "--host=aarch64-apple-darwin20.6.0 --target=arm-none-eabi".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Type "show configuration" for configuration details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For bug reporting instructions, please see:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;&lt;A href="https://bugs.linaro.org/" target="_blank"&gt;https://bugs.linaro.org/&lt;/A&gt;&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Find the GDB manual and other documentation resources online at:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;&lt;A href="http://www.gnu.org/software/gdb/documentation/" target="_blank"&gt;http://www.gnu.org/software/gdb/documentation/&lt;/A&gt;&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For help, type "help".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Type "apropos word" to search for commands related to "word".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;monitor exec SetRestartOnClose=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Temporary breakpoint 1, main () at ../source/MIMXRT1062_eval_0.1.c:1178&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1178 BOARD_ConfigMPU();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fatal signal: Segmentation fault: 11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----- Backtrace -----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Backtrace unavailable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A fatal error internal to GDB has been detected, further&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;debugging is not possible. GDB will now terminate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Dec 2023 15:41:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1773238#M9370</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2023-12-12T15:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1783829#M9424</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I hope you are well.&lt;/P&gt;
&lt;P&gt;Are you running any specific SDK example? Did you make some changes on the projects you try to execute?&lt;BR /&gt;Is it possible to add a breakpoint after the BOARD config functions?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Omar&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2024 00:13:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1783829#M9424</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2024-01-06T00:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1783885#M9426</link>
      <description>This is my own project, not an SDK example.&lt;BR /&gt;&lt;BR /&gt;I can add breakpoints, but it's pointless, because as I said the debugger crashes before the code can even be run.&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Jan 2024 13:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1783885#M9426</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-01-06T13:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1785973#M9435</link>
      <description>&lt;P&gt;Please attach support data - go to Help =&amp;gt; MCUXpresso IDE Save Info for Support.&lt;/P&gt;
&lt;P&gt;I would be specifically interested on the GDB traces. As far as I can tell, you're using a Mac with the IDE build specific for Apple silicon. Would it be possible to try the same use case on a Windows/Linux machine as well? It would be helpful to know whether the issue is OS-specific.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, not being able to reproduce the problem on our side, makes it difficult to find the root cause and report the issue to GDB project or suggest a workaround. My recommendation would be to report the seg fault directly to GDB project, as MCUXpresso IDE is delivered with an Arm GNU Toolchain package that ships unmodified (by NXP) GDB.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;MCUXpresso IDE Support&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 09:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1785973#M9435</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2024-01-10T09:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1785989#M9436</link>
      <description>&lt;P&gt;Support data attached.&lt;/P&gt;&lt;P&gt;How do I find the gdb traces?&lt;/P&gt;&lt;P&gt;I don't use Windows or Linux, I'm afraid.&lt;/P&gt;&lt;P&gt;I did try to report the seg faults directly to GDB, using the link in the crash message above, but was unable to register an account on their bugzilla server. Do you know of another way to report crashes to the GDB project?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 10:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1785989#M9436</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-01-10T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1787225#M9443</link>
      <description>&lt;P&gt;Unfortunately, the zip does not contain the GDB traces... It means that you did not issue a debug session prior to obtaining support info. Please make sure that you reproduce the problem and then export support info, without clearing/removing any console from the Console view.&lt;/P&gt;&lt;P&gt;However, I see in the Eclipse's log several messages related to evaluation of various symbols that you might have added in Expressions view, Global Variables view, Memory view or Variables view. I suggest you close these views (or remove any expression) and see if the problem persists. Maybe you can narrow down the problem and see if GDB is having troubles evaluating any of those symbols.&lt;/P&gt;&lt;P&gt;Regarding the Bugzilla account, I've done this a long time ago and don't remember all the steps. But following the steps from&amp;nbsp;&lt;A href="https://sourceware.org/bugzilla/" target="_blank"&gt;https://sourceware.org/bugzilla/&lt;/A&gt;&amp;nbsp;should get you an account.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCUXpresso IDE Support&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 13:19:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1787225#M9443</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2024-01-11T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1787297#M9446</link>
      <description>&lt;P&gt;I managed to capture the support information including a gdb log. Please see the attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:46:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1787297#M9446</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-01-11T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1788637#M9448</link>
      <description>&lt;P&gt;Thank you. I had a quick look and it seems that GDB stops after the IDE requests:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;044,728 278-data-disassemble --thread 1 -s 1610644768 -e 1610644868 -- 3&lt;/LI-CODE&gt;
&lt;P&gt;I suspect this is issued by the Disassembly view. Would you please try with this view closed? Also, I'd try to manually disassemble around 0x60007D20 with GDB. You can also disassemble the ELF with the IDE (right-click the ELF =&amp;gt; Binary Utilities =&amp;gt; Disassemble). I'm wondering what is so special about that code section.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCUXpresso IDE Support&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 08:30:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1788637#M9448</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2024-01-15T08:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1788674#M9450</link>
      <description>Thanks. If it happens again, I'll try what you suggest.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jan 2024 09:23:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1788674#M9450</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-01-15T09:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDB Segmentation fault</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1788717#M9451</link>
      <description>&lt;P&gt;It does seem to be related to disassembly. I just stopped my code with a breakpoint, then clicked the icon to enter Instruction Stepping Mode, which opened the disassembly view and then crashed gdb.&lt;/P&gt;&lt;P&gt;The logs are attached.&lt;/P&gt;&lt;P&gt;The last line before the crash is&lt;/P&gt;&lt;P&gt;812,174 126-data-disassemble --thread 1 -s 1610641434 -e 1610641574 -- 3&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;The disassembly of that section from Binary Utilities-&amp;gt;Disassemble is attached. It seems to have a lot of unexpected "&lt;SPAN&gt;.word" lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="inherit"&gt;I set the &lt;/FONT&gt;breakpoint&lt;FONT face="inherit"&gt;&amp;nbsp;somewhere else, and managed to get the &lt;/FONT&gt;disassembly&lt;FONT face="inherit"&gt;&amp;nbsp;view to show without crashing. The contents of the same &lt;/FONT&gt;memory&lt;FONT face="inherit"&gt;&amp;nbsp;section in that view are also attached.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Jan 2024 10:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/GDB-Segmentation-fault/m-p/1788717#M9451</guid>
      <dc:creator>expertsleepers</dc:creator>
      <dc:date>2024-01-15T10:15:53Z</dc:date>
    </item>
  </channel>
</rss>

