Giter Club home page Giter Club logo

cs555sim's People

Contributors

mangesht avatar

Watchers

James Cloos avatar

cs555sim's Issues

Gnu plot is not working if terminal is set as gif

Branch name: main

Purpose of code changes on this branch:  "I am getting below error if terminal 
is set as gif"

-----------------
gnuplot> set terminal gif
                      ^
         "../scripts/r1m.p", line 12: unknown or ambiguous terminal type; type just 'set terminal' for a list

-----------------

Changes Done:

-----------------
-bash-3.00# svn diff
Index: r1m.p
===================================================================
--- r1m.p       (revision 15)
+++ r1m.p       (working copy)
@@ -1,4 +1,4 @@
-#GNUplot script file for plotting x(t) for different integrations steps
+#GNUplot script file for plotting the distribution of random number between 0 
and 1
 # x0
 unset log
 unset label
@@ -9,8 +9,8 @@
 set xrange [0:1]
 set yrange [0:1800]
 set boxwidth 0.0005
-set terminal gif
-set output "r1m_out.gif"
+set terminal png
+set output "r1m_out.png"
 plot "r1m.out" using 1:2 title 'Distribution' with boxes 


Index: r10m.p
===================================================================
--- r10m.p      (revision 15)
+++ r10m.p      (working copy)
@@ -1,4 +1,4 @@
-#GNUplot script file for plotting x(t) for different integrations steps
+#GNUplot script file for plotting the distribution of random number between 0 
and 1
 # x0
 unset log
 unset label
@@ -9,8 +9,8 @@
 set xrange [0:1]
 set yrange [0:18000]
 set boxwidth 0.00005
-set terminal gif
-set output "r10_out.gif"
+set terminal png
+set output "r10_out.png"
 plot "r10m.out" using 1:2 title 'Distribution' with boxes 

-bash-3.00# 
-----------------


After the review, I'll merge this branch into:
/trunk


Please ignore if changes is not required.

Original issue reported on code.google.com by [email protected] on 3 Dec 2012 at 10:57

Attachments:

Segmentation fault on running sim binary

What steps will reproduce the problem?

 Execute the sim


What is the expected output? What do you see instead?


  -bash-3.00# ./sim 
Cur Time hh 3 MM 0 SS 9 gmtoff = -28800 
Cur Time hh 3 MM 0 SS 9 gmtoff = -28800 
Cur Time hh 3 MM 0 SS 9 gmtoff = -28800 
Cur Time hh 3 MM 0 SS 9 gmtoff = -28800 
Cur Time hh 3 MM 0 SS 9 gmtoff = -28800 
Adding first item
Insertion done 
Added arrival for time 0.421144 
Time : 0.421144 
Processing event 0 
Packet pushed to pktBuffer 
Adding first item
Insertion done 
Added arrival for time 0.442291 
Inserting 
In forward direction 
Calling after 
Insertion done 
Service started for packet aTime = 0.421144 by server = 1 to be over by 0.670886
Time : 0.442291 
Processing event 0 
Packet pushed to pktBuffer 
Inserting 
In backward direction 
Start = 0.670886 tail = 0.670886 pos = 0.670886 item = 0.454470 
Insertion done 
Added arrival for time 0.454470 
Inserting 
In backward direction 
Start = 0.454470 tail = 0.670886 pos = 0.454470 item = 0.449362 
Insertion done 
Service started for packet aTime = 0.442291 by server = 0 to be over by 0.449362
Time : 0.449362 
Processing event 1 
Time : 0.454470 
Processing event 0 
Packet pushed to pktBuffer 
Inserting 
In backward direction 
Start = 0.670886 tail = 0.670886 pos = 0.670886 item = 0.537366 
Insertion done 
Added arrival for time 0.537366 
Inserting 
In backward direction 
Start = 0.537366 tail = 0.670886 pos = 0.537366 item = 0.454470 
Insertion done 
Service started for packet aTime = 0.454470 by server = 1 to be over by 0.454470
Time : 0.454470 
Processing event 1 
Time : 0.537366 
Processing event 0 
Packet pushed to pktBuffer 
Inserting 
In forward direction 
Calling after 
Insertion done 
Added arrival for time 0.975575 
Inserting 
In backward direction 
Start = 0.670886 tail = 0.975575 pos = 0.670886 item = 0.537366 
Insertion done 
Service started for packet aTime = 0.537366 by server = 0 to be over by 0.537366
Time : 0.537366 
Processing event 1 
Time : 0.670886 
Processing event 1 
Segmentation fault (core dumped)
-bash-3.00# 




What version of the product are you using? On what operating system?

 -bash-3.00# cat /etc/redhat-release 
Red Hat Enterprise Linux ES release 4 (Nahant Update 3)
-bash-3.00# 


Please provide any additional information below.




-bash-3.00# gdb sim core.11291 
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols 
found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `./sim'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x009e9183 in initstate_r ()
   from /lib/tls/libc.so.6
(gdb) print
The history is empty.
(gdb) 

Original issue reported on code.google.com by [email protected] on 3 Dec 2012 at 11:23

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.