当前位置: 技术问答>linux和unix
修改了linux内核的tcp.c tcpsendmsg()函数 出现奔溃 求大侠帮助!!满屏幕的跑00000 元芳你怎么看????
来源: 互联网 发布时间:2017-03-25
本文导语: 本帖最后由 scdxmoe 于 2012-11-30 13:42:13 编辑 大家好 我修改了linux内核的tcp.c 满屏幕的跑00000000 奔溃信息如下:(日志) Nov 30 09:39:20 ubuntu kernel: [ 476.356044] gvfsd-metadata[1382]: segfault at 8 ip 0804cb7a sp bf86f8c0 e...
满屏幕的跑00000000
奔溃信息如下:(日志)
Nov 30 09:39:20 ubuntu kernel: [ 476.356044] gvfsd-metadata[1382]: segfault at 8 ip 0804cb7a sp bf86f8c0 error 4 in gvfsd-metadata[8048000+c000]
Nov 30 09:47:22 ubuntu kernel: imklog 4.2.0, log source = /proc/kmsg started.
Nov 30 09:47:22 ubuntu rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="674" x-info="http://www.rsyslog.com"] (re)start
Nov 30 09:47:22 ubuntu rsyslogd: rsyslogd's groupid changed to 103
Nov 30 09:47:22 ubuntu rsyslogd: rsyslogd's userid changed to 101
Nov 30 09:47:22 ubuntu rsyslogd-2039: Could no open output file '/dev/xconsole' [try http://www.rsyslog.com/e/2039 ]
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] Initializing cgroup subsys cpuset
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] Initializing cgroup subsys cpu
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] Linux version 3.1.4 (root@ubuntu) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #205 SMP Fri Nov 30 09:21:40 CST 2012
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-provided physical RAM map:
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 0000000000100000 - 000000007f5e0000 (usable)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 000000007f5e0000 - 000000007f5e3000 (ACPI NVS)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 000000007f5e3000 - 000000007f5f0000 (ACPI data)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 000000007f5f0000 - 000000007f600000 (reserved)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] DMI 2.4 present.
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] DMI: Gigabyte Technology Co., Ltd. G31M-ES2C/G31M-ES2C, BIOS FF 10/12/2009
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] last_pfn = 0x7f5e0 max_arch_pfn = 0x100000
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] MTRR default type: uncachable
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] MTRR fixed ranges enabled:
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 00000-9FFFF write-back
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] A0000-BFFFF uncachable
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] C0000-CAFFF write-protect
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] CB000-EFFFF uncachable
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] F0000-FFFFF write-through
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] MTRR variable ranges enabled:
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 0 base 000000000 mask F80000000 write-back
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 1 base 07F800000 mask FFF800000 uncachable
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 2 base 07F700000 mask FFFF00000 uncachable
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 3 base 07F600000 mask FFFF00000 uncachable
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 4 disabled
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 5 disabled
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 6 disabled
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 7 disabled
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] found SMP MP-table at [c00f53c0] f53c0
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] initial memory mapped : 0 - 01000000
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] init_memory_mapping: 0000000000000000-00000000377fe000
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 0000000000 - 0000400000 page 4k
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 0000400000 - 0037400000 page 2M
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] 0037400000 - 00377fe000 page 4k
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] kernel direct mapping tables up to 377fe000 @ ffb000-1000000
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] RAMDISK: 322ea000 - 37ff0000
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] Allocated new RAMDISK: 2c5e4000 - 322e9da4
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] Move RAMDISK from 00000000322ea000 - 0000000037fefda3 to 2c5e4000 - 322e9da3
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] ACPI: RSDP 000f6db0 00014 (v00 GBT )
Nov 30 09:47:22 ubuntu kernel: [ 0.000000] ACPI: RSDT 7f5e3040 0003C (v01 GBT GBTUACPI 42302E31 GBTU 01010101)
|
能不能告诉我你改了哪里呢?
|
如果不是内存操作错误的话,有一种可能是,
TCP 的应用层协议导致了错误:因为你增加一个字节的标志肯定会改变发送信息的长度,导致 TCP 发送 内容 不是应用层期待收到的内容长度不对应等其他原因导致系统错误,可能会是TCP 的应用层引起。
如果接收方没有任何的处理.
TCP 的应用层协议导致了错误:因为你增加一个字节的标志肯定会改变发送信息的长度,导致 TCP 发送 内容 不是应用层期待收到的内容长度不对应等其他原因导致系统错误,可能会是TCP 的应用层引起。
如果接收方没有任何的处理.