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
  3. segfault

segfault

Scheduled Pinned Locked Moved Support
12 Posts 2 Posters 81.8k 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
    kiaj
    wrote on last edited by
    #3

    helps only removing that nodes from mysql manualy, can anybody said did dci table function work or not ?

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

      Hi!

      Was this SNMP or agent table? Looks very similar to https://www.netxms.org/forum/configuration/netxms-server-crash-1-2-9.

      If you built server from sources, try to replace line 389 in file src/server/core/dctable.cpp which currently should looks like

      if (_tcslen(s) < MAX_DB_STRING)
      

      with

      if ((s == NULL) || (_tcslen(s) < MAX_DB_STRING))
      

      and rebuild server.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • K
        K
        kiaj
        wrote on last edited by
        #5

        hello, yes it is snmp table, but as i understand the error happend when apply snmp table with some mistakes, for now i compile server from source and apply correct table and everything work, i will testing more and when the error will happend i'll try your issue, and sorry for my bad english 🙂

        1 Reply Last reply
        0
        • K
          K
          kiaj
          wrote on last edited by
          #6

          i tried recompile with changings, that is not help, server cruch after activate table, see attachments

          maybe problem is in the oid's of vpn tunnel ifindex interface, it is changed after any reconnect or some time ago after time to live ends.


          netxms1.jpg

          netxms2.jpg

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

            Hi!

            Can you provide me a stack trace from debugger?

            Best regards,
            Victor

            1 Reply Last reply
            0
            • K
              K
              kiaj
              wrote on last edited by
              #8

              trace with -D9 in attachment.


              strace.txt

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

                Are you sure you apply patch and rebuild server correctly? It crashes in same place as if it was not patched. How line 389 in src/server/core/dctable.cpp looks like now?

                Best regards,
                Victor

                1 Reply Last reply
                0
                • K
                  K
                  kiaj
                  wrote on last edited by
                  #10

                  i was change this string in file

                  if ((s == NULL) || (_tcslen(s) < MAX_DB_STRING))

                  then

                  ./reconf
                  ./configure --with-server --with-agent
                  ./make
                  ./make install


                  netxms3.jpg

                  1 Reply Last reply
                  0
                  • K
                    K
                    kiaj
                    wrote on last edited by
                    #11

                    shit, i do wrong comment in file :((( sorry, one more time try

                    1 Reply Last reply
                    0
                    • K
                      K
                      kiaj
                      wrote on last edited by
                      #12

                      i replace code and everything is the same here stack trace

                      Program received signal SIGSEGV, Segmentation fault.
                      [Switching to Thread 0xb70ffb70 (LWP 10813)]
                      0xb7a15d03 in strlen () from /lib/libc.so.6
                      (gdb) bt
                      #0  0xb7a15d03 in strlen () from /lib/libc.so.6
                      #1  0xb7f1dec1 in DCTable::processNewValue (this=0x81273a0, nTimeStamp=1381732962, value=0xb480c4f8) at dctable.cpp:389
                      #2  0xb7f21120 in DataCollectionTarget::processNewDCValue (this=0x8128850, dco=0x81273a0, currTime=1381732962, value=0xb480c4f8) at dctarget.cpp:366
                      #3  0xb7f0d1af in DataCollector (pArg=0x0) at datacoll.cpp:254
                      #4  0xb7c38830 in start_thread () from /lib/libpthread.so.0
                      #5  0xb7a7c15e in clone () from /lib/libc.so.6

                      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