OpenWrt Forum Archive

Topic: dir-615 C2 kernel oops

The content of this topic has been archived on 17 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi.

I get "Segmentation fault" when I do "tc class sh dev eth0" on my dir-615 C2. I have posted bug report https://dev.openwrt.org/ticket/5840. This segfault is also in the r18050 version of trunk.

How to understand why segfault is happen ?
Is any way to fix the problem ?

I have tried "gdbserver :2222 tc clsass show dev eth0" but no success ...

(gdb) target remote 192.168.1.1:2222
Remote debugging using 192.168.1.1:2222
[New Thread 739]
0x2aaa8a50 in ?? ()
(gdb) b main
Note: breakpoint 1 also set at pc 0x40442c.
Breakpoint 2 at 0x40442c
(gdb) continue
Continuing.

Breakpoint 1, 0x0040442c in main ()

(gdb) continue
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) bt
No stack.
(gdb)

And on the dir-615:

root@OpenWrt:~# gdbserver :2222 tc class show dev eth0
Process tc created; pid = 739
Listening on port 2222
Remote debugging from host 192.168.1.10

Child terminated with signal = b

Child terminated with signal = 0xb (SIGSEGV)
GDBserver exiting
root@OpenWrt:~#

Seems that kernel goes mad :-(.

Help me :-). I have no ideas ...

warm wrote:

Hi.

I get "Segmentation fault" when I do "tc class sh dev eth0" on my dir-615 C2. I have posted bug report https://dev.openwrt.org/ticket/5840. This segfault is also in the r18050 version of trunk.

How to understand why segfault is happen ?
Is any way to fix the problem ?

Ok. If someone still interesting in this: https://dev.openwrt.org/ticket/5840#comment:1

The discussion might have continued from here.