UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie bobrien
Newbie
15,042 Views
Registered: ‎06-23-2011

SDK segfault on UART output?

Hello All,

 

I am running ISE Design Suite 12.4 on a 64-bit Ubuntu 10.04 installation.  My board is the Avnet LX9 MicroBoard with a Spartan6 FPGA.

 

I am working on the first Avnet tutorial, which has the user create a new MicroBlaze system, download it to the board, and then create and run a peripheral test C app on the board.  I get all the way past programming the FPGA (over the USB-JTAG interface) and creating the C program.

 

However, when I attempt to run the C program, using the Run Configuration procedure in XSDK, I get a seg fault.  The error is below:

 

=========================================

Native lib Version = RXTX-2.1-7

Java lib Version   = RXTX-2.1-7

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  SIGSEGV (0xb) at pc=0x00007f3c5abe724d, pid=15755, tid=139897136604928

#

# JRE version: 6.0_16-b01

# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.2-b01 mixed mode linux-amd64)

# Problematic frame:

# C  [librxtxSerial.so+0x724d]  read_byte_array+0x3d

 

I believe this has something to do with the Silicon Labs CP210x USB to UART driver, which is good news I guess since I CAN program the FPGA (which is really the important part).  However, the driver/device appears to be working fine from a system stand point (it shows up using the Ubuntu 10.04 drivers in both lsusb and dmesg, and correctly populates /dev/ttyUSB0).

 

I've tried searching both the Avnet and Xilinx forums for anyone with a similar problem to no avail.  Does anyone have any advice on how to fix this issue, or to further debug and pinpoint the issue?

 

Thanks in advance,

Barry

0 Kudos
9 Replies
Newbie jhonny88
Newbie
14,995 Views
Registered: ‎08-10-2011

Re: SDK segfault on UART output?

Hello. I have the same problem on Kubuntu 11.04 with ML605 board. Any solutions?

Thanks, Evgeniy 

0 Kudos
Visitor blaszki1
Visitor
14,966 Views
Registered: ‎02-03-2011

Re: SDK segfault on UART output?

Replacing the librxtxSerial.so with the new from rxtx2.2pre2 has solved the problem.

 

Cheers,

Robert

0 Kudos
Visitor pilakkat
Visitor
14,437 Views
Registered: ‎04-27-2009

Re: SDK segfault on UART output?

Same issue on Ubuntu 12.10 64bit with 14.4 64 bit.

 

works with replacing the librxtxSerial.so from the distribbution :

 

sudo aptitude install librxtx-java

sudo mv /opt2/Xilinx/14.4/ISE_DS/EDK/eclipse/lin64/eclipse/plugins/gnu.io.rxtx.linux.x86_64_2.1.7.3_v20071015/os/linux/x86_64/librxtxSerial.so /opt2/Xilinx/14.4/ISE_DS/EDK/eclipse/lin64/eclipse/plugins/gnu.io.rxtx.linux.x86_64_2.1.7.3_v20071015/os/linux/x86_64/librxtxSerial.so.orig

sudo ln -sf /usr/lib/jni/librxtxSerial.so /opt2/Xilinx/14.4/ISE_DS/EDK/eclipse/lin64/eclipse/plugins/gnu.io.rxtx.linux.x86_64_2.1.7.3_v20071015/os/linux/x86_64/librxtxSerial.so

 

0 Kudos
Visitor nkumar3119
Visitor
13,480 Views
Registered: ‎01-14-2014

Re: SDK segfault on UART output?

I have same issue on Ubuntu 13.10 64-bit with v14.4 but with librxtxSerial.so fix as mentioned by pilakkat still crashes.

Any other suggestions?

0 Kudos
Newbie keith_r1
Newbie
10,680 Views
Registered: ‎05-20-2015

Re: SDK segfault on UART output?

May 20, 2015

 

Hello,

 

I had similar problems when running Xilinx SDK v14.7 on a RHEL7 system we recently converted as

a  test system since we plan to change all our lab systems to RHEL7.  When downloading the .elf exectuable file

to a ZYNQ board, SDK crashed witht he error message:

 

xperimental: JNI_OnLoad called.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f40eeeb324d, pid=2857, tid=139916862994176
#
# JRE version: 6.0_21-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode linux-amd64 )
# Problematic frame:
# C [librxtxSerial.so+0x724d] read_byte_array+0x3d
#

 

 

We downloaded the librxtxSerial.so as per one of the above posts, but when we copied it over to

the install directory and re-tested, this time there were messages concerning "unable to obtain lock file"

and SDK reported that  "no such device 'dev/ttyUSB0'  (the serial port the UART uses to communicate between

SDK and  Xilinx board via the JTAG programmer cable".  A little snooping around with the strings command on the

librxtxSerial.so executasble revealed that it tries to write to /var/lock.  On our systems, /var was no world readable,

we chmod'ed 777 /var and it worked fine.  We are now trying to recompile the  librxtxSerial.so object file with

locking diabled, if this doesnt work, we will simply live with the file writing to /var/lock.  It should be noted that

we did not experience this problem hen running either SDK 14.4 or SDK14.7 on RHEL6 systems, only on RHEL7:

 

the exact version of RHEKL7 is:

 

3.10.0-229.1.2.el7.x86_64

 

 

Interestingly, this problem did not occur when downloading .bit file to the bosrd using Impact.  This is most likely due

to the fact that impact uses the JTAG programmer cable and a different port. SDK uses /dev/ttyUSB0 to establish

a  serial terminal between the board and the host SDK software. 

 

So, it you downloaded the librxtxserial.so file and still have problems, chmod your /var to 777 if you're comfortable

with users having write permission. 

 

The librxtxserial.so that comes installed with SDK is circa version 2.1 from around 2007 , the one we downloaded was circa 2.2 .

 

Hopefully this information will be of help to others who experienced the same or similar problems.

 

 

Ted Obuchowicz

VLSI Specialist/Jumpin' Jack CAD

Concordia University

 

 

 

 

 

0 Kudos
Newbie keith_r1
Newbie
10,673 Views
Registered: ‎05-20-2015

Re: SDK segfault on UART output?

Hello,

 

Just a short follow up:

 

recompiling the librxtxSerial.so from the source and specifying to disable locking solved the problem and needing

777 file perms on /var/lock.  Yiou can recompile and specify no file locking with :

 

now go back to the main directory and configure the build with locking disabled, and build it

cd ..
./configure --disable-lockfiles
make

 

You can get the source code from:

http://rxtx.qbang.org/wiki/index.php/Download

the source file rxtx 2.2pre2.zip and unzip it:

unzip rxtx-2.2pre2.zip

 

 

Ted Obuchowicz

 

 

0 Kudos
Visitor mcsqr50
Visitor
9,612 Views
Registered: ‎11-19-2008

Re: SDK segfault on UART output?

Hi Keith_r1,

      I'm having the same problem but I can't seem to understand your steps for recompiling the downloaded rxtx-2.2pre2.zip and unzipped it but not sure how to recompile it and where to put it afterwards. Can you please explain the steps in a little more details.

 

Thanks!

0 Kudos
Adventurer
Adventurer
8,605 Views
Registered: ‎06-23-2016

Re: SDK segfault on UART output?

I have the same problem. I don't understand how to use rxtx-2.2-pre2 to solve the problem

0 Kudos
2,791 Views
Registered: ‎01-22-2018

Re: SDK segfault on UART output?

6.5 years later and this is still a problem with 2017.4. The fix described above still works.

 

Install librxtx-java, if it isn't already installed.

sudo apt-get install librxtx-java

 

Then replace the existing librxtxSerial.so in the Eclipse plugins directory with a symlink to the newer file (after saving the original file just in case)

cd <XilinxInstallDir>/SDK/2017.4/eclipse/lnx64.o/plugins/gnu.io.rxtx.linux.x86_64_2.1.7.3_v20071015/os/linux/x86_64
mv librxtxSerial.so librxtxSerial.so-original
ln -s /usr/lib/jni/librxtxSerial.so librxtxSerial.so
0 Kudos