Tuesday, November 15, 2016

My First Bug fixed(Windows) during my stay in the Big company C...o. After a Big gap of 3 years( To complete MTech)

How can you do this operation?

I was working on Windows a very good laptop HP. Our client Cisco had their privileged code base for many years and i started working by fixing some bugs in the Install Shield Script based Installer Applications.

First bug which i worked on was when System crashes during Installation procedure, it does not stop there rather it shows that particular operation is successful and finally at the end of Installation  shows that operation finished with errors.

So to Reproduce the error I have renamed the .lib files with some error(for Ex MSCRT.lib to MSFFGE.lib) some thing like this, misspelled libs on my machine, when the Install shield script tries to copy the file after it does the validation for the file name, it comes to this part of the code, now all i have to look into was an IF-Else block of code where the non negative value shows success and any thing less than or greater than zero  is a failure and return only zero for the success case.

BugFix  I provided was (If retcode != 0 ) {show error message)else {show success message}

this worked and my task was over,  as a starter to work in cisco code base i took 3 days to complete this task,
1 day to find out the bug and propose the fix.
1 day to know the procedure to check in code to git repo.(Pull request, check the build in the test build, and work on those code review comments, once approved, submit the pull request.

1 day to actually do all the stuff to close the task and mark it as closed in the agile tool.
Scrum works tool that they were working on was scrum works,(Rally was the tool, while i was working in John Deere).


so it was a happy fix that i provided and i was happy, that i could do this, there was one Lady who reviewed my code and she was instrumental for me to know many of client's software terminologies, as she had already been working there for almost 8 years, one more lady was there, and she paired up with me for the next big task,
To Remove Unapproved JRE Certificates for Java store.

I will write about this in my next topic.



compile gcc/g++5.1 on precise1-Ubuntu

uname -a
Linux  3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux


Run the dependencies package script and download all the packages.
gcc-5.1.0/contrib/download_prerequisites

note:- sh is omitted from download_prerequisites

Now compile all the packages and link them to compile required gcc.

for gmp
 ../configure  --prefix=/opt/mygmp

for isl

  cd isl-0.14/
  ls
  mkdir objdir;cd objdir
 ../configure --with-gmp-include=/opt/mygmp4.3.2/include  --with-gmp-lib=/opt/mygmp4.3.2/lib --prefix=/opt/myisl0.14



for mpfr 
../configure --with-gmp-include=/opt/mygmp4.3.2/include   --with-gmp-lib=/opt/mygmp4.3.2/lib  --prefix=/opt/mympfr2.4.2



for gcc5.1

mkdir gccbuild;cd gccbuild
 ../gcc-5.1.0/configure  --enable-threads=posix --disable-bootstrap --enable-languages=c,c++ --disable-stage1-checking --disable-multilib --with-gmp-include=/opt/mygmp4.3.2/include --with-gmp-lib=/opt/mygmp4.3.2/lib --with-mpfr-include=/opt/mympfr2.4.2/include --with-mpfr-lib=/opt/mympfr2.4.2/lib --with-mpc-include=/opt/mympc0.8.1/include --with-mpc-lib=/opt/mympc0.8.1/lib --with-isl-include=/opt/myisl0.14/include --with-isl-lib=/opt/myisl0.14/lib --prefix=/opt/mygcc5.1



=======