4
N1LSS0N
6y

Whats your weirdest bug/issue in your code? Which you couldnt figure out why, but it was something simple and you was Like ”oh how could i miss that...” etc.

I need to have some fun in my life right now haha.

Comments
  • 9
    I had something like:

    if (something);
    {
    dostuff();
    }

    Took me 5h to find
  • 1
  • 0
    @b3b3 that's why compiler warnings exist
  • 1
    Liferay.

    Had to do load testing in prod and needed to replace prod auth mechanism w/ a mock. Fired up a mock auth server, tunneled ports to prod srv, made a copy of liferay ext.properties and updated that file to use mock auth address instead of the prod one.

    Restart LR. All auth requests are still going to real service.
    Find all files in LR dir w/ real svc's ip, update them.

    Restart LR. All auth requests are still going to real service.

    Am I dreaming, wtf?? Did lr cache shit or what?? Strace the jvm process. Yepp, the prod ip is being used.

    Spend quite a few hours banging my head to my desk.
    Next day tried the same thing on pre-prod. Everything worked as expected. Test, uat, dev -- all work just fine. But prod - doesn't.

    Fucking liferay...

    Only at the eod the next day I found that LR was loading properties from the backup file I made.. The bkup was stored in my user's homedir. Lr, according to docs, should only load props from lr user's homedir. My user was not a lr user.

    Mother fucking LR...
  • 1
    @electrineer ye I thought so too. Visual Studio didn't warn me though. I was really confused when I realized.
  • 0
    @b3b3 what options do you run the compiler with?
  • 0
    @electrineer default settings. That was back at a time where I was still programming on windows, didn't have much experience, didn't know about linux and the pure sexiness of gcc.
Add Comment