Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Versionitis

Versionitis

Scheduled Pinned Locked Moved The Weird and The Wonderful
3 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Johnny
    wrote on last edited by
    #1

    I appreciate that this isn't directly a coding WTF, but it's related and I'm sure many people have done something similar, so I thought I'd share it anyway. Many years ago I was developing on a Solaris machine. One day in the middle of an intense period of coding I realised that the C runtime library on my machine was several years old. 'Gosh', I thought, 'Id better update that. It's bound to make me more productive'. So I downloaded the C library source and compiled it. Being Unix there was no real installation method so I took it upon myself to just copy the runtime over the existing one (excuse the command-line usage but I'm sure you get the meaning - ls is dir and mv is move).

    cp newruntime.so /usr/lib/oldruntime.so
    cp: failed, file is in use

    Oh. A problem. In a moment of temporary insanity I thought 'I bet that moving it would work. But I should be careful and keep the old library, just in case'.

    mv /usr/lib/oldruntime.so /usr/lib/oldruntime.so.backup
    mv successful

    Great! Let me just have a look to check:

    ls
    ls: dynamic library c-runtime failed to load

    Maybe some extra arguments will do the trick...

    ls -la
    ls: dynamic library c-runtime failed to load

    Crap. Better try and restore the old version...

    mv /usr/lib/oldruntime.so.backup /usr/lib/oldruntime.so
    mv: dynamic library c-runtime failed to load

    A perfectly idiotic way to hose a machine due to versionitis! Exact messages have been changed for brevity.

    C 1 Reply Last reply
    0
    • J Johnny

      I appreciate that this isn't directly a coding WTF, but it's related and I'm sure many people have done something similar, so I thought I'd share it anyway. Many years ago I was developing on a Solaris machine. One day in the middle of an intense period of coding I realised that the C runtime library on my machine was several years old. 'Gosh', I thought, 'Id better update that. It's bound to make me more productive'. So I downloaded the C library source and compiled it. Being Unix there was no real installation method so I took it upon myself to just copy the runtime over the existing one (excuse the command-line usage but I'm sure you get the meaning - ls is dir and mv is move).

      cp newruntime.so /usr/lib/oldruntime.so
      cp: failed, file is in use

      Oh. A problem. In a moment of temporary insanity I thought 'I bet that moving it would work. But I should be careful and keep the old library, just in case'.

      mv /usr/lib/oldruntime.so /usr/lib/oldruntime.so.backup
      mv successful

      Great! Let me just have a look to check:

      ls
      ls: dynamic library c-runtime failed to load

      Maybe some extra arguments will do the trick...

      ls -la
      ls: dynamic library c-runtime failed to load

      Crap. Better try and restore the old version...

      mv /usr/lib/oldruntime.so.backup /usr/lib/oldruntime.so
      mv: dynamic library c-runtime failed to load

      A perfectly idiotic way to hose a machine due to versionitis! Exact messages have been changed for brevity.

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      your toe after shooting yourself in the foot like that? :) Could you restore from a backup tape, or something like that.

      Chris Meech I am Canadian. [heard in a local bar] I agree with you that my argument is useless. [Red Stateler] Hey, I am part of a special bread, we are called smart people [Captain See Sharp] The zen of the soapbox is hard to attain...[Jörgen Sigvardsson] I wish I could remember what it was like to only have a short term memory.[David Kentley]

      J 1 Reply Last reply
      0
      • C Chris Meech

        your toe after shooting yourself in the foot like that? :) Could you restore from a backup tape, or something like that.

        Chris Meech I am Canadian. [heard in a local bar] I agree with you that my argument is useless. [Red Stateler] Hey, I am part of a special bread, we are called smart people [Captain See Sharp] The zen of the soapbox is hard to attain...[Jörgen Sigvardsson] I wish I could remember what it was like to only have a short term memory.[David Kentley]

        J Offline
        J Offline
        Johnny
        wrote on last edited by
        #3

        I shiftily passed it on to IT support saying it had 'mysteriously stopped working', whereupon they somehow divined the problem, booted from an install CD, and managed to have that 'ahh programmers' look while putting the original library back in place.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups