Wind River Support Network

HomeDefectsLIN6-6799
Fixed

LIN6-6799 : CLONE - Segmentation fault occurs when receiveing data from a host via usb in WRLinux 5.0.1.9.

Created: Feb 18, 2014    Updated: Dec 3, 2018
Resolved Date: Mar 16, 2014
Previous ID: LIN5-18128
Found In Version: 6.0
Fix Version: 6.0.0.5
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP

Description

On WRLinux 5.0.1.9 ti-am335x target,when receiving 512K + 1 Byte data from a host via usb,Segmentation fault occurs.

Steps to Reproduce

bsp : ti-am335x
Target OS : WRLinux 5.0.1 RCPL0009

sample progaram,test data,console log,data send application is attached.

1. create Platform Project

/home/wrs/WindRiver/wrlinux-5/wrlinux/configure 
--enable-board=ti-am335x \ --enable-build=production 
--enable-kernel=standard --enable-rootfs=glibc_small+debug+gdb \
--with-rcpl-version=0009


2. Kernel Configuration
Printer Gadget (USB_G_PRINTER)
n -> m


3. build Kernel/RFS create SDK
$>make fs
$>make export-sdk

4.build a data receive application
build "g_printer_test.c" with the SDK in Application Project

5. boot WRLinux5.0.1.9 on ti-am335x board

6. load driver
$> modprobe g_printer

7. connect between Windows PC( XP or Vista or win7) and the target board using USB.

7. run the application on the target.
$> ./g_printer_test.out
  >> Connected to /dev/g_printer
  
8. send 512K+1 Byte data from the Windows PC to the target via usb.

9. Segmentation Fault is shown on the console.
Please see console.log

[result of each file]
+---[testdata]
  +-- 512K+000B.txt	: 512K + 0     OK
  +-- 512K+001B.txt	: 512K + 1     Segmentation Fault
  +-- 512K+510B.txt	: 512K + 510   Segmentation Fault
  +-- 512K+511B.txt	: 512K + 511   OK
  +-- 512K+512B.txt	: 512K + 512   OK
  +-- 512K+513B.txt	: 512K + 513   OK


*)
Customer uses mport2.exe application to send  512K+1 Byte data from Windows PC.
Please see HowToUse_mport2.pdf

Other Downloads


Live chat
Online