10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey, I'm trying to make an interactive perl program and while I'm not done I wanted to share the bit of code I have at the moment because I keep running into an error that says that it "Found = in conditional, should be ==" in my code. This is my code-
use warnings;
use strict;
my $i;
$i=0;... (2 Replies)
Discussion started by: Eric1
2 Replies
2. Shell Programming and Scripting
Hi,
Below is my code where i m trying to grep for name>$servername in manages*.tmp files
servername="serv1"
set manages*.tmp
if ; then
However, i get the below error at the if condition:
Can you please suggest how can i fix the problem. (3 Replies)
Discussion started by: mohtashims
3 Replies
3. Programming
Hi experts,
I am doing an exercise which has the following requirements.
Charlie will bite your finger exactly 50% of the time. First, write a function isBitten() that returns TRUE with 50% probability, and FALSE otherwise
To generate a webpage that displays "Charlie bit your finger!" or... (1 Reply)
Discussion started by: Navneet_das_123
1 Replies
4. Shell Programming and Scripting
The variable N is set upon start of script so while loop runs and keeps running because N is not being updated when loop is running:
N becomes less than 9 but it still runs (should be "done")....
Any ideas? Thanks!
N=`wc -l /home/count.txt | awk '{print $1}'`
while test "$N" -gt "10"... (10 Replies)
Discussion started by: holyearth
10 Replies
5. Ubuntu
Hello,
I want to install and run a tool called Daikon on my Ubuntu(latest version)
While compiling I got this error-------->
checking the GLIBC_VERSION version... unsupported version
configure: error: Valgrind requires glibc version 2.2 - 2.11
make: *** Error 1
make: Leaving directory... (3 Replies)
Discussion started by: paramad
3 Replies
6. Programming
I get this Valgrind error while using malloc but if I use calloc then there is no error.
I allocate 8 bytes for the string inside sprintf, 12 for the ip and 1 for the string terminator. This totals 21, so why is it talking about 20 bytes and 18 bytes ?
Partial code:
char ip =... (3 Replies)
Discussion started by: cyler
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I know similar questions appeared here already, still i didnt find answer to my problem yet.
Im getting the following message from valgrind (version 2):
==15414== 1 errors in context 1 of 6:
==15414== Conditional jump or move depends on uninitialised value(s)
==15414== at... (2 Replies)
Discussion started by: evasz
2 Replies
8. Programming
Hi everybody,
I wrote a small subroutine 'GetStringDelim()' to return a substring from a string enclosed by a string 'Limit1' and a char 'Limit2'. It works perfectly and I don't get an error message together with valgrind, if I set the 3rd parameter in GetStringDelim() to NULL (see below).
... (3 Replies)
Discussion started by: MIB_Maik
3 Replies
9. Shell Programming and Scripting
I am trying to learn PERL programming. I copied this example from a book just to try it on my machine. It worked out fine but when I tried it on another machine, an error appears: syntax error near unexpected token ';'.
I tried it on a third machine but a new error appears: command not found.
... (4 Replies)
Discussion started by: Slick
4 Replies
10. Shell Programming and Scripting
I need to write a script that will move files from a direcory to another directory, but only the files that are owned by a specific owner.
e.g. if seven files in a dir are owner by a user called 'budd' then move to a direcory called \budd. If not then leave alone.
Many Thanks (2 Replies)
Discussion started by: Budd
2 Replies
VGDB(1) Release 3.9.0 VGDB(1)
NAME
vgdb - intermediary between Valgrind and GDB or a shell
SYNOPSIS
vgdb [options]
DESCRIPTION
vgdb ("Valgrind to GDB") is used as an intermediary between Valgrind and GDB or a shell. It has two usage modes:
1. As a standalone utility, it is used from a shell command line to send monitor commands to a process running under Valgrind. For this
usage, the vgdb OPTION(s) must be followed by the monitor command to send. To send more than one command, separate them with the -c
option.
2. In combination with GDB "target remote |" command, it is used as the relay application between GDB and the Valgrind gdbserver. For this
usage, only OPTION(s) can be given, but no COMMAND can be given.
OPTIONS
--pid=<number>
Specifies the PID of the process to which vgdb must connect to. This option is useful in case more than one Valgrind gdbserver can be
connected to. If the --pid argument is not given and multiple Valgrind gdbserver processes are running, vgdb will report the list of
such processes and then exit.
--vgdb-prefix
Must be given to both Valgrind and vgdb if you want to change the default prefix for the FIFOs (named pipes) used for communication
between the Valgrind gdbserver and vgdb.
--wait=<number>
Instructs vgdb to search for available Valgrind gdbservers for the specified number of seconds. This makes it possible start a vgdb
process before starting the Valgrind gdbserver with which you intend the vgdb to communicate. This option is useful when used in
conjunction with a --vgdb-prefix that is unique to the process you want to wait for. Also, if you use the --wait argument in the GDB
"target remote" command, you must set the GDB remotetimeout to a value bigger than the --wait argument value. See option
--max-invoke-ms (just below) for an example of setting the remotetimeout value.
--max-invoke-ms=<number>
Gives the number of milliseconds after which vgdb will force the invocation of gdbserver embedded in Valgrind. The default value is 100
milliseconds. A value of 0 disables forced invocation. The forced invocation is used when vgdb is connected to a Valgrind gdbserver,
and the Valgrind process has all its threads blocked in a system call.
If you specify a large value, you might need to increase the GDB "remotetimeout" value from its default value of 2 seconds. You should
ensure that the timeout (in seconds) is bigger than the --max-invoke-ms value. For example, for --max-invoke-ms=5000, the following GDB
command is suitable:
(gdb) set remotetimeout 6
--cmd-time-out=<number>
Instructs a standalone vgdb to exit if the Valgrind gdbserver it is connected to does not process a command in the specified number of
seconds. The default value is to never time out.
--port=<portnr>
Instructs vgdb to use tcp/ip and listen for GDB on the specified port nr rather than to use a pipe to communicate with GDB. Using
tcp/ip allows to have GDB running on one computer and debugging a Valgrind process running on another target computer. Example:
# On the target computer, start your program under valgrind using
valgrind --vgdb-error=0 prog
# and then in another shell, run:
vgdb --port=1234
On the computer which hosts GDB, execute the command:
gdb prog
(gdb) target remote targetip:1234
where targetip is the ip address or hostname of the target computer.
-c
To give more than one command to a standalone vgdb, separate the commands by an option -c. Example:
vgdb v.set log_output -c leak_check any
-l
Instructs a standalone vgdb to report the list of the Valgrind gdbserver processes running and then exit.
-D
Instructs a standalone vgdb to show the state of the shared memory used by the Valgrind gdbserver. vgdb will exit after having shown
the Valgrind gdbserver shared memory state.
-d
Instructs vgdb to produce debugging output. Give multiple -d args to increase the verbosity. When giving -d to a relay vgdb, you better
redirect the standard error (stderr) of vgdb to a file to avoid interaction between GDB and vgdb debugging output.
SEE ALSO
valgrind(1), $INSTALL/share/doc/valgrind/html/index.html or http://www.valgrind.org/docs/manual/index.html, Debugging your program using
Valgrind's gdbserver and GDB[1]vgdb[2], Valgrind monitor commands[3].
AUTHOR
Philippe Waroquiers.
NOTES
1. Debugging your program using Valgrind's gdbserver and GDB
http://www.valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.gdbserver
2. vgdb
http://www.valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.vgdb
3. Valgrind monitor commands
http://www.valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.valgrind-monitor-commands
Release 3.9.0 11/01/2013 VGDB(1)