Here come the blog related with Memory management and system management for executable.
Most of the time we are facing issues in c/c++ executable related with the crashes .
the main reason for the crashes are the segmentation fault caused by the address violation by a pointer variable.
Valgrind and Valkyrie is the answer for such situation .
Valgrind:Valgrind is a GPL licensed programming tool for memory debugging, memory leak detection, and profiling
Valgrind is the back end and having command line output which is bit complex to understand.
Valkyrie
Valkyrie is the front end UI tools which ease the understanding .Valyrie is a front-end gui for valgrind v3 and up. It's based on QT, and uses valgrind's xml output to display all the information in a nice tree form. I've started using this as it makes debugging memory problems a heck of a lot easier.
Install Valgrind : use the updated 3.x release in combination of Valgrind 4.x release.
Combine valgrind with valkyrie : Just append the Binary executable with valkyrie keyword with options like
valkyrie --smc-check=none --pointercheck=yes /bin/ls -lF .
one can provide the options using the GUI of Valkyrie options for log files location, format and binary location .
Log files are well defined tree structured . One can save the xml file for ceration scenario. It can be opened and analyzed at any time .
Point to note here : You can get complete code if you run valgrind/valkyrie on Debugged version of binary . Optimized version does not provide the location of error in file .
Valgrind/Valkyrie slow down the process tremendously so one need real patience to get the result .
Enjoy Debugging !!
Thursday, 24 November 2011
Saturday, 4 June 2011
Multiple system monitors using single Keyboard and mouse !!! (Synergy)
Software engineers working with different systems. For the Day to day to activities they have a windows laptop/desktop while for coding and development they have a Linux box .
Sometimes multiple keyboard and mouse is simply annoying . Here is a simple solution called Synergy used to connect various system using Client Server network.
Ideally the server should be on Windows system and client on Linux system.
Server Installation :
A well-known open source software for those using multiple monitors.
Synergy :
http://synergy-foss.org/download
It is simple and 5 step process .
1) Launch the synergy for windows (32 bit) . download 1.31 (most stable version)
2) Install in windows ( windows as server)
3) Start the synergy : share this computer keyboard and mouse ….configure
4) Add the system using + sign
5) Screen name should be the computer name in case of server and alias be the IP address. Add another system (Linux) IP as screen name and host name
as an alias.
6) Now most important thing to configure the both monitors under the link and set the left and right position accordingly .
7) Click OK
8) Server is installed .
Client Installation
To install client on a linux system
Steps are
1) Download the source code
2) Untar it using tar zvxf
3) Cd synergy.x.x.
Configure
Make
Make install
4) It will install synergy in your Linux box
5) Just launch synergyc
Default location of synergyc (/usr/local/bin/)
Now just test the client and server and connect it . Both system are using only one Keyboard and mouse .
Sometimes multiple keyboard and mouse is simply annoying . Here is a simple solution called Synergy used to connect various system using Client Server network.
Ideally the server should be on Windows system and client on Linux system.
Server Installation :
A well-known open source software for those using multiple monitors.
Synergy :
http://synergy-foss.org/download
It is simple and 5 step process .
1) Launch the synergy for windows (32 bit) . download 1.31 (most stable version)
2) Install in windows ( windows as server)
3) Start the synergy : share this computer keyboard and mouse ….configure
4) Add the system using + sign
5) Screen name should be the computer name in case of server and alias be the IP address. Add another system (Linux) IP as screen name and host name
as an alias.
6) Now most important thing to configure the both monitors under the link and set the left and right position accordingly .
7) Click OK
8) Server is installed .
Client Installation
To install client on a linux system
Steps are
1) Download the source code
2) Untar it using tar zvxf
3) Cd synergy.x.x.
Configure
Make
Make install
4) It will install synergy in your Linux box
5) Just launch synergyc
Default location of synergyc (/usr/local/bin/)
Now just test the client and server and connect it . Both system are using only one Keyboard and mouse .
Subscribe to:
Posts (Atom)





