Menu

#171 Assertion errors in debian/ubuntu on saga_cmd

v2.1.0
closed
nobody
None
1
2016-03-07
2013-12-10
No

This problem occurs on ubuntu and debian:
Whenever saga_cmd is run, just before stopping, an assertion error is raised:
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!

It can be solved by using the attached patch which disables some of the library unloading. It seems all 3 fixes are necessary. I applied this patch to my ubuntu builds some time ago.

I'm not sure whether removing these destructors may create small memory leaks, but this should not be an issue as this unloading is run usually on program exit only.
Perhaps a more elegant solution exists so I'm posting the patch here first for review rather than commiting directly

See also discussion at : https://sourceforge.net/p/saga-gis/discussion/354013/thread/603700f9/

Note that this error makes RSAGA unusable on these platforms.

1 Attachments

Related

Bugs: #171

Discussion

  • Volker Wichmann

    Volker Wichmann - 2013-12-11

    Hi,

    I'm not sure that this is the right approach - in the discussion thread you are citing, there is reported that this problem only occurs with certain modules:

    libio_shapes_dxf.so
    libta_lighting.so
    libta_morphometry.so
    

    Is this still the case? And are you using wxWidgets 3.0.0?

    If only these three libraries affected, we could try to find out what is so special about them - maybe they are linking differently than the others?

     
    • Johan Van de Wauw

      This bug affects all modules.

      In fact it would even occur if no module is loaded.

      On Wed, Dec 11, 2013 at 9:41 AM, Volker Wichmann reklov_w@users.sf.net wrote:

      Hi,

      I'm not sure that this is the right approach - in the discussion thread you
      are citing, there is reported that this problem only occurs with certain
      modules:

      libio_shapes_dxf.so
      libta_lighting.so
      libta_morphometry.so

      Is this still the case? And are you using wxWidgets 3.0.0?

      If only these three libraries affected, we could try to find out what is so
      special about them - maybe they are linking differently than the others?


      [bugs:#171] Assertion errors in debian/ubuntu on saga_cmd

      Status: open
      Created: Tue Dec 10, 2013 09:31 PM UTC by Johan Van de Wauw
      Last Updated: Tue Dec 10, 2013 09:31 PM UTC
      Owner: nobody

      This problem occurs on ubuntu and debian:
      Whenever saga_cmd is run, just before stopping, an assertion error is
      raised:
      Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion
      `map->l_init_called' failed!

      It can be solved by using the attached patch which disables some of the
      library unloading. It seems all 3 fixes are necessary. I applied this patch
      to my ubuntu builds some time ago.

      I'm not sure whether removing these destructors may create small memory
      leaks, but this should not be an issue as this unloading is run usually on
      program exit only.
      Perhaps a more elegant solution exists so I'm posting the patch here first
      for review rather than commiting directly

      See also discussion at :
      https://sourceforge.net/p/saga-gis/discussion/354013/thread/603700f9/

      Note that this error makes RSAGA unusable on these platforms.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/saga-gis/bugs/171/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #171

      • Ashley Hawkins

        Ashley Hawkins - 2015-07-06

        Hi,

        How do I apply the patch discussed for "bug #171 (Assertion errors in debian/ubuntu on saga_cmd)?

        thanks!

         
        • Johan Van de Wauw

          Ashley,

          What version of SAGA are you trying to compile? This problem has been
          solved long ago.

          Kind Regards,
          Johan

          On Tue, Jul 7, 2015 at 1:55 AM, Ashley Hawkins aehawkins@users.sf.net wrote:

          Hi,

          How do I apply the patch discussed for "bug #171 (Assertion errors in
          debian/ubuntu on saga_cmd)?

          thanks!


          [bugs:#171] Assertion errors in debian/ubuntu on saga_cmd

          Status: closed
          Group: v2.1.0
          Created: Tue Dec 10, 2013 09:31 PM UTC by Johan Van de Wauw
          Last Updated: Wed Oct 29, 2014 02:24 AM UTC
          Owner: nobody

          This problem occurs on ubuntu and debian:
          Whenever saga_cmd is run, just before stopping, an assertion error is
          raised:
          Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion
          `map->l_init_called' failed!

          It can be solved by using the attached patch which disables some of the
          library unloading. It seems all 3 fixes are necessary. I applied this patch
          to my ubuntu builds some time ago.

          I'm not sure whether removing these destructors may create small memory
          leaks, but this should not be an issue as this unloading is run usually on
          program exit only.
          Perhaps a more elegant solution exists so I'm posting the patch here first
          for review rather than commiting directly

          See also discussion at :
          https://sourceforge.net/p/saga-gis/discussion/354013/thread/603700f9/

          Note that this error makes RSAGA unusable on these platforms.


          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/saga-gis/bugs/171/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #171

  • Anonymous

    Anonymous - 2013-12-11

    There are quite a few different bug reports on the discussion, perhaps it is better not look at that.

    Error occurs with Wx 3.0 also. The error occurs with all modules, and even occurs when listing the modules, eg when running saga_cmd without arguments.

    I guess it may be an error in wxwidgets (since the error did not occur in saga 2.0.8). But then I'm not clever enough to find a solution or point out the right place where the error occurs:-)

    Is anyone experiencing similar problems on other linux platforms?

     
  • Volker Wichmann

    Volker Wichmann - 2013-12-11

    Olaf is having a look - he is able to reproduce the error on OpenSuse. We encounter no problems on Ubuntu 10.04, CentOS and Fedora.

     
    • Johan Van de Wauw

      FYI, I tested on Ubuntu 12.04, 12.10 and debian unstable with
      wxwidgets 3.0 as packaged in debian.

      On Wed, Dec 11, 2013 at 11:20 AM, Volker Wichmann reklov_w@users.sf.net wrote:

      Olaf is having a look - he is able to reproduce the error on OpenSuse. We
      encounter no problems on Ubuntu 10.04, CentOS and Fedora.


      [bugs:#171] Assertion errors in debian/ubuntu on saga_cmd

      Status: open
      Created: Tue Dec 10, 2013 09:31 PM UTC by Johan Van de Wauw
      Last Updated: Wed Dec 11, 2013 08:55 AM UTC
      Owner: nobody

      This problem occurs on ubuntu and debian:
      Whenever saga_cmd is run, just before stopping, an assertion error is
      raised:
      Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion
      `map->l_init_called' failed!

      It can be solved by using the attached patch which disables some of the
      library unloading. It seems all 3 fixes are necessary. I applied this patch
      to my ubuntu builds some time ago.

      I'm not sure whether removing these destructors may create small memory
      leaks, but this should not be an issue as this unloading is run usually on
      program exit only.
      Perhaps a more elegant solution exists so I'm posting the patch here first
      for review rather than commiting directly

      See also discussion at :
      https://sourceforge.net/p/saga-gis/discussion/354013/thread/603700f9/

      Note that this error makes RSAGA unusable on these platforms.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/saga-gis/bugs/171/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #171

  • Volker Wichmann

    Volker Wichmann - 2013-12-15

    Hi Johan, does rev1900 fix the issue?

    http://sourceforge.net/p/saga-gis/code-0/1900/

    saga_api, module library management: bug fix, unloading libraries in linux like os'. refers to bug report #171 'Assertion errors in debian/ubuntu on saga_cmd'

     
  • Anonymous

    Anonymous - 2013-12-15

    Fixed on ubuntu and debian with rev1900. Thanks Olaf!

     
  • Johan Van de Wauw

    • status: open --> closed
     
  • Anonymous

    Anonymous - 2016-03-07

    Closed? I'm having this exact problem right now!

     

    Last edit: Anonymous 2016-03-07

Anonymous
Anonymous

Add attachments
Cancel