<?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: SIGTRAP running any program in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366422#M1863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you try cherry-picking 6cecf76b47ba6bea3c81d170afc2e0b244e5849c "powerpc/booke64: Fix kernel hangs at kernel_dbg_exc"?&amp;nbsp; Don't worry about the 64-bit stuff; the change to arch/powerpc/kernel/process.c is what I'm interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't help, could you try the latest upstream kernel to see if it's reproducible there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the above output I believe the SIGTRAP is coming from the _exception() call in DebugException(), which means that somehow single-step interrupts are being enabled inside kernel code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 22:48:35 GMT</pubDate>
    <dc:creator>scottwood</dc:creator>
    <dc:date>2014-10-07T22:48:35Z</dc:date>
    <item>
      <title>gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366417#M1858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a custom P1022 board and are using QorIQ-SDK-V1.6 to create&lt;/P&gt;&lt;P&gt;the software.&amp;nbsp; u-boot, lernel, and rootfs all run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if we try and use gdbserver or even gdb on the board, immediately&lt;/P&gt;&lt;P&gt;upon starting the program (i.e. r) we get&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;warning: [&amp;nbsp;&amp;nbsp; 68.801449] Oops: Exception in kernel mode, sig: 5 [#2]&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.807255] SMP NR_CPUS=2 CTI NED&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.810564] Modules linked in: cy14b101_nvram(O)&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.815183] CPU: 0 PID: 1958 Comm: cp_client Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp; O 3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a #1&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.824915] task: b78c9f80 ti: cfff8000 task.ti: b7858000&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.830306] NIP: b000f86c LR: b000f8f4 CTR: b0066bbc&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.835262] REGS: cfff9f10 TRAP: 2002&amp;nbsp;&amp;nbsp; Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp; O&amp;nbsp; (3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a)&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.844556] MSR: 00021000 &amp;lt;CE,ME&amp;gt;&amp;nbsp; CR: 22000a22&amp;nbsp; XER: 00000000&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.850396] &lt;BR /&gt;GPR00: b000f8f4 b7859f40 b78c9f80 00000000 00000002 00000000 00000000 00000100 &lt;BR /&gt;GPR08: b7858060 b7858000 00021202 00021000 0020103c 00000000 00000000 10000000 &lt;BR /&gt;GPR16: 0fff248c 0fff217c fffff000 00000000 0fff0f40 9f8b9668 00000000 0fff20e8 &lt;BR /&gt;GPR24: 0ffdd678 0fff1d38 0fff2190 0fff0c78 0fff0cd8 0fff1820 0fff1810 9f8b9650 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.880134] NIP [b000f86c] recheck+0x10/0x24&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.884399] LR [b000f8f4] do_user_signal+0x74/0xc4&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.889179] Call Trace:&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.891621] [b7859f40] [b000f8f4] do_user_signal+0x74/0xc4 (unreliable)&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.898234] --- Exception: 0 at 0xffcfd3c&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.898234]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LR = 0xffc3b24&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.905274] Instruction dump:&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.908235] 3960ffff 7d704ba6 4e800020 7120000c 41820034 614a8000 7d400124 484e12d1 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.915993] 3d400002 614a1202 7d400124 54290024 &amp;lt;81290060&amp;gt; 7120000c 40a2ffdc 7120600e &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.923929] ---[ end trace 94924a23f071f21e ]---&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 68.928537] &lt;BR /&gt;Could not load shared library symbols for linux-vdso32.so.1.&lt;BR /&gt;Do you need "set solib-search-path" or "set sysroot"?&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Program terminated with signal SIGTRAP, Trace/breakpoint trap.&lt;BR /&gt;The program no longer exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Google searching indicates the message about linux-vdso32.so.1 can be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that we had to change CONFIG_LOWMEM_SIZE, CONFIG_PAGE_OFFSET, and&lt;/P&gt;&lt;P&gt;CONFIG_KERNEL_START in the defconfig to make space for nor flash.&amp;nbsp; Could&lt;/P&gt;&lt;P&gt;this be a problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cary O'Brien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 15:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366417#M1858</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-10-03T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366418#M1859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What values did you set those CONFIG symbols to?&amp;nbsp; Can you reproduce this problem without that change (e.g. by leaving flash unmapped and running from a ram or network filesystem)?&amp;nbsp; Was there any output prior to the "Exception in kernel mode" line?&amp;nbsp; Is CONFIG_PPC_ADV_DEBUG_REGS enabled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The taint line shows that this kernel has already had crash output, and has an out-of-tree module loaded -- could you try without the out-of-tree module, and be sure to report the first crash output and context that led up to it?&amp;nbsp; Have you made any other changes to the kernel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 22:40:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366418#M1859</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-10-03T22:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366419#M1860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it without the loadable module, gdb still terminates with&lt;/P&gt;&lt;P&gt;&amp;nbsp; Program terminated with signal SIGTRAP, Trace/breakpoint trap.&lt;/P&gt;&lt;P&gt;I backed out the kernel memory layout changes, gdb still terminates with the SIGTRAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the defconfig I have CONFIG_PPC_ADV_DEBUG_REGS=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other observation: it is a P1022 with 2 cores, but currently only&lt;/P&gt;&lt;P&gt;the first core is running.&amp;nbsp; u-boot initialization fails for the second core.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error message from dmesg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp; 76.409265] Oops: Exception in kernel mode, sig: 5 [#1]&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.414490] SMP NR_CPUS=2 CTI NED&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.417799] Modules linked in:&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.420852] CPU: 0 PID: 1626 Comm: cp_client Not tainted 3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a #1&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.429629] task: c78fea00 ti: efff8000 task.ti: c7a32000&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.435019] NIP: c000f86c LR: c000f8f4 CTR: c0066bbc&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.439975] REGS: efff9f10 TRAP: 2002&amp;nbsp;&amp;nbsp; Not tainted&amp;nbsp; (3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a)&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.448314] MSR: 00021000 &amp;lt;CE,ME&amp;gt;&amp;nbsp; CR: 22000a22&amp;nbsp; XER: 00000000&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.454153] &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.454153] GPR00: c000f8f4 c7a33f40 c78fea00 00000000 00000002 00000000 00000000 00000100 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.454153] GPR08: c7a32060 c7a32000 00021202 00021000 0020303c 00000000 00000000 10000000 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.454153] GPR16: 0fff248c 0fff217c fffff000 00000000 0fff0f40 bfe64a78 00000000 0fff20e8 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.454153] GPR24: 0ffdd678 0fff1d38 0fff2190 0fff0c78 0fff0cd8 0fff1820 0fff1810 bfe64a60 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.483895] NIP [c000f86c] recheck+0x10/0x24&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.488159] LR [c000f8f4] do_user_signal+0x74/0xc4&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.492940] Call Trace:&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.495383] [c7a33f40] [c000f8f4] do_user_signal+0x74/0xc4 (unreliable)&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.501993] --- Exception: 0 at 0xffcfd3c&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.501993]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LR = 0xffc3b24&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.509034] Instruction dump:&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.511995] 3960ffff 7d704ba6 4e800020 7120000c 41820034 614a8000 7d400124 484e15b1 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.519754] 3d400002 614a1202 7d400124 54290024 &amp;lt;81290060&amp;gt; 7120000c 40a2ffdc 7120600e &lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.527690] ---[ end trace 5dbb35dc8293f831 ]---&lt;BR /&gt;[&amp;nbsp;&amp;nbsp; 76.532297]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default memory layout settings:&lt;/P&gt;&lt;P&gt;CONFIG_LOWMEM_SIZE=0x30000000&lt;BR /&gt;CONFIG_LOWMEM_CAM_NUM=3&lt;BR /&gt;CONFIG_PAGE_OFFSET=0xc0000000&lt;BR /&gt;CONFIG_KERNEL_START=0xc0000000&lt;BR /&gt;CONFIG_PHYSICAL_START=0x00000000&lt;BR /&gt;CONFIG_PHYSICAL_ALIGN=0x04000000&lt;BR /&gt;CONFIG_TASK_SIZE=0xc0000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modified kernel memory layout:&lt;/P&gt;&lt;P&gt;CONFIG_ADVANCED_OPTIONS=y&lt;/P&gt;&lt;P&gt;CONFIG_LOWMEM_SIZE_BOOL=y&lt;/P&gt;&lt;P&gt;CONFIG_LOWMEM_SIZE=0x20000000&lt;/P&gt;&lt;P&gt;CONFIG_LOWMEM_CAM_NUM=3&lt;/P&gt;&lt;P&gt;# CONFIG_DYNAMIC_MEMSTART is not set&lt;/P&gt;&lt;P&gt;CONFIG_PAGE_OFFSET_BOOL=y&lt;/P&gt;&lt;P&gt;CONFIG_PAGE_OFFSET=0xB0000000&lt;/P&gt;&lt;P&gt;# CONFIG_KERNEL_START_BOOL is not set&lt;/P&gt;&lt;P&gt;CONFIG_KERNEL_START=0xB0000000&lt;/P&gt;&lt;P&gt;# CONFIG_PHYSICAL_START_BOOL is not set&lt;/P&gt;&lt;P&gt;CONFIG_PHYSICAL_START=0x00000000&lt;/P&gt;&lt;P&gt;CONFIG_PHYSICAL_ALIGN=0x04000000&lt;/P&gt;&lt;P&gt;CONFIG_TASK_SIZE_BOOL=y&lt;/P&gt;&lt;P&gt;CONFIG_TASK_SIZE=0xa0000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cary O'Brien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 14:01:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366419#M1860</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-10-06T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366420#M1861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried running gdb on an e500v2 with an SDK 1.6 kernel, and could not reproduce this.&amp;nbsp; Could you provide your kernel config?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, was there any kernel output before the "Exception in kernel mode" line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try adding a WARN_ON(1); before the call do die() in _exception() in arch/powerpc/kernel/traps.c?&amp;nbsp; This should produce a stack trace to see where the SIGTRAP is coming from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 02:07:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366420#M1861</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-10-07T02:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366421#M1862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached defconfig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the WARN_ON(1) and when I run the program under gdb, in dmesg all I get is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 616.251677] ------------[ cut here ]------------&lt;BR /&gt;[&amp;nbsp; 616.256874] WARNING: at b000aa08 [verbose debug info unavailable]&lt;BR /&gt;[&amp;nbsp; 616.262956] Modules linked in:&lt;BR /&gt;[&amp;nbsp; 616.266011] CPU: 0 PID: 1838 Comm: cp_client Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D W&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a #1&lt;BR /&gt;[&amp;nbsp; 616.275743] task: b786b480 ti: cfff8000 task.ti: b79be000&lt;BR /&gt;[&amp;nbsp; 616.281132] NIP: b000aa08 LR: b000a928 CTR: 00000000&lt;BR /&gt;[&amp;nbsp; 616.286089] REGS: cfff9d60 TRAP: 0700&amp;nbsp;&amp;nbsp; Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D W&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a)&lt;BR /&gt;[&amp;nbsp; 616.295384] MSR: 00000000 &amp;lt;&amp;gt;&amp;nbsp; CR: 24000a28&amp;nbsp; XER: 00000000&lt;BR /&gt;[&amp;nbsp; 616.300781] &lt;BR /&gt;[&amp;nbsp; 616.300781] GPR00: 00000000 cfff9e10 b786b480 cfff9e98 b05d4ea6 00000003 cfff9eda 7820636f &lt;BR /&gt;[&amp;nbsp; 616.300781] GPR08: 64652025 00021000 00000000 b000bae0 44000a20 00000000 00000000 10000000 &lt;BR /&gt;[&amp;nbsp; 616.300781] GPR16: 0fff248c 0fff217c fffff000 00000000 0fff0f40 9faa3728 00000000 0fff20e8 &lt;BR /&gt;[&amp;nbsp; 616.300781] GPR24: 0ffdd678 0fff1d38 0fff2190 0fff0c78 b000f874 00030002 cfff9f10 00000005 &lt;BR /&gt;[&amp;nbsp; 616.330526] NIP [b000aa08] _exception+0x114/0x140&lt;BR /&gt;[&amp;nbsp; 616.335224] LR [b000a928] _exception+0x34/0x140&lt;BR /&gt;[&amp;nbsp; 616.339745] Call Trace:&lt;BR /&gt;[&amp;nbsp; 616.342181] Instruction dump:&lt;BR /&gt;[&amp;nbsp; 616.345143] 419eff6c 80a2011c 38610088 811e0080 388201f8 813e0090 7fe6fb78 7f87e378 &lt;BR /&gt;[&amp;nbsp; 616.352901] 7faaeb78 4cc63182 484e99c5 4bffff40 &amp;lt;0fe00000&amp;gt; 3c60b05d 7fc4f378 7fe5fb78 &lt;BR /&gt;[&amp;nbsp; 616.360833] ---[ end trace cb933b4c6c6e909a ]---&lt;BR /&gt;[&amp;nbsp; 616.365444] Oops: Exception in kernel mode, sig: 5 [#2]&lt;BR /&gt;[&amp;nbsp; 616.370658] SMP NR_CPUS=2 CTI NED&lt;BR /&gt;[&amp;nbsp; 616.373966] Modules linked in:&lt;BR /&gt;[&amp;nbsp; 616.377016] CPU: 0 PID: 1838 Comm: cp_client Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D W&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a #1&lt;BR /&gt;[&amp;nbsp; 616.386747] task: b786b480 ti: cfff8000 task.ti: b79be000&lt;BR /&gt;[&amp;nbsp; 616.392137] NIP: b000f874 LR: b000f8fc CTR: b0066bbc&lt;BR /&gt;[&amp;nbsp; 616.397094] REGS: cfff9f10 TRAP: 2002&amp;nbsp;&amp;nbsp; Tainted: G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D W&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a)&lt;BR /&gt;[&amp;nbsp; 616.406388] MSR: 00021000 &amp;lt;CE,ME&amp;gt;&amp;nbsp; CR: 24000a22&amp;nbsp; XER: 00000000&lt;BR /&gt;[&amp;nbsp; 616.412226] &lt;BR /&gt;[&amp;nbsp; 616.412226] GPR00: b000f8fc b79bff40 b786b480 00000000 00000002 00000000 00000000 00000100 &lt;BR /&gt;[&amp;nbsp; 616.412226] GPR08: b79be060 b79be000 00021202 00021000 0020103c 00000000 00000000 10000000 &lt;BR /&gt;[&amp;nbsp; 616.412226] GPR16: 0fff248c 0fff217c fffff000 00000000 0fff0f40 9faa3728 00000000 0fff20e8 &lt;BR /&gt;[&amp;nbsp; 616.412226] GPR24: 0ffdd678 0fff1d38 0fff2190 0fff0c78 0fff0cd8 0fff1820 0fff1810 9faa3710 &lt;BR /&gt;[&amp;nbsp; 616.441965] NIP [b000f874] recheck+0x10/0x24&lt;BR /&gt;[&amp;nbsp; 616.446228] LR [b000f8fc] do_user_signal+0x74/0xc4&lt;BR /&gt;[&amp;nbsp; 616.451008] Call Trace:&lt;BR /&gt;[&amp;nbsp; 616.453450] [b79bff40] [b000f8fc] do_user_signal+0x74/0xc4 (unreliable)&lt;BR /&gt;[&amp;nbsp; 616.460063] --- Exception: 0 at 0xffcfd3c&lt;BR /&gt;[&amp;nbsp; 616.460063]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LR = 0xffc3b24&lt;BR /&gt;[&amp;nbsp; 616.467102] Instruction dump:&lt;BR /&gt;[&amp;nbsp; 616.470063] 3960ffff 7d704ba6 4e800020 7120000c 41820034 614a8000 7d400124 484e15a9 &lt;BR /&gt;[&amp;nbsp; 616.477822] 3d400002 614a1202 7d400124 54290024 &amp;lt;81290060&amp;gt; 7120000c 40a2ffdc 7120600e &lt;BR /&gt;[&amp;nbsp; 616.485762] ---[ end trace cb933b4c6c6e909b ]---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on building a kernel using the p1022rdb config from the Yocto to run on the&lt;/P&gt;&lt;P&gt;board, but this will take a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cary O'Brien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 15:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366421#M1862</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-10-07T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366422#M1863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you try cherry-picking 6cecf76b47ba6bea3c81d170afc2e0b244e5849c "powerpc/booke64: Fix kernel hangs at kernel_dbg_exc"?&amp;nbsp; Don't worry about the 64-bit stuff; the change to arch/powerpc/kernel/process.c is what I'm interested in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't help, could you try the latest upstream kernel to see if it's reproducible there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the above output I believe the SIGTRAP is coming from the _exception() call in DebugException(), which means that somehow single-step interrupts are being enabled inside kernel code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 22:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366422#M1863</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-10-07T22:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366423#M1864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) I compared the diff from kernel.googlesource.com with the code from 1.6, the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment and the "mtmsr(mfmsr() &amp;amp; ~MSR_DE);" are already there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) I'm not sure exactly where I would get the latest upstream kernel?&amp;nbsp; Is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this from freescale or kernel.org?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) I'm going to see if I have any luck tracking this down with CW and the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB tap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully we can come up with a fix, our app development guys are not&lt;/P&gt;&lt;P&gt;happy to have lost gdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cary O'Brien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:39:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366423#M1864</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-10-08T12:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366424#M1865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upstream would be from kernel.org.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 16:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366424#M1865</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-10-08T16:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366425#M1866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a short-term workaround, you could also try disabling CONFIG_PPC_ADV_DEBUG_REGS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 16:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366425#M1866</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-10-08T16:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366426#M1867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to change CONFIG_PPC_ADV_DEBUG_REGS (and related values).&lt;/P&gt;&lt;P&gt;I change my defconfig, rebuild the kernel, but they revert in .config to&lt;/P&gt;&lt;P&gt;CONFIG_PPC_ADV_DEBUG_REGS=y&lt;BR /&gt;CONFIG_PPC_ADV_DEBUG_IACS=2&lt;BR /&gt;CONFIG_PPC_ADV_DEBUG_DACS=2&lt;BR /&gt;CONFIG_PPC_ADV_DEBUG_DVCS=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how I should proceed here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 19:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366426#M1867</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-10-08T19:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366427#M1868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry... I thought it was user-selectable, but apparently not -- and disabling it would enable support for DABR which this hardware doesn't have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 16:52:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366427#M1868</guid>
      <dc:creator>scottwood</dc:creator>
      <dc:date>2014-10-09T16:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: gdb: SIGTRAP running any program</title>
      <link>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366428#M1869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally found the problem.&amp;nbsp; I had CONFIG_DEBUG_CW set in the kernel&lt;/P&gt;&lt;P&gt;configuration.&amp;nbsp;&amp;nbsp; This is defined in arch/powerpc/Kconfig.debug as simply&lt;/P&gt;&lt;P&gt; "Include CodeWarrior kernel debugging".&amp;nbsp; It seems to change things in&lt;/P&gt;&lt;P&gt;arch/powerpc/include/asm/reg_booke.h, arch/powerpc/kernel/idle.c,&lt;/P&gt;&lt;P&gt;arch/powerpc/kernel/fsl_booke_entry_mapping.S, and&lt;/P&gt;&lt;P&gt;arch/powerpc/kernel/head_fsl_booke.S&amp;nbsp; One of those must be messing&lt;/P&gt;&lt;P&gt;up how gdb sets breakpoints or how the kernel handles breakpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if this happens, edit your defconfig, find DEBUG_CW line, and set it to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# CONFIG_DEBUG_CW is not set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cary O'Brien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 17:08:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/gdb-SIGTRAP-running-any-program/m-p/366428#M1869</guid>
      <dc:creator>caryo_brien</dc:creator>
      <dc:date>2014-11-06T17:08:08Z</dc:date>
    </item>
  </channel>
</rss>

