STACK_OVERFLOW while running ./simv in Hello World

1,870 views
Skip to first unread message

Miguel Guedes

unread,
Nov 18, 2015, 1:13:56 PM11/18/15
to EDA Playground
Hello,

can somebody help me?
I just downloaded the Hello World environment tutorial.
I have downloaded the uvm library and ran the the environment using VCS  H-2013.06-SP1-9_Full64.

The run command is the following:
vcs -full64 -licqueue '-timescale=1ns/1ns' '+vcs+flush+all' '+warn=all' '-sverilog' \
+incdir+$UVM_HOME/src \
$UVM_HOME/src/uvm.sv \
$UVM_HOME/src/dpi/uvm_dpi.cc \
-CFLAGS \
-DVCS \
design.sv \
testbench.sv

./simv +vcs+lic+wait


after compilation I get the following error/crash:

if [ -x ../simv ]; then chmod -x ../simv; fi
g++  -o ../simv     -Wl,-whole-archive    -Wl,-no-whole-archive  uvm_dpi.o  _vcsobj_1_1.o  5NrI_d.o 5NrIB_d.o SIM_l.o    rmapats_mop.o rmapats.o       /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libzerosoft_rt_stubs.so /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libvirsim.so /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/liberrorinf.so /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libsnpsmalloc.so     /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libvcsnew.so /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libvcsucli.so /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libuclinative.so        ./../simv.daidir/vc_hdrs.o   /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/vcs_save_restore_new.o -ldl  -lc -lm -lpthread -ldl
/usr/bin/ld: warning: i386 architecture of input file `uvm_dpi.o' is incompatible with i386:x86-64 output
../simv up to date
CPU time: 5.529 seconds to compile + .051 seconds to elab + .275 seconds to link
Chronologic VCS simulator copyright 1991-2013
Contains Synopsys proprietary information.
Compiler version H-2013.06-SP1-9_Full64; Runtime version H-2013.06-SP1-9_Full64;  Nov 18 18:02 2015

Info: [STACK_OVERFLOW] Stack Overflow Detected.
Info: [CURRENT_STACK_LIMIT] Current stack limit is 10485760 bytes
        If current stack limit is low then increase the stack limit of the SHELL by
        limit stacksize <number>
        and rerun the job.


An unexpected termination has occurred in ./simv


Command line: ./simv +vcs+lic+wait

--- Stack trace follows:

Dumping VCS Annotated Stack:
#0  0x0000003504099f55 in waitpid () from /lib64/libc.so.6
#1  0x000000350403c741 in do_system () from /lib64/libc.so.6
#2  0x00002b0d4778151c in SNPSle_10ee25eff68cd8461c9146fa1d0b35e87067f3c8015b313e639d2928478c79b3f673f99203bcf8be64600612100082236bffb2007f1e0ef9 () from /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/liberrorinf.so
#3  0x00002b0d47782d34 in SNPSle_10ee25eff68cd8461c9146fa1d0b35e87067f3c8015b313efba706aab251478fa49e66610e453774633a6c152e7ef778f2202cda681f3d4e () from /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/liberrorinf.so
#4  0x00002b0d4777b1dc in SNPSle_d35ca1ff70d465c24c71e1f0ad6ba632 () from /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/liberrorinf.so
#5  0x00002b0d49625449 in SNPSle_64133461705005bb725549e2e6fa1b3f () from /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libvcsnew.so
#6  0x00002b0d494e6040 in SNPSle_82244d58c54c18c70d63edc9becab634 () from /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libvcsnew.so
#8  0x00002b0d494e6536 in SNPSle_82244d58c54c18c70d63edc9becab634 () from /cad/synopsys/2013-2014/vcs_H-2013.06-SP1-9/amd64/lib/libvcsnew.so
#10 0x0000000000408acf in uvm_dpi_get_next_arg_c ()
No context available



Can anybody hint me on what might be wrong?

Thanks in advance
Miguel

EDA Playground

unread,
Nov 20, 2015, 5:06:49 AM11/20/15
to EDA Playground

I suspect the problem is that some of the files you downloaded were generated using the later version of VCS that is on EDA Playground running on perhaps a different architecture. Try deleting all the files apart from the source files (or at least start with uvm_dpi.o) which seems to be causing the initial trouble.

Cheers,

Matthew
Reply all
Reply to author
Forward
0 new messages