Stories
Slash Boxes
Comments

SoylentNews is people

posted by chromas on Friday June 15 2018, @10:24AM   Printer-friendly
from the #!/bin/bash dept.

El Reg reports

Microsoft had to emit a hasty update for its R Open analysis tool after developers found the open-source package was not playing nice with some Linux systems.

The issue was brought to light earlier this week by developer Norbert Preining, who found[1] that the Debian GNU/Linux version of Open R[2]--Microsoft's open-source implementation of the R statistics and data science tool--was causing headaches when it was installed on some systems.

In particular, Preining noted that the shell instructions Microsoft used to install the software would fail on a computer where another version of R is already installed. Worse, the script would delete whatever is at /bin/sh and override it with Bash, changing the system's command interpreter.

[...] Additionally, Preining found, the script Microsoft used to uninstall R Open would cause further problems, one being that it would delete files without checking where they actually pointed

[...] Fortunately, it looks as though Redmond was listening, and Microsoft's dev team was quick to act. Within two days of Preining's blog post going up, he reported that R Open had been patched by the Windows giant to resolve the issues and properly install and remove itself on Debian systems.

"Thanks Microsoft for the quick fix, it is good news that those playing with Open R will not be left with a hosed system", Preining noted.

[1] Text highlighting and scrollwheel scrolling on the page work now. Mouse actions were broken June 13. (Scrolling was mentioned down in the comments there.)
[2] Content is behind scripts.


Original Submission

This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
  • (Score: 2, Funny) by Anonymous Coward on Friday June 15 2018, @10:44AM (12 children)

    by Anonymous Coward on Friday June 15 2018, @10:44AM (#693420)

    This is one of the main reasons why executable installers were dropped for package managers by everyone who cares about having a stable system.

    Clearly Microsoft still doesn't.

    (Don't say they didn't know better. Even Microsoft must have heard of the idea behind MSI at least once).

    • (Score: 0) by Anonymous Coward on Friday June 15 2018, @10:50AM (11 children)

      by Anonymous Coward on Friday June 15 2018, @10:50AM (#693423)

      Reading the article, it looks like this is a script hidden inside a debian package and auto-run by the package manager.

      If that's the case, Microsoft is not the only ones at fault. Whoever though that a package manager running random scripts was a good idea is also at fault.

      • (Score: 5, Informative) by isostatic on Friday June 15 2018, @11:34AM (3 children)

        by isostatic (365) on Friday June 15 2018, @11:34AM (#693437) Journal

        Debian has had preinst and postinst scripts for 20 years, RPM has something similar. It's far better than a tarball deployed with "installMe.sh"

        If you install some random software from some random company, it's your responsibility to test it. I'm assuming this package wasn't accepted into the official repositories.

        • (Score: 0, Troll) by Anonymous Coward on Friday June 15 2018, @02:06PM (2 children)

          by Anonymous Coward on Friday June 15 2018, @02:06PM (#693487)

          Debian has had preinst and postinst scripts for 20 years, RPM has something similar. It's far better than a tarball deployed with "installMe.sh"

          That doesn't change the fact that an installer based on running a random script or executable is exactly what package managers were intended to avoid. It just means that Debian and Redhat failed at building a package manager.

          • (Score: 2) by lentilla on Saturday June 16 2018, @01:05AM

            by lentilla (1770) on Saturday June 16 2018, @01:05AM (#693796)

            It just means that Debian and Redhat failed at building a package manager.

            Possible - just extremely unlikely. I sincerely hope you were trolling.

          • (Score: 2) by Bot on Sunday June 17 2018, @06:48PM

            by Bot (3902) on Sunday June 17 2018, @06:48PM (#694315) Journal

            > It just means that Debian and Redhat failed at building a package manager.

            Hello there, you seem lost. Here's a quick map.

            Microsoft Infinite monkeys at infinite typewriters = systemd Apple modern shoddy FOSS Linux userland and drivers other unices and the Apple of yore = linux kernel openbsd.

            --
            Account abandoned.
      • (Score: 2, Disagree) by driverless on Friday June 15 2018, @12:56PM (2 children)

        by driverless (4770) on Friday June 15 2018, @12:56PM (#693459)

        It's a simple programming mistake, not some conspiracy by MS. Years ago nn, an otherwise excellent news reader, had the cute feature that if some shell variable got unset then an rm of $some_path_or_other/* became an rm of ./*. I remember going though some of the scripts it ran and finding quite a few places where this could happen when the contents of my $home disappeared after firing up nn one day. I wouldn't be surprised if things like this were hidden all over various programs, it's only the fact that it happened to MS that makes this one newsworthy.

        • (Score: 1, Informative) by Anonymous Coward on Friday June 15 2018, @02:04PM

          by Anonymous Coward on Friday June 15 2018, @02:04PM (#693484)

          It's a simple programming mistake, not some conspiracy by MS. Years ago nn, an otherwise excellent news reader, had the cute feature that if some shell variable got unset then an rm of $some_path_or_other/* became an rm of ./*

          That's happened in Steam also.

          The difference is that this case did not involve any variable. It plain and simple did:

          rm /bin/sh
          ln -s /bin/bash /bin/sh

          No variable, no weird edge cases, no mistake. It's either willful destruction of the target system or incompetence. Probably the latter, but I doubt Microsoft would admit that even when given that choice.

        • (Score: 2) by Bot on Sunday June 17 2018, @06:51PM

          by Bot (3902) on Sunday June 17 2018, @06:51PM (#694316) Journal

          > It's a simple programming mistake, not some conspiracy by MS.

          "DOS ain't done till Lotus won't run."

          --
          Account abandoned.
      • (Score: 4, Informative) by FatPhil on Friday June 15 2018, @04:15PM

        > it looks like this is a script hidden inside a debian package and auto-run by the package manager.

        Hidden? Bollocks!

        It's one of the scripts, with well-known and unchanging names, in the package that the package manager looks for and will auto-run in order to install the package. Package managers cannot know how to install packages (some files go here, some go there, some pre-processing may be necessary before a binary can be run such as registering as a service, or as a cron job, or inserting yourself into a menu system, etc.), and therefore an essential part of playing in the managed package game is to provide these scripts that the package manager expects.
        --
        Great minds discuss ideas; average minds discuss events; small minds discuss people; the smallest discuss themselves
      • (Score: 3, Touché) by sjames on Friday June 15 2018, @05:14PM (2 children)

        by sjames (2882) on Friday June 15 2018, @05:14PM (#693587) Journal

        So what you're saying is that MS doing the obviously wrong thing due to a boneheaded rookie mistake is fine, it's Debian's fault for not having an AI package manager that solves the halting problem?

        • (Score: 2) by lentilla on Saturday June 16 2018, @01:12AM (1 child)

          by lentilla (1770) on Saturday June 16 2018, @01:12AM (#693804)

          it's Debian's fault for not having an AI package manager

          Correct - although Debian has long identified this as a failing of its package manager. Just see what happens here:

          ~$ aptitude do-magic
          [... help elided ...]
          This aptitude does not have Super Cow Powers.

          At least they are honest about it.

          • (Score: 0) by Anonymous Coward on Saturday June 16 2018, @10:08PM

            by Anonymous Coward on Saturday June 16 2018, @10:08PM (#694054)

            This aptitude does not have Super Cow Powers.

            What? Then who did I give them to?

  • (Score: 1, Informative) by Anonymous Coward on Friday June 15 2018, @10:45AM (12 children)

    by Anonymous Coward on Friday June 15 2018, @10:45AM (#693421)

    Three Micro$oft articles is a row? They have gotten to SoylentNews! O Tempura! O Mongolia!

    • (Score: 2) by Gaaark on Friday June 15 2018, @11:02AM (4 children)

      by Gaaark (41) on Friday June 15 2018, @11:02AM (#693427) Journal

      O if Microsoft only knew what they were doing!

      --
      --- Please remind me if I haven't been civil to you: I'm channeling MDC. ---Gaaark 2.0 ---
      • (Score: 0) by Anonymous Coward on Friday June 15 2018, @11:11AM (3 children)

        by Anonymous Coward on Friday June 15 2018, @11:11AM (#693430)

        "Fear, uncertainty, doubt, incompetence, and buggy code." You were saying?

        • (Score: 2) by Gaaark on Friday June 15 2018, @11:26AM (2 children)

          by Gaaark (41) on Friday June 15 2018, @11:26AM (#693433) Journal

          FUDIBC!

          --
          --- Please remind me if I haven't been civil to you: I'm channeling MDC. ---Gaaark 2.0 ---
          • (Score: 0) by Anonymous Coward on Friday June 15 2018, @11:44AM (1 child)

            by Anonymous Coward on Friday June 15 2018, @11:44AM (#693442)

            FTFY:

            Microsoft FUDIBC™

            • (Score: 0) by Anonymous Coward on Friday June 15 2018, @11:47AM

              by Anonymous Coward on Friday June 15 2018, @11:47AM (#693445)

              FTFY 2.0 (forgot the open bit):

              Microsoft Open FUDIBC™

    • (Score: 0) by Anonymous Coward on Friday June 15 2018, @11:47AM (1 child)

      by Anonymous Coward on Friday June 15 2018, @11:47AM (#693444)

      Where do you think all the "free" sub money came from ...

    • (Score: 0) by Anonymous Coward on Friday June 15 2018, @12:33PM (1 child)

      by Anonymous Coward on Friday June 15 2018, @12:33PM (#693455)

      O Tempura! O Mongolia Moray!

      FTFY

      • (Score: 0) by Anonymous Coward on Saturday June 16 2018, @09:32AM

        by Anonymous Coward on Saturday June 16 2018, @09:32AM (#693896)

        O Tempura! O Mongolia Moray Mornay!

        Can we get Rebecca De Mornay? [wikipedia.org] She was wonderful in "Trip to Bountiful". If not, the French sauce [wikipedia.org] will do.

        (And, I still smell a Redmond conspiracy. What are the sneaky bastards up to this time?)

    • (Score: 1) by fritsd on Friday June 15 2018, @03:33PM

      by fritsd (4586) on Friday June 15 2018, @03:33PM (#693532) Journal

      The only "mores" they've heard of is "moar dollars".

    • (Score: 2) by takyon on Friday June 15 2018, @06:38PM (1 child)

      by takyon (881) <takyonNO@SPAMsoylentnews.org> on Friday June 15 2018, @06:38PM (#693634) Journal

      Bill and Melinda Gates Foundation != Microsoft.

      --
      [SIG] 10/28/2017: Soylent Upgrade v14 [soylentnews.org]
      • (Score: 0) by Anonymous Coward on Friday June 15 2018, @09:41PM

        by Anonymous Coward on Friday June 15 2018, @09:41PM (#693726)

        The Doris Duke Foundation tries to make the same claim. Doesn't wash. A Foundation funded with the proceeds of billions of Blue Screens of Death, and you think it is not a spawn of the same evil?

  • (Score: 2) by pkrasimirov on Friday June 15 2018, @12:33PM (1 child)

    by pkrasimirov (3358) Subscriber Badge on Friday June 15 2018, @12:33PM (#693454)

    As much as I love to bash M$ as the next guy, I cannot really see malice here. Maybe H1-B at worst. It's far too common beginner mistake to overwrite a file by script. Patch & go, nothing new in the dev or ops world.

    Or, if it is FOSS, (sorry, didn't RTFA) even go patch yourself.

    Or, you know, just fork it...

    • (Score: 2, Informative) by Anonymous Coward on Friday June 15 2018, @02:08PM

      by Anonymous Coward on Friday June 15 2018, @02:08PM (#693488)

      There was no mistake.

      The path to what gets deleted is hard coded.

      Incompetence, sure; mistake, no.

  • (Score: 1, Informative) by Anonymous Coward on Friday June 15 2018, @12:45PM (2 children)

    by Anonymous Coward on Friday June 15 2018, @12:45PM (#693457)

    R is a statistical language/software popular in many fields as mentioned in the summary. It IS opensource. I dont know what Microsoft is implementing in ITS opensource version but R is certainly opensource. I remember them buying a company that implemented R commercially (Revolution Analytics?) a while ago.

    sbgen (not logged in)

    • (Score: 2) by goodie on Friday June 15 2018, @01:28PM (1 child)

      by goodie (1877) on Friday June 15 2018, @01:28PM (#693467) Journal

      My thoughts exactly... R is FOSS to begin with. I know that MS was implementing extensions to help with some of R's default shortcomings (e.g., automated parallelism, handling of large files etc) especially as they were integrating it in SQL Server 2016. But why would you need a separate version than the standard one is beyond me and would likely only cause headaches in the long run. But it's their right to do it I guess...

      • (Score: 2, Funny) by Anonymous Coward on Friday June 15 2018, @01:36PM

        by Anonymous Coward on Friday June 15 2018, @01:36PM (#693470)

        With this version of R you can calculate and see why running Windows is cheaper than Linux for your enterprise.
        They clearly needed completely different statistical tools to reach that conclusion...

  • (Score: 2) by Sourcery42 on Friday June 15 2018, @01:34PM

    by Sourcery42 (6400) on Friday June 15 2018, @01:34PM (#693469)

    It's nice that we're getting some MS love on the *nix side of the computing world. I don't have near enough excuses to tinker and troubleshoot without their shit breaking.

  • (Score: 0) by Anonymous Coward on Friday June 15 2018, @02:57PM

    by Anonymous Coward on Friday June 15 2018, @02:57PM (#693513)

    URL Below Contains Links To Articles, But this copy/paste does not!
    Please see: https://www.jwz.org/blog/2018/06/lol-github/ [jwz.org]

    So MICROS~1 bought Github and everybody's freaking out right now trying to re-host their projects on someone else's service.

    THIS IS WHAT HAPPENS WHEN YOU STORE YOUR DATA IN THE CLOWN.

    The Clown is just someone else's computer and they can and will fuck you. If it's not on your computer, it's not under your control. Why do you all keep doing this to yourselves??

    Stop hitting yourself. Seriously, stop it.

    Anyway, this is your periodic reminder that Microsoft is a vile garbage fire of a company.

    "We love developers, and we love open source developers," he said.

    Nadella stressed that Microsoft should be judged by the "recent past" for good reason: because just beyond the recent past is the less-recent past. A past when CEO Steve Ballmer called Linux a "cancer" and the company went to great lengths to force people into the Microsoft eco-system.

    This unpleasant past was summarized by Nadella as a "journey" that Microsoft had gone through with the open source community. Well that's one way of describing it. We'd note that Steve Spielberg's 1971 movie Duel was also a journey, with one man on a lovely cross-country journey... while another in a truck tries to run him off the road.

    Nadella is very keen for people to imagine a new Microsoft that doesn't use its power to screw over everyone it meets.

    Here's just one example of how MICROS~1 loves open source:

    Microsoft threatened to move its research facilities out of the UK if the government went ahead with plans to promote open source standards.

            Cabinet Officer Francis Maude outlined plans at the time to shift the UK to the .odf Open Document Format and away from Microsoft's proprietary .doc and .docx formats. [...]

            "Microsoft phoned Conservative MPs with Microsoft R&D facilities in their constituencies and said we will close them down in your constituencies if this goes through," Hilton said. "We just resisted. You have to be brave."

    I don't use any Microsoft products, and neither should you.

    URL Above Contains Links To Articles, But this copy/paste does not!
    Please see: https://www.jwz.org/blog/2018/06/lol-github/ [jwz.org]

  • (Score: 4, Interesting) by fritsd on Friday June 15 2018, @03:45PM (1 child)

    by fritsd (4586) on Friday June 15 2018, @03:45PM (#693541) Journal

    What I don't get is, if you're smart enough to program in R, and R already runs (well?) on Linux, why do you need to complicate things by installing the Linux and R in Microsoft Windows?

    (I'm not intentionally trolling)

    • (Score: 1, Informative) by Anonymous Coward on Friday June 15 2018, @06:42PM

      by Anonymous Coward on Friday June 15 2018, @06:42PM (#693635)

      makes the phb's happy if it says m$ on the splash screen??

  • (Score: 3, Insightful) by PinkyGigglebrain on Friday June 15 2018, @04:47PM (5 children)

    by PinkyGigglebrain (4458) on Friday June 15 2018, @04:47PM (#693566)

    #!/bin/bash was the second command I was taught when I learned shell programming. The first was "/usr/bin/vi " .

    I have little doubt that this screw up was not malicious but it speaks volumes about the level of pure incompetence and down right arrogance of the programmers employed by MS.

    --
    "Beware those who would deny you Knowledge, For in their hearts they dream themselves your Master."
    • (Score: 0) by Anonymous Coward on Friday June 15 2018, @07:12PM (2 children)

      by Anonymous Coward on Friday June 15 2018, @07:12PM (#693651)

      It also says a lot about Debian's package maintainers... Who lets something like that slip past?

      • (Score: 4, Touché) by lentilla on Saturday June 16 2018, @01:16AM

        by lentilla (1770) on Saturday June 16 2018, @01:16AM (#693807)

        Microsoft. You're a troll.

      • (Score: 1, Informative) by Anonymous Coward on Saturday June 16 2018, @04:35AM

        by Anonymous Coward on Saturday June 16 2018, @04:35AM (#693851)

        It also says a lot about Debian's package maintainers... Who lets something like that slip past?

        Summary was pretty terrible. But, this is an unofficial package from M$. Install non-M$ tainted R from official repos and none of this shit is an issue.

        Official packages are GNU R, not M$ "open" R:
        r-base - GNU R statistical computation and graphics system
        r-base-core - GNU R core of statistical computation and graphics system
        r-base-core-dbg - GNU R debug symbols for statistical comp. language and environment
        r-base-dev - GNU R installation of auxiliary GNU R packages
        r-base-html - GNU R html docs for statistical computing system functions

    • (Score: 3, Interesting) by ChrisMaple on Friday June 15 2018, @10:21PM (1 child)

      by ChrisMaple (6964) on Friday June 15 2018, @10:21PM (#693742)

      /bin/sh is known by nearly everyone experienced in Linux to be the standard interpreter for shell scripts. That this happened suggests that some newbie couldn't get his shell script to run with sh, but could with bash. Being too ignorant to start his script with #!/bin/bash, perhaps assuming that everything that runs on sh will also run on bash, he arrogantly decided everyone should be using the modern shiny bash.
      This is something that should have been caught before it was released.

      • (Score: 0) by Anonymous Coward on Saturday June 16 2018, @09:38AM

        by Anonymous Coward on Saturday June 16 2018, @09:38AM (#693899)

        OMG! UID= 6964? Is SoylentNews going to break the 7000 ceiling? OK, not to get too excited. 36 more to go.

  • (Score: 0) by Anonymous Coward on Friday June 15 2018, @05:13PM

    by Anonymous Coward on Friday June 15 2018, @05:13PM (#693582)

    embrace
    extend
    extinguish

  • (Score: 2) by VLM on Friday June 15 2018, @09:17PM

    by VLM (445) on Friday June 15 2018, @09:17PM (#693718)

    Business as usual.

    In all fairness, for decades MS has produced single program operating systems where you can't run both a DHCP and a DNS server on the same box, "of course" so you need like 50 servers to replace one multi purpose linux server. Probably because MS bills by install, so having more than one program installed on a box would tend to maximize revenue. Which leads to a whole cottage industry of virtualization since you got 50 physical servers all doing approximately nothing to remain a "supported configuration" so you can virtualize them all on one physical server, whereas the Linux way of doing it is "apt-get install" like 50 packages on one box. Of course with containerization turning linux into MS windows admin style, and systemd turning linux into, WTF nothing good thats for sure,...

    I'm just saying by MS admin standards, one OS with one program installed on it, is about right, so whats the issue?

(1)