Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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 (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support (Russian)
  3. Segmentation Fault NetXMSD 0.2.31

Segmentation Fault NetXMSD 0.2.31

Scheduled Pinned Locked Moved Support (Russian)
5 Posts 2 Posters 21.3k Views
  • 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.
  • V
    V
    vadikgo
    wrote on last edited by
    #1

    После обновления до netxmsd 0.2.31 падает netxmsd.
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x43938950 (LWP 3886)]
    SNMP_Transport::setSecurityContext (this=0x0, ctx=0xec7f10) at transport.cpp:79
    79 delete m_securityContext;
    (gdb) bt
    #0  SNMP_Transport::setSecurityContext (this=0x0, ctx=0xec7f10) at transport.cpp:79
    #1  0x00002abd9545db58 in SnmpCheckCommSettings (pTransport=0x0, version=0xaffab4, originalContext=0xaf81a0) at snmp.cpp:809
    #2  0x00002abd95434760 in Node::ConfigurationPoll (this=0xaff7a0, pSession=0x32191eac, dwRqId=0, nPoller=12, dwNetMask=0)
        at node.cpp:1135
    #3  0x00002abd954425a9 in ConfigurationPoller (arg=<value optimized out>) at poll.cpp:261
    #4  0x00002abd956ae3f7 in start_thread () from /lib/libpthread.so.0
    #5  0x00002abd96d1eb4d in clone () from /lib/libc.so.6
    #6  0x0000000000000000 in ?? ()

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Poprobujte zamenit' faili node.cpp i interface.cpp v src/server/core na prilozennie i peresobrat' server.


      interface.cpp

      node.cpp

      1 Reply Last reply
      0
      • V
        V
        vadikgo
        wrote on last edited by
        #3

        Ошибка при компиляции:
        /bin/bash ../../../libtool --tag=CXX  --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/server/include  -I/usr/local/pgsql/include -I/usr/include/pgsql -I/usr/pgsql/include -I/usr/local/include/pgsql -I/usr/local/pgsql/include/pgsql -I/usr/pgsql/include/pgsql -I/usr/local/postgresql/include -I/usr/include/postgresql -I/usr/postgresql/include -I/usr/local/include/postgresql -I/usr/local/postgresql/include/postgresql -I/usr/postgresql/include/postgresql -D_GNU_SOURCE -I/usr/local/include -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\"  -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated -MT node.lo -MD -MP -MF .deps/node.Tpo -c -o node.lo node.cpp
        libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/server/include -I/usr/local/pgsql/include -I/usr/include/pgsql -I/usr/pgsql/include -I/usr/local/include/pgsql -I/usr/local/pgsql/include/pgsql -I/usr/pgsql/include/pgsql -I/usr/local/postgresql/include -I/usr/include/postgresql -I/usr/postgresql/include -I/usr/local/include/postgresql -I/usr/local/postgresql/include/postgresql -I/usr/postgresql/include/postgresql -D_GNU_SOURCE -I/usr/local/include -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated -MT node.lo -MD -MP -MF .deps/node.Tpo -c node.cpp  -fPIC -DPIC -o .libs/node.o
        node.cpp: In constructor ‘Node::Node()’:
        node.cpp:76: error: ‘m_jobQueue’ was not declared in this scope
        node.cpp:76: error: expected type-specifier before ‘ServerJobQueue’
        node.cpp:76: error: expected `;' before ‘ServerJobQueue’
        node.cpp: In constructor ‘Node::Node(DWORD, DWORD, DWORD, DWORD, DWORD)’:
        node.cpp:132: error: ‘m_jobQueue’ was not declared in this scope
        node.cpp:132: error: expected type-specifier before ‘ServerJobQueue’
        node.cpp:132: error: expected `;' before ‘ServerJobQueue’
        node.cpp: In destructor ‘virtual Node::~Node()’:
        node.cpp:150: error: ‘m_jobQueue’ was not declared in this scope
        node.cpp: In member function ‘BOOL Node::ConnectToAgent()’:
        node.cpp:1822: error: ‘class AgentConnectionEx’ has no member named ‘nop’
        node.cpp:1833: error: ‘class AgentConnectionEx’ has no member named ‘setCommandTimeout’
        node.cpp:1834: error: ‘class AgentConnectionEx’ has no member named ‘enableTraps’
        make[4]: *** [node.lo] Error 1
        make[4]: Leaving directory `/home/local/COMMON/user1/netxms-0.2.31/src/server/core'
        make[3]: *** [all-recursive] Error 1
        make[3]: Leaving directory `/home/local/COMMON/user1/netxms-0.2.31/src/server'
        make[2]: *** [all-recursive] Error 1
        make[2]: Leaving directory `/home/local/COMMON/user1/netxms-0.2.31/src'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/home/local/COMMON/user1/netxms-0.2.31'
        make: *** [all] Error 2

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Popravil node.cpp.


          node.cpp

          1 Reply Last reply
          0
          • V
            V
            vadikgo
            wrote on last edited by
            #5

            Спасибо! Всё работает.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            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.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups