Skip to contentSkip to conversation

Mpc8315erdb openvpn segmentation fault

DISCUSSION Vasanth Ragavendran 2 participants 7 messages Mar 7, 2011 – Mar 14, 2011

lore
Share & tools
lore
#0 lore raw

i'm facing a problem. i've installed openvpn on mpc8315erdb board and when i give the command

openvpn --mktun --dev tap0 i get the error

[root@mpc8315erdb /]# openvpn --mktun --dev tap0
Sat Jan 1 01:04:21 2000 OpenVPNUnable to handle kernel paging request for data
at address 0x00000000
2.0.9 ppc-rpm-lFaulting instruction address: 0xc90a208c
inux-gnu [SSL] [Oops: Kernel access of bad area, sig: 11 [#1] MPC831x RDB

Modules linked in: tun
**bleep**: c90a208c LR: c90a2068 CTR: c0288e58
REGS: c294fd80 TRAP: 0300   Not tainted  (2.6.29.6)
MSR: 00009032 <EE,ME,IR,DR>  CR: 24002424  XER: 20000000
DAR: 00000000, DSISR: 20000000

TASK = c70b6440[1635] 'openvpn' THREAD: c294e000
GPR00: 00000001 c294fe30 c70b6440 c03ebcf4 bfafa0d4 0000001c c294fe58 0fd8dc58
GPR08: 00000000 00000001 ffffffe7 00000000 84002428 100787e0 07ff9000 00000004
GPR16: 00000000 00000000 bfafa930 00010000 00010000 ffffffff 00000005 3b9aca00
GPR24: c7023d20 c294fe3c bfafa0b8 c653e6e0 00000000 c040baf4 bfafa0b8 800454ca

Call Trace:

[c294fe30] [c90a2068] 0xc90a2068 (unreliable)
[c294fe90] [c008054c] 0xc008054c
[c294fea0] [c00809c4] 0xc00809c4
[c294ff10] [c0080c9c] 0xc0080c9c
[c294ff40] [c001141c] 0xc001141c
--- Exception: c01 at 0xfce8268

    LR = 0xfd6bdec

Instruction dump:
4bfffecc 9b81001b 480008ed 3d20c90a 38000001 8129306c 81620308 2f890000 830201a4 83ab0014 817d0124 419e0014 <800b0000> 7c090010 7c000110 7c0000d0 LZO] [EPOLL] bui---[ end trace 54eee2a93ccf53d1 ]---
lt on Mar 2 2011
Sat Jan 1 01:04:21 2000 IMPORTANT: OpenVPN's default port number is now 1194, b
ased on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earl
ier used 5000 as the default port.
Sat Jan 1 01:04:21 2000 ******* WARNING *******: all encryption and authenticat
ion features disabled -- all data will be tunnelled as cleartext Segmentation fault

Some one plz help me out! wat does this mean? Coz with the same kernel image and the same settings i'm able to successfully run the above command on another mpc8315erdb board. but it fails on one of the board! any ideas would be of great help to me!! plz!

Signature · 2 lines
View this message in context: http://old.nabble.com/Mpc8315erdb-openvpn-segmentation-fault-tp31086738p31086738.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
#1 lore raw
Quoted 54 lines · On Mon, 7 Mar 2011 03:09:27 -0800 Vasanth Ragavendran…

i'm facing a problem. i've installed openvpn on mpc8315erdb board and when i give the command

openvpn --mktun --dev tap0 i get the error

[root@mpc8315erdb /]# openvpn --mktun --dev tap0
Sat Jan 1 01:04:21 2000 OpenVPNUnable to handle kernel paging request for data
at address 0x00000000
2.0.9 ppc-rpm-lFaulting instruction address: 0xc90a208c
inux-gnu [SSL] [Oops: Kernel access of bad area, sig: 11 [#1] MPC831x RDB

Modules linked in: tun
**bleep**: c90a208c LR: c90a2068 CTR: c0288e58
REGS: c294fd80 TRAP: 0300   Not tainted  (2.6.29.6)
MSR: 00009032 <EE,ME,IR,DR>  CR: 24002424  XER: 20000000
DAR: 00000000, DSISR: 20000000

TASK = c70b6440[1635] 'openvpn' THREAD: c294e000
GPR00: 00000001 c294fe30 c70b6440 c03ebcf4 bfafa0d4 0000001c c294fe58 0fd8dc58
GPR08: 00000000 00000001 ffffffe7 00000000 84002428 100787e0 07ff9000 00000004
GPR16: 00000000 00000000 bfafa930 00010000 00010000 ffffffff 00000005 3b9aca00
GPR24: c7023d20 c294fe3c bfafa0b8 c653e6e0 00000000 c040baf4 bfafa0b8 800454ca

Call Trace:

[c294fe30] [c90a2068] 0xc90a2068 (unreliable)
[c294fe90] [c008054c] 0xc008054c
[c294fea0] [c00809c4] 0xc00809c4
[c294ff10] [c0080c9c] 0xc0080c9c
[c294ff40] [c001141c] 0xc001141c
--- Exception: c01 at 0xfce8268

    LR = 0xfd6bdec

Instruction dump:
4bfffecc 9b81001b 480008ed 3d20c90a 38000001 8129306c 81620308 2f890000 830201a4 83ab0014 817d0124 419e0014 <800b0000> 7c090010 7c000110 7c0000d0 LZO] [EPOLL] bui---[ end trace 54eee2a93ccf53d1 ]---
lt on Mar 2 2011
Sat Jan 1 01:04:21 2000 IMPORTANT: OpenVPN's default port number is now 1194, b
ased on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earl
ier used 5000 as the default port.
Sat Jan 1 01:04:21 2000 ******* WARNING *******: all encryption and authenticat
ion features disabled -- all data will be tunnelled as cleartext Segmentation fault

Quoted 4 lines

Some one plz help me out! wat does this mean? Coz with the same kernel image and the same settings i'm able to successfully run the above command on another mpc8315erdb board. but it fails on one of the board! any ideas would be of great help to me!! plz!

Please turn on CONFIG_KALLSYMS, so that symbols will be reported in the crash dump, and let us know which kernel you're using.

Are the other boards where it does not fail running the same kernel? Same userspace? Same U-Boot? Anything else different?

-Scott

#2 lore raw

Thanks a ton Scott. Actually i was working with the same version of the kernel on both the boards.
it was 2.6.29.6. neither i changed the u-boot. it was the same in both. however i recompiled the kernel and i installed on both the boards and it worked fine! :) thanks again for responding. however i've another question. my filesystem in the board is non-persistent i.e. the files i create are erased after i reboot i know the files are getting stored in RAM and i wish to make them persistent. what do i need to do for this? should i create a separate partition in the flash and load certain files into that partition? or how should i make it persistent so that files stay beyond reboot! thanks again! eagerly awaiting your response.

Quoted 82 lines · Scott Wood-2 wrote:
Quoted 57 lines · On Mon, 7 Mar 2011 03:09:27 -0800 Vasanth Ragavendran…

i'm facing a problem. i've installed openvpn on mpc8315erdb board and when i
give the command

openvpn --mktun --dev tap0 i get the error

[root@mpc8315erdb /]# openvpn --mktun --dev tap0
Sat Jan 1 01:04:21 2000 OpenVPNUnable to handle kernel paging request for
data
at address 0x00000000
2.0.9 ppc-rpm-lFaulting instruction address: 0xc90a208c
inux-gnu [SSL] [Oops: Kernel access of bad area, sig: 11 [#1] MPC831x RDB

Modules linked in: tun
**bleep**: c90a208c LR: c90a2068 CTR: c0288e58
REGS: c294fd80 TRAP: 0300   Not tainted  (2.6.29.6)
MSR: 00009032 <EE,ME,IR,DR>  CR: 24002424  XER: 20000000
DAR: 00000000, DSISR: 20000000

TASK = c70b6440[1635] 'openvpn' THREAD: c294e000
GPR00: 00000001 c294fe30 c70b6440 c03ebcf4 bfafa0d4 0000001c c294fe58 0fd8dc58
GPR08: 00000000 00000001 ffffffe7 00000000 84002428 100787e0 07ff9000 00000004
GPR16: 00000000 00000000 bfafa930 00010000 00010000 ffffffff 00000005 3b9aca00
GPR24: c7023d20 c294fe3c bfafa0b8 c653e6e0 00000000 c040baf4 bfafa0b8 800454ca

Call Trace:

[c294fe30] [c90a2068] 0xc90a2068 (unreliable)
[c294fe90] [c008054c] 0xc008054c
[c294fea0] [c00809c4] 0xc00809c4
[c294ff10] [c0080c9c] 0xc0080c9c
[c294ff40] [c001141c] 0xc001141c
--- Exception: c01 at 0xfce8268

    LR = 0xfd6bdec

Instruction dump:
4bfffecc 9b81001b 480008ed 3d20c90a 38000001 8129306c 81620308 2f890000 830201a4 83ab0014 817d0124 419e0014 <800b0000> 7c090010 7c000110 7c0000d0 LZO] [EPOLL] bui---[ end trace 54eee2a93ccf53d1 ]---
lt on Mar 2 2011
Sat Jan 1 01:04:21 2000 IMPORTANT: OpenVPN's default port number is now 1194, b
ased on an official port number assignment by IANA. OpenVPN 2.0-beta16 and
earl
ier used 5000 as the default port.
Sat Jan 1 01:04:21 2000 ******* WARNING *******: all encryption and authenticat
ion features disabled -- all data will be tunnelled as cleartext Segmentation fault

Quoted 6 lines

Some one plz help me out! wat does this mean? Coz with the same kernel image
and the same settings i'm able to successfully run the above command on another mpc8315erdb board. but it fails on one of the board! any ideas would
be of great help to me!! plz!

Please turn on CONFIG_KALLSYMS, so that symbols will be reported in the crash dump, and let us know which kernel you're using.

Are the other boards where it does not fail running the same kernel? Same userspace? Same U-Boot? Anything else different?

-Scott

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

Signature · 2 lines
View this message in context: http://old.nabble.com/Mpc8315erdb-openvpn-segmentation-fault-tp31086738p31094242.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
#3 lore raw
Quoted 12 lines · On Mon, 7 Mar 2011 20:28:32 -0800 Vasanth Ragavendran…

Thanks a ton Scott. Actually i was working with the same version of the kernel on both the boards.
it was 2.6.29.6. neither i changed the u-boot. it was the same in both. however i recompiled the kernel and i installed on both the boards and it worked fine! :) thanks again for responding. however i've another question. my filesystem in the board is non-persistent i.e. the files i create are erased after i reboot i know the files are getting stored in RAM and i wish to make them persistent. what do i need to do for this? should i create a separate partition in the flash and load certain files into that partition? or how should i make it persistent so that files stay beyond reboot! thanks again! eagerly awaiting your response.

Yes, you should create a filesystem (e.g. jffs2) on a flash partition.

-Scott

#4 lore raw

Thanks again Scott. That was really helpful. Actually i forgot to mention that i had created an ext2 ramdisk file system and it was non-persistent. and then i changed the file system to jffs2 and it is persistent. so my question is why is that the ext2 ramdisk is non-persistent? and what needs to be changed in order to make it persistent. thanks again for prompt response..

Quoted 31 lines · Scott Wood-2 wrote:
Quoted 16 lines · On Mon, 7 Mar 2011 20:28:32 -0800 Vasanth Ragavendran…

Thanks a ton Scott. Actually i was working with the same version of the kernel on both the boards.
it was 2.6.29.6. neither i changed the u-boot. it was the same in both. however i recompiled the kernel and i installed on both the boards and it worked fine! :) thanks again for responding. however i've another question.
my filesystem in the board is non-persistent i.e. the files i create are erased after i reboot i know the files are getting stored in RAM and i wish
to make them persistent. what do i need to do for this? should i create a separate partition in the flash and load certain files into that partition?
or how should i make it persistent so that files stay beyond reboot! thanks
again! eagerly awaiting your response.

Yes, you should create a filesystem (e.g. jffs2) on a flash partition.

-Scott

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

Signature · 2 lines
View this message in context: http://old.nabble.com/Mpc8315erdb-openvpn-segmentation-fault-tp31086738p31102807.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
#5 lore raw
In reply to Scott Wood

Thanks again Scott. That was really helpful. Actually i forgot to mention that i had created an ext2 ramdisk file system and it was non-persistent (the mount point was /dev/ram for this ext2 ramdisk filesystem). and then i changed the file system to jffs2 and it is persistent (and the mount point was /dev/mtdblock1 for jffs2 file system). so my question is why is that the ext2 ramdisk is non-persistent? is it because of the mount point /dev/ram and what needs to be changed in order to make it persistent. thanks again for prompt response..

Quoted 31 lines · Scott Wood-2 wrote:
Quoted 16 lines · On Mon, 7 Mar 2011 20:28:32 -0800 Vasanth Ragavendran…

Thanks a ton Scott. Actually i was working with the same version of the kernel on both the boards.
it was 2.6.29.6. neither i changed the u-boot. it was the same in both. however i recompiled the kernel and i installed on both the boards and it worked fine! :) thanks again for responding. however i've another question.
my filesystem in the board is non-persistent i.e. the files i create are erased after i reboot i know the files are getting stored in RAM and i wish
to make them persistent. what do i need to do for this? should i create a separate partition in the flash and load certain files into that partition?
or how should i make it persistent so that files stay beyond reboot! thanks
again! eagerly awaiting your response.

Yes, you should create a filesystem (e.g. jffs2) on a flash partition.

-Scott

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

Signature · 2 lines
View this message in context: http://old.nabble.com/Mpc8315erdb-openvpn-segmentation-fault-tp31086738p31103965.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.
#6 lore raw

Thanks scott! my question must have been very silly to u! thanks for replying to it patiently!!!

Quoted 47 lines · Vasanth Ragavendran

Thanks again Scott. That was really helpful. Actually i forgot to mention that i had created an ext2 ramdisk file system and it was non-persistent (the mount point was /dev/ram for this ext2 ramdisk filesystem). and then i changed the file system to jffs2 and it is persistent (and the mount point was /dev/mtdblock1 for jffs2 file system). so my question is why is that the ext2 ramdisk is non-persistent? is it because of the mount point /dev/ram and what needs to be changed in order to make it persistent. thanks again for prompt response..

Quoted 33 lines · Scott Wood-2 wrote:
Quoted 10 lines · On Mon, 7 Mar 2011 20:28:32 -0800 Vasanth Ragavendran…

Thanks a ton Scott. Actually i was working with the same version of the kernel on both the boards.
it was 2.6.29.6. neither i changed the u-boot. it was the same in both. however i recompiled the kernel and i installed on both the boards and it
worked fine! :) thanks again for responding. however i've another question.
my filesystem in the board is non-persistent i.e. the files i create are erased after i reboot i know the files are getting stored in RAM and i

Quoted 8 lines

wish
to make them persistent. what do i need to do for this? should i create a
separate partition in the flash and load certain files into that partition?
or how should i make it persistent so that files stay beyond reboot! thanks
again! eagerly awaiting your response.

Yes, you should create a filesystem (e.g. jffs2) on a flash partition.

-Scott

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

Signature · 2 lines
View this message in context: http://old.nabble.com/Mpc8315erdb-openvpn-segmentation-fault-tp31086738p31140838.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.