wrtnode 移植应用程序,运行时系统崩溃,哪里可以查看到崩溃日志

wrtnode 移植应用程序,运行时系统崩溃,哪里可以查看到崩溃日志
已邀请:

bear_218 - 学习中,努力学习中

赞同来自:

崩溃日志
/mnt/mipsbuild/bin# ./linphonec
[  242.390000] Unhandled kernel unaligned access[#1]:
[  242.390000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.18.29 #6
[  242.390000] task: 8030cad0 ti: 80306000 task.ti: 80306000
[  242.390000] $ 0   : 00000000 00000001 766d790a 00000000
[  242.390000] $ 4   : 810a1480 86ac7f30 00000000 00000528
[  242.390000] $ 8   : 72657672 850a4528 6f632065 63656e6e
[  242.390000] $12   : 6e6f6974 00085658 00000000 206f7420
[  242.390000] $16   : 810a1480 00015222 00000080 868a6604
[  242.390000] $20   : 87bd5790 80307a90 00001000 871444d0
[  242.390000] $24   : 00000000 8001f52c                 
[  242.390000] $28   : 80306000 80307a20 80370000 80018058
[  242.390000] Hi    : 00000000
[  242.390000] Lo    : 00000001
[  242.390000] epc   : 80018060 __flush_dcache_page+0x1c/0x88
[  242.390000]     Not tainted
[  242.390000] ra    : 80018058 __flush_dcache_page+0x14/0x88
[  242.390000] Status: 1100e403 KERNEL EXL IE
[  242.390000] Cause : 00800010
[  242.390000] BadVA : 766d791e
[  242.390000] PrId  : 00019655 (MIPS 24KEc)
[  242.390000] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY slhc nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt snd_soc_mt76xx_machine snd_soc_mt76xx_pcm snd_soc_mt76xx_i2s snd_soc_mt76xx_i2s_ctl i2c_wm8960 snd_soc_wm8960 ralink_gdma act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress i2c_ralink snd_soc_core i2c_dev mt76x8 ralink_eeprom_api ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nfsv3 nfs ifb snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore lockd sunrpc grace regmap_spi regmap_i2c i2c_core regmap_core lzo_decompress lzo_compress ipv6 leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug exfat usbcore nls_base usb_common
[  242.390000] Process swapper (pid: 0, threadinfo=80306000, task=8030cad0, tls=00000000)
[  242.390000] Stack : 00010220 8009cf08 8685f6c0 00000000 00000528 871446e4 8685f6c0 86a7fee0
          0007b270 00000020 87bdfc00 87bd5700 000005a8 000005a8 871444d0 87bdfee0
          000152a4 87bd5790 00000006 87146174 00000003 00000003 000005a8 00000000
          00000002 80310000 8685f6c0 803212f8 8685f6c0 000005a8 00000000 00000000
          80307af8 87b45860 20d00ef5 00000000 000005a8 80307b10 87145eb8 8037d1b8
          ...
[  242.390000] Call Trace:
[  242.390000] [<80018060>] __flush_dcache_page+0x1c/0x88
[  242.390000] [<871446e4>] xdr_partial_copy_from_skb+0x198/0x220 [sunrpc]
[  242.390000] [<87146174>] csum_partial_copy_to_xdr+0x1a08/0x31dc [sunrpc]
[  242.390000]
[  242.390000]
Code: 00808021  10400007  00000000 <8c430014> 14600004  24430018  8c420018  1043000e  2402ffff
[  242.960000] ---[ end trace d64e090572b70665 ]---
[  242.980000] Kernel panic - not syncing: Fatal exception in interrupt
[  242.980000] Rebooting in 3 seconds..[04050C09][04050C0A]
DDR Calibration DQS reg = 00008787

xzmu - 10w

赞同来自:

sunrpc的错误日志?我觉得可以尝试的编译一个包含模块比较少的固件。我看了看你这里有很多冗杂的、用不到的模块。
 
很有可能是编译的过程中头文件的改动造成的数据结构不对齐。
 
建议1、make clean一次
 
2、减少不必要的模块

bear_218 - 学习中,努力学习中

赞同来自:

大神,每次崩溃会有栈之类的数据日志,方便定位么!

xzmu - 10w

赞同来自:

[  242.390000] [<80018060>] __flush_dcache_page+0x1c/0x88
[  242.390000] [<871446e4>] xdr_partial_copy_from_skb+0x198/0x220 [sunrpc]
[  242.390000] [<87146174>] csum_partial_copy_to_xdr+0x1a08/0x31dc [sunrpc]
[  242.390000]
 
不过我觉得问题不在这里,而在内存的非对齐访问

要回复问题请先登录注册