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. Netxmsd 1.2.13. Segmentation fault

Netxmsd 1.2.13. Segmentation fault

Scheduled Pinned Locked Moved Support (Russian)
28 Posts 8 Posters 106.4k 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.
  • K
    K
    kozlov_ao
    wrote on last edited by
    #18

    2 Lukas: No, read post #4, #5

    2 Viktor: Ок. Как отвалится - напишу ))

    1 Reply Last reply
    0
    • K
      K
      kozlov_ao
      wrote on last edited by
      #19

      помер бобик:

      [Thread 0x7fffdcdc9700 (LWP 4583) exited]
      [Thread 0x7fffdc9c5700 (LWP 4588) exited]
      [New Thread 0x7fffdc9c5700 (LWP 4599)]
      [New Thread 0x7fffdcdc9700 (LWP 4600)]
      [Thread 0x7fffdcdc9700 (LWP 4600) exited]
      [Thread 0x7fffdc9c5700 (LWP 4599) exited]
      [Thread 0x7fffdcbc7700 (LWP 4550) exited]
      [Thread 0x7ffff3f5f700 (LWP 4538) exited]
      
      Program received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0x7fffe93d3700 (LWP 6806)]
      SnmpGet (version=1, transport=0x0, szOidStr=0x7ffff7b43228 L".1.3.6.1.2.1.1.2.0", oidBinary=0x0, dwOidLen=0, pValue=0x7fffe93d2860, dwBufferSize=1024, dwFlags=0)
          at snmp.cpp:288
      288     }
      (gdb) backtrace
      #0  SnmpGet (version=1, transport=0x0, szOidStr=0x7ffff7b43228 L".1.3.6.1.2.1.1.2.0", oidBinary=0x0, dwOidLen=0, pValue=0x7fffe93d2860, dwBufferSize=1024, dwFlags=0)
          at snmp.cpp:288
      #1  0x00007ffff7abc936 in Node::statusPoll (this=0x9210d0, pSession=0x0, dwRqId=0, nPoller=15) at node.cpp:1064
      #2  0x00007ffff7acc03e in StatusPoller (arg=<optimized out>) at poll.cpp:284
      #3  0x00007ffff5e63b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      #4  0x00007ffff50180ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
      #5  0x0000000000000000 in ?? ()
      
      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #20

        Попробуйте заменить src/server/code/node.cpp на приложенный и пересобрать.


        node.cpp

        1 Reply Last reply
        0
        • K
          K
          kozlov_ao
          wrote on last edited by
          #21

          похоже не src/server/code/node.cpp, а src/server/core/node.cpp

          1 Reply Last reply
          0
          • K
            K
            kozlov_ao
            wrote on last edited by
            #22

            пересобрал... запустил в отладчике... если через сутки не отвалится - считаем все ОК..
            по итогу отпишусь

            1 Reply Last reply
            0
            • K
              K
              kozlov_ao
              wrote on last edited by
              #23

              не дожил до утра:

              [Thread 0x7fffe4383700 (LWP 12528) exited]
              [New Thread 0x7fffe4383700 (LWP 12530)]
              [New Thread 0x7fffe4484700 (LWP 12531)]
              [Thread 0x7fffe4484700 (LWP 12531) exited]
              [Thread 0x7fffe4383700 (LWP 12530) exited]
              [Thread 0x7fffd7dfd700 (LWP 12464) exited]
              [Thread 0x7fffd5bd7700 (LWP 12463) exited]
              
              Program received signal SIGSEGV, Segmentation fault.
              [Switching to Thread 0x7fffeb9f9700 (LWP 14581)]
              SnmpGet (version=1, transport=0x0, szOidStr=0x7fffd0183710 L".1.3.6.1.2.1.43.18.1.1.7.1.1", oidBinary=0x0, dwOidLen=0, pValue=0x7fffeb9f32d0, dwBufferSize=16384, dwFlags=2) at snmp.cpp:288
              288     }
              (gdb) backtrace
              #0  SnmpGet (version=1, transport=0x0, szOidStr=0x7fffd0183710 L".1.3.6.1.2.1.43.18.1.1.7.1.1", oidBinary=0x0, dwOidLen=0, pValue=0x7fffeb9f32d0, dwBufferSize=16384, dwFlags=2) at snmp.cpp:288
              #1  0x00007ffff7ac3910 in F_SNMPGetValue (argc=<optimized out>, argv=<optimized out>, ppResult=0x7fffeb9f7310, program=<optimized out>) at nxslext.cpp:945
              #2  0x00007ffff73b9bee in NXSL_Program::execute (this=this@entry=0x94c7b0) at program.cpp:1021
              #3  0x00007ffff73ba558 in NXSL_Program::run (this=0x94c7b0, pEnv=<optimized out>, argc=<optimized out>, argv=<optimized out>, pUserLocals=<optimized out>, ppGlobals=0x0, pConstants=0x0, entryPoint=0x0) at program.cpp:520
              #4  0x00007ffff7a7d7b1 in DCItem::transform (this=this@entry=0x9550c0, value=..., nElapsedTime=<optimized out>) at dcitem.cpp:859
              #5  0x00007ffff7a7dc4b in DCItem::processNewValue (this=0x9550c0, tmTimeStamp=1397178490, originalValue=0xcee010) at dcitem.cpp:676
              #6  0x00007ffff7a8ac35 in DataCollectionTarget::processNewDCValue (this=0x947590, dco=0x9550c0, currTime=1397178490, value=0xcee010) at dctarget.cpp:371
              #7  0x00007ffff7a7a192 in DataCollector (pArg=<optimized out>) at datacoll.cpp:254
              #8  0x00007ffff5e63b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
              #9  0x00007ffff50180ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
              #10 0x0000000000000000 in ?? ()
              
              1 Reply Last reply
              0
              • K
                K
                kozlov_ao
                wrote on last edited by
                #24

                после запуска, через пару секунд:

                [New Thread 0x7fffe4686700 (LWP 15060)]
                [New Thread 0x7fffe4585700 (LWP 15061)]
                [New Thread 0x7fffe4484700 (LWP 15062)]
                [New Thread 0x7fffe4383700 (LWP 15063)]
                
                Program received signal SIGSEGV, Segmentation fault.
                [Switching to Thread 0x7ffff0617700 (LWP 14927)]
                SnmpGet (version=1, transport=0x0, szOidStr=0x7fffec035fd0 L".1.3.6.1.2.1.43.18.1.1.7.1.70", oidBinary=0x0, dwOidLen=0, pValue=0x7ffff06112d0, dwBufferSize=16384, dwFlags=2) at snmp.cpp:288
                288     }
                (gdb)
                (gdb) backtrace
                #0  SnmpGet (version=1, transport=0x0, szOidStr=0x7fffec035fd0 L".1.3.6.1.2.1.43.18.1.1.7.1.70", oidBinary=0x0, dwOidLen=0, pValue=0x7ffff06112d0, dwBufferSize=16384, dwFlags=2) at snmp.cpp:288
                #1  0x00007ffff7ac3910 in F_SNMPGetValue (argc=<optimized out>, argv=<optimized out>, ppResult=0x7ffff0615310, program=<optimized out>) at nxslext.cpp:945
                #2  0x00007ffff73b9bee in NXSL_Program::execute (this=this@entry=0x927220) at program.cpp:1021
                #3  0x00007ffff73ba558 in NXSL_Program::run (this=0x927220, pEnv=<optimized out>, argc=<optimized out>, argv=<optimized out>, pUserLocals=<optimized out>, ppGlobals=0x0, pConstants=0x0, entryPoint=0x0) at program.cpp:520
                #4  0x00007ffff7a7d7b1 in DCItem::transform (this=this@entry=0x943540, value=..., nElapsedTime=<optimized out>) at dcitem.cpp:859
                #5  0x00007ffff7a7dc4b in DCItem::processNewValue (this=0x943540, tmTimeStamp=1397184111, originalValue=0xcaea60) at dcitem.cpp:676
                #6  0x00007ffff7a8ac35 in DataCollectionTarget::processNewDCValue (this=0x91fa90, dco=0x943540, currTime=1397184111, value=0xcaea60) at dctarget.cpp:371
                #7  0x00007ffff7a7a192 in DataCollector (pArg=<optimized out>) at datacoll.cpp:254
                #8  0x00007ffff5e63b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
                #9  0x00007ffff50180ed in clone () from /lib/x86_64-linux-gnu/libc.so.6
                #10 0x0000000000000000 in ?? ()
                
                1 Reply Last reply
                0
                • K
                  K
                  kozlov_ao
                  wrote on last edited by
                  #25

                  при запуска с дебагом 9:

                  [11-Apr-2014 06:48:10.285] [DEBUG] DataCollector(): processing DC object 300 ".1.3.6.1.2.1.43.11.1.1.9.1.4" owner=745 proxy=0
                  [11-Apr-2014 06:48:10.285] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.11.1.1.9.1.4): dwResult=4
                  [11-Apr-2014 06:48:10.285] [DEBUG] DataCollector(): processing DC object 301 ".1.3.6.1.2.1.43.11.1.1.9.1.5" owner=745 proxy=0
                  [11-Apr-2014 06:48:10.285] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.11.1.1.9.1.5): dwResult=4
                  [11-Apr-2014 06:48:10.285] [DEBUG] DataCollector(): processing DC object 302 ".1.3.6.1.2.1.43.11.1.1.9.1.6" owner=745 proxy=0
                  [11-Apr-2014 06:48:10.285] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.11.1.1.9.1.6): dwResult=4
                  [11-Apr-2014 06:48:10.285] [DEBUG] DataCollector(): processing DC object 304 ".1.3.6.1.2.1.43.8.2.1.10.1.1" owner=745 proxy=0
                  [11-Apr-2014 06:48:10.285] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.8.2.1.10.1.1): dwResult=4
                  [11-Apr-2014 06:48:10.285] [DEBUG] DataCollector(): processing DC object 305 ".1.3.6.1.2.1.43.8.2.1.10.1.2" owner=745 proxy=0
                  [11-Apr-2014 06:48:10.285] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.8.2.1.10.1.2): dwResult=4
                  [11-Apr-2014 06:48:10.285] [DEBUG] DataCollector(): processing DC object 307 "Dummy" owner=745 proxy=0
                  Segmentation fault
                  

                  еще раз:

                  [11-Apr-2014 06:48:50.596] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.8.2.1.10.1.1): dwResult=4
                  [11-Apr-2014 06:48:50.597] [DEBUG] {0x7f3b98079b60} bind at pos 4: "287"
                  [11-Apr-2014 06:48:50.597] [DEBUG] {0x279c120} bind at pos 2: "1397184530"
                  [11-Apr-2014 06:48:50.597] [DEBUG] DataCollector(): processing DC object 305 ".1.3.6.1.2.1.43.8.2.1.10.1.2" owner=745 proxy=0
                  [11-Apr-2014 06:48:50.597] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.8.2.1.10.1.2): dwResult=4
                  [11-Apr-2014 06:48:50.597] [DEBUG] DataCollector(): processing DC object 307 "Dummy" owner=745 proxy=0
                  [11-Apr-2014 06:48:50.597] [DEBUG] {0x279c120} bind at pos 3: "0.000008"
                  [11-Apr-2014 06:48:50.597] [DEBUG] Successful prepared sync query: "UPDATE raw_dci_values SET raw_value=?,transformed_value=?,last_poll_time=? WHERE item_id=?" [0 ms]
                  Segmentation fault
                  

                  и еще:

                  [11-Apr-2014 06:49:58.461] [DEBUG] DataCollector(): processing DC object 302 ".1.3.6.1.2.1.43.11.1.1.9.1.6" owner=745 proxy=0
                  [11-Apr-2014 06:49:58.461] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.11.1.1.9.1.6): dwResult=4
                  [11-Apr-2014 06:49:58.461] [DEBUG] DataCollector(): processing DC object 304 ".1.3.6.1.2.1.43.8.2.1.10.1.1" owner=745 proxy=0
                  [11-Apr-2014 06:49:58.461] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.8.2.1.10.1.1): dwResult=4
                  [11-Apr-2014 06:49:58.461] [DEBUG] DataCollector(): processing DC object 305 ".1.3.6.1.2.1.43.8.2.1.10.1.2" owner=745 proxy=0
                  [11-Apr-2014 06:49:58.461] [DEBUG] Node(HP CP4520)->GetItemFromSNMP(.1.3.6.1.2.1.43.8.2.1.10.1.2): dwResult=4
                  [11-Apr-2014 06:49:58.462] [DEBUG] DataCollector(): processing DC object 307 "Dummy" owner=745 proxy=0
                  [11-Apr-2014 06:49:58.462] [DEBUG] Successful prepared sync query: "UPDATE raw_dci_values SET raw_value=?,transformed_value=?,last_poll_time=? WHERE item_id=?" [1 ms]
                  [11-Apr-2014 06:49:58.462] [DEBUG] {0x7f283c43a380} Successful prepare: "UPDATE raw_dci_values SET raw_value=?,transformed_value=?,last_poll_time=? WHERE item_id=?" [0 ms]
                  Segmentation fault
                  

                  и так раз 10 подряд... потом уже не пробовал...

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

                    Замени еще src/server/core/nxslext.cpp на приложенный


                    nxslext.cpp

                    1 Reply Last reply
                    0
                    • K
                      K
                      kozlov_ao
                      wrote on last edited by
                      #27

                      запустилось. тестим в отладчике

                      1 Reply Last reply
                      0
                      • K
                        K
                        kozlov_ao
                        wrote on last edited by
                        #28

                        2 суток, все хорошо. Летим и радуемся ))

                        PS: В смысле работаем ))

                        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