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. Segfault

Segfault

Scheduled Pinned Locked Moved Support (Russian)
5 Posts 3 Posters 35.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.
  • 2
    2
    2c2i
    wrote on last edited by
    #1

    netxmsd[21029]: segfault at 7f1adc000000 ip 00007f1b28192194 sp 00007f1aea722918 error 4 in libc-2.19.so[7f1b28100000+1a2000]

    бектрейс:

    bt full
    #0  __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:116
    No locals.
    #1  0x00007f1b2a46c412 in memcpy (__len=100728864, __src=0x7f1ada898cc0, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
    No locals.
    #2  nx_memdup (data=0x7f1ada898cc0, size=100728864) at tools.cpp:268
            newData = <optimized out>
    #3  0x00007f1b2a4582f0 in NXCPMessage::NXCPMessage (this=0x7f1b1b8e46d0, msg=0x7f1ada898cb0, version=<optimized out>) at message.cpp:145
            i = <optimized out>
    #4  0x00007f1b2a45a0ae in AbstractMessageReceiver::getMessageFromBuffer (this=this@entry=0x7f1aea722a70, protocolError=protocolError@entry=0x7f1aea7229e7) at msgrecv.cpp:76
            msgSize = 0
            msg = 0x0
    #5  0x00007f1b2a45a19b in AbstractMessageReceiver::readMessage (this=this@entry=0x7f1aea722a70, timeout=timeout@entry=900000, result=result@entry=0x7f1aea722a4c) at msgrecv.cpp:117
            bytes = <optimized out>
            msg = <optimized out>
            protocolError = false
    #6  0x00007f1b2b60a890 in MobileDeviceSession::readThread (this=this@entry=0x7f1b103c5a90) at mdsession.cpp:170
            result = MSGRECV_COMM_FAILURE
            msg = <optimized out>
            szBuffer = L'\000' <repeats 86 times>, "\x2a45d9f1缛\000\000\000\000\x10080120缛\x2a45da99缛", '\000' <repeats 18 times>, "\x33decc00\x4d53c26d\000\000\000\000\000\000\x103c5a90缛\xea722cd0缚\021\000\xea723700缚\x2b609347缛", '\000' <repeats 90 times>...
            receiver = {<AbstractMessageReceiver> = {_vptr.AbstractMessageReceiver = 0x7f1b2a689790 <vtable for SocketMessageReceiver+16>, m_buffer = 0x7f1ada898cb0 "\022\001",
                m_decryptionBuffer = 0x0, m_encryptionContext = 0x0, m_initialSize = 4096, m_size = 4096, m_maxSize = 65536, m_dataSize = 47, m_bytesToSkip = 0}, m_socket = 54}
            rawMsg = <optimized out>
            msg = <optimized out>
    #7  0x00007f1b2b60ac19 in MobileDeviceSession::readThreadStarter (pArg=0x7f1b103c5a90) at mdsession.cpp:56
    No locals.
    #8  0x00007f1b293320a4 in start_thread (arg=0x7f1aea723700) at pthread_create.c:309
            __res = <optimized out>
            pd = 0x7f1aea723700
            now = <optimized out>
            unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139753579230976, -1209311544205124044, 0, 139754209953328, 17, 139753579230976, 1225679945345261108, 1225537549754555956},
                  mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
            not_first_call = <optimized out>
            pagesize_m1 = <optimized out>
            sp = <optimized out>
            freesize = <optimized out>
            __PRETTY_FUNCTION__ = "start_thread"
    #9  0x00007f1b281e887d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
    No locals.
    
    1 Reply Last reply
    0
    • 2
      2
      2c2i
      wrote on last edited by
      #2

      Как повторить:

      cat packet.dump | nc 1.1.1.1 4701

      1.1.1.1 - адрес сервера версии 2.0.5
      4701 - порт

      packet.dump - приложен.

      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #3

        Спасибо, будем смотреть.
        Я удалил пока дамп из сообщения.

        1 Reply Last reply
        0
        • 2
          2
          2c2i
          wrote on last edited by
          #4

          Если слать на порт 4747 - проблема тоже повторяется

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

            Исправили. Исправление войдет в 2.1-М1 и в 2.0.6. В аттаче патч для 2.0.5 на случай если собираете из исходников.


            segfault_fix.patch

            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