Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8080

Floating point exceptions in lambda-functions executed by interpreter not catched

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.08/00
    • Fix Version/s: 6.10/00
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Gentoo Linux x86_64

      Description

      Dear ROOTers,

      I just (accidentally) encountered the following:

      $ root -l
      root [0] auto nastylambda = [](int a){return a/0;};
      ROOT_prompt_0:1:38: warning: division by zero is undefined [-Wdivision-by-zero]

      Cool, warning, but:

      root [1] nastylambda(1)
       
       *** Break *** floating point exception

      followed by a long stacktrace...
      Since

      root [2] 3/0
      ROOT_prompt_2:1:2: warning: division by zero is undefined [-Wdivision-by-zero]
      3/0
       ^~
      (int) 0

      does not "explode" and I thought FPEs are masked by default in ROOT, I guess that's not expected behaviour - is it?

      Cheers,
      Oliver

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            ofreyerm Oliver Freyermuth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: