HaikuArchives / Vision

A native Haiku IRC client that is feature filled, fast, lightweight, and stable.
Other
12 stars 15 forks source link

Reproducible crash #63

Open extrowerk opened 3 years ago

extrowerk commented 3 years ago

I have 2 computer running Haiku, both have Vision configured to ocnnect to the same znc bouncer. If i start Vision on computer A, and the on computer B, the one running on A will crash. It works in both direction, 100% reproducible.

A workaround was : i disabled the freenode server in znc, now it doesn't crashing anymore.

On IRC i got this hint:

<mcrcc> I have a hunch that it may be because 'ulong addr = inet_addr...' in ParseCmd.cpp should be 'in_addr_t addr = inet_addr...' and the types may not be the same size
<mcrcc> line 1174

Crashlog:

Debug information for team /boot/system/apps/Vision/Vision (5255):
CPU(s): 4x Intel Core™ i5-7500T
Memory: 15.89 GiB total, 2.02 GiB used
Haiku revision: hrev55102 May 23 2021 06:41:59 (x86_64)

Active Threads:
    thread 5255: Vision (main)
    thread 5258: the_spirits_within 
    thread 5260: w>#haiku-hun - Vision 
    thread 5261: l>stare_girl 
    thread 5262: s>psycho psycho_killer killer 
    thread 5263: l>stare_girl 
    thread 5264: s>peer_reset_thread 
    thread 5276: team 5255 debug task 
    thread 5275: dns_lookup 
        state: Call (_numAvailable <= _numBlocks)

        Frame       IP          Function Name
        -----------------------------------------------
        00000000    0x589a54f82f    _kern_debugger + 0x7 
            Disassembly:
                _kern_debugger:
                0x000000589a54f828:   48c7c0e4000000  mov $0xe4, %rax
                0x000000589a54f82f:             0f05  syscall  <--

        0x7f586ca80b20  0x589a556230    __assert_fail + 0x60 
        0x7f586ca80b60  0x589a5db369    BPrivate::processHeap::free(void*) + 0x1a9 
        0x7f586ca80b80  0x589a5dc38d    free + 0x3d 
        0x7f586ca80ba0  0x589a583f24    _IO_fclose + 0x74 
        0x7f586ca80bb0  0x701d0d83f4    _endhtent + 0x24 
        0x7f586ca80bf0  0x701d0d87c0    _gethtbyaddr + 0xf0 
        0x7f586ca80e10  0x701d0dccd0    nsdispatch + 0x3c0 
        0x7f586ca80e60  0x701d0d818f    gethostbyaddr + 0x8f 
        0x7f586ca80f60  0xa52384caf3    ClientAgent::DNSLookup(void*) + 0x227 (/sources/Vision-0.10.4/src/ParseCmd.cpp:-1)
            Variables:
            arg: 0x105bb53a2b20 {
                *arg: Unavailable
            }
            msg: 0x105bb53a2b20 {
            }
            lookup: 136.243.16.102
            agent: 0x105bb536cc50 {
                fCancelMLPaste: true
                fHistory: 0x105bb5412af0
                fText: 0x105bb532fa80
                fTextScroll: 0x105bb53f4ae0
                fInput: 0x105bb5400f70
                fActiveTheme: 0x105bb522de00
                endl: Invalid Argument
                fTimeStampState: false
                fCanNotify: false
                fScrolling: false
                fIsLogging: true
            }
            resolve {
                fPrivateData: 136.243.16.102
            }
            output {
                fPrivateData: [x] 
            }
            dnsMsg
            addr: 1712386952
            hp: 0 {
                h_name: Invalid Argument
                h_aliases: Bad address
                h_addrtype: Bad address
                h_length: Bad address
                h_addr_list: Bad address
            }

        0x7f586ca80f80  0x589a54e5a7    thread_entry + 0x17 
        00000000    0x7fef2b1f1260  commpage_thread_exit + 0 

        Registers:
              rip:  0x000000589a54f831
              rsp:  0x00007f586ca80ad8
              rbp:  0x00007f586ca80b10
              rax:  0x00000000000000e4
              rbx:  0x000000589a608f14
              rcx:  0x000000589a54f831
              rdx:  0x00007f586ca805ec
              rsi:  0x0000000000000001
              rdi:  0x000000589a608f14
               r8:  0x0000000000000001
               r9:  0x00000000ffffffe5
              r10:  0x000000589a608f14
              r11:  0x0000000000003202
              r12:  0x0000105bb5215000
              r13:  0x0000000000000004
              r14:  0x00007f586ca80e78
              r15:  0x00007f586ca80e28
               cs:  0x002b
               ds:  0x0000
               es:  0x0000
               fs:  0x0000
               gs:  0x0000
               ss:  0x0023
              st0:  0
              st1:  0
              st2:  0
              st3:  0
              st4:  0
              st5:  0
              st6:  0
              st7:  0
              mm0:  {0, 0, 0, 0}
              mm1:  {0, 0, 0, 0}
              mm2:  {0, 0, 0, 0}
              mm3:  {0, 0, 0, 0}
              mm4:  {0, 0, 0, 0}
              mm5:  {0, 0, 0, 0}
              mm6:  {0, 0, 0, 0}
              mm7:  {0, 0, 0, 0}
             ymm0:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm1:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm2:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm3:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm4:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm5:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm6:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm7:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm8:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
             ymm9:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
            ymm10:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
            ymm11:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
            ymm12:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
            ymm13:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
            ymm14:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
            ymm15:  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

Loaded Images:
    ID      Text Base   Text End    Data Base   Data End    Type    Name
    --------------------------------------------------------------------------------
    7102    0x1e43943000    0x1e439c8000    0x1e43bc7000    0x1e43bd4000    lib     /boot/system/lib/libssl.so.1.1
    7090    0x1f23008000    0x1f2316a000    0x1f23369000    0x1f2337d000    lib     /boot/system/lib/libstdc++.so.6.0.25
    7091    0x2872a43000    0x2872a58000    0x2872c58000    0x2872c59000    lib     /boot/system/lib/libgcc_s.so.1
    7087    0x2898129000    0x28982e4000    0x28984e3000    0x28984fe000    lib     /boot/system/lib/libtracker.so
    7086    0x2decbf2000    0x2decced000    0x2deceec000    0x2deceef000    lib     /boot/system/lib/libtextencoding.so
    7104    0x53a32e3000    0x53a32ea000    0x53a34ea000    0x53a34eb000    add-on  /boot/system/add-ons/locale/catalogs/plaintext
    7092    0x589a511000    0x589a61f000    0x589a81e000    0x589a870000    lib     /boot/system/lib/libroot.so
    7088    0x701d0c0000    0x701d100000    0x701d2ff000    0x701d308000    lib     /boot/system/lib/libnetwork.so
    7096    0x9ecdecb000    0x9ecdefb000    0x9ece0fa000    0x9ece12e000    lib     /boot/system/lib/libicutu.so.66.1
    7083    0xa5237be000    0xa5238ac000    0xa523aac000    0xa523ab8000    app     /boot/system/apps/Vision/Vision
    7097    0xadc9855000    0xadc9a1e000    0xadc9c1e000    0xadc9c34000    lib     /boot/system/lib/libicuuc.so.66.1
    7095    0xb332c98000    0xb332ca4000    0xb332ea3000    0xb332ea5000    lib     /boot/system/lib/libicuio.so.66.1
    7089    0xba9eb1b000    0xba9eb82000    0xba9ed81000    0xba9ed86000    lib     /boot/system/lib/libbnetapi.so
    7085    0xc1384c3000    0xc1384d8000    0xc1386d7000    0xc1386d9000    lib     /boot/system/lib/libtranslation.so
    7084    0xd1061c7000    0xd1064e1000    0xd1066e0000    0xd10670e000    lib     /boot/system/lib/libbe.so
    7094    0xf0e10d1000    0xf0e13b9000    0xf0e15b8000    0xf0e15d0000    lib     /boot/system/lib/libicui18n.so.66.1
    7082    0x1156712b000   0x1156714c000   0x1156734b000   0x1156734d000   lib     /boot/system/runtime_loader
    7100    0x18c444b2000   0x18c444b9000   0x18c446b8000   0x18c446b9000   lib     /boot/system/lib/libbsd.so
    7105    0x1b2370e7000   0x1b2370f8000   0x1b2372f8000   0x1b2372f9000   lib     /boot/system/lib/libroot-addon-icu.so
    7101    0x1b79895e000   0x1b798b6d000   0x1b798d6d000   0x1b798d9c000   lib     /boot/system/lib/libcrypto.so.1.1
    7098    0x1b8003df000   0x1b8003fb000   0x1b8005fa000   0x1b8005fb000   lib     /boot/system/lib/libz.so.1.2.11
    7093    0x1c2e1e20000   0x1c2e1e21000   0x1c2e2020000   0x1c2e2021000   lib     /boot/system/lib/libicudata.so.66.1
    7099    0x1cbc36d3000   0x1cbc379f000   0x1cbc399e000   0x1cbc399f000   lib     /boot/system/lib/libzstd.so.1.4.5
    7081    0x7fef2b1f1000  0x7fef2b1f9000  0x00000000  0x00000000  system  commpage

Areas:
    ID      Base        End         Size (KiB)  Protection  Locking         Name
    --------------------------------------------------------------------------------
    27835   0x60000000  0x60001000           4  rw-cS       none            server_memory
    27837   0x68000000  0x68020000         128  rw-cS       none            server_memory
    27818   0x1e43943000    0x1e439c8000           532  r-x         none            libssl.so.1.1_seg0ro
    27819   0x1e43bc7000    0x1e43bd4000            52  rw-         none            libssl.so.1.1_seg1rw
    27788   0x1f23008000    0x1f2316a000          1416  r-x         none            libstdc++.so.6.0.25_seg0ro
    27789   0x1f23369000    0x1f23375000            48  rw-         none            libstdc++.so.6.0.25_seg1rw
    27790   0x1f23375000    0x1f2337d000            32  rw-         none            libstdc++.so.6.0.25_seg2rw
    27791   0x2872a43000    0x2872a58000            84  r-x         none            libgcc_s.so.1_seg0ro
    27792   0x2872c58000    0x2872c59000             4  rw-         none            libgcc_s.so.1_seg1rw
    27780   0x2898129000    0x28982e4000          1772  r-x         none            libtracker.so_seg0ro
    27781   0x28984e3000    0x28984fd000           104  rw-         none            libtracker.so_seg1rw
    27782   0x28984fd000    0x28984fe000             4  rw-         none            libtracker.so_seg2rw
    27778   0x2decbf2000    0x2decced000          1004  r-x         none            libtextencoding.so_seg0ro
    27779   0x2deceec000    0x2deceef000            12  rw-         none            libtextencoding.so_seg1rw
    27770   0x45c2dc1000    0x45c2dd1000            64  rw-         none            rld heap
    27829   0x53a32e3000    0x53a32ea000            28  r-x         none            plaintext_seg0ro
    27830   0x53a34ea000    0x53a34eb000             4  rw-         none            plaintext_seg1rw
    27793   0x589a511000    0x589a61f000          1080  r-x         none            libroot.so_seg0ro
    27794   0x589a81e000    0x589a82c000            56  rw-         none            libroot.so_seg1rw
    27795   0x589a82c000    0x589a870000           272  rw-         none            libroot.so_seg2rw
    27771   0x58ae255000    0x58ae256000             4  rw-cS       none            _rld_debug_
    27820   0x600f242000    0x600f24a000            32  rw-         none            rld heap
    27821   0x69f8fdd000    0x69f8fed000            64  rw-         none            rld heap
    27822   0x700d9dd000    0x700d9ed000            64  rw-         none            rld heap
    27823   0x7019d10000    0x7019d28000            96  rw-         none            rld heap
    27824   0x701a373000    0x701a38b000            96  rw-         none            rld heap
    27826   0x701a99c000    0x701c459000         27380  r--S        none            libicuuc.so.66 mmap area
    27783   0x701d0c0000    0x701d100000           256  r-x         none            libnetwork.so_seg0ro
    27784   0x701d2ff000    0x701d302000            12  rw-         none            libnetwork.so_seg1rw
    27785   0x701d302000    0x701d308000            24  rw-         none            libnetwork.so_seg2rw
    27803   0x9ecdecb000    0x9ecdefb000           192  r-x         none            libicutu.so.66.1_seg0ro
    27804   0x9ece0fa000    0x9ece0fd000            12  rw-         none            libicutu.so.66.1_seg1rw
    27805   0x9ece0fd000    0x9ece12e000           196  rw-         none            libicutu.so.66.1_seg2rw
    27772   0xa5237be000    0xa5238ac000           952  r-x         none            Vision_seg0ro
    27773   0xa523aac000    0xa523ab8000            48  rw-         none            Vision_seg1rw
    27806   0xadc9855000    0xadc9a1e000          1828  r-x         none            libicuuc.so.66.1_seg0ro
    27807   0xadc9c1e000    0xadc9c33000            84  rw-         none            libicuuc.so.66.1_seg1rw
    27808   0xadc9c33000    0xadc9c34000             4  rw-         none            libicuuc.so.66.1_seg2rw
    27801   0xb332c98000    0xb332ca4000            48  r-x         none            libicuio.so.66.1_seg0ro
    27802   0xb332ea3000    0xb332ea5000             8  rw-         none            libicuio.so.66.1_seg1rw
    27786   0xba9eb1b000    0xba9eb82000           412  r-x         none            libbnetapi.so_seg0ro
    27787   0xba9ed81000    0xba9ed86000            20  rw-         none            libbnetapi.so_seg1rw
    27776   0xc1384c3000    0xc1384d8000            84  r-x         none            libtranslation.so_seg0ro
    27777   0xc1386d7000    0xc1386d9000             8  rw-         none            libtranslation.so_seg1rw
    27774   0xd1061c7000    0xd1064e1000          3176  r-x         none            libbe.so_seg0ro
    27775   0xd1066e0000    0xd10670e000           184  rw-         none            libbe.so_seg1rw
    27798   0xf0e10d1000    0xf0e13b9000          2976  r-x         none            libicui18n.so.66.1_seg0ro
    27799   0xf0e15b8000    0xf0e15cf000            92  rw-         none            libicui18n.so.66.1_seg1rw
    27800   0xf0e15cf000    0xf0e15d0000             4  rw-         none            libicui18n.so.66.1_seg2rw
    27768   0x1156712b000   0x1156714c000          132  r-x         none            runtime_loader_seg0ro
    27769   0x1156734b000   0x1156734d000            8  rw-         none            runtime_loader_seg1rw
    27813   0x18c444b2000   0x18c444b9000           28  r-x         none            libbsd.so_seg0ro
    27814   0x18c446b8000   0x18c446b9000            4  rw-         none            libbsd.so_seg1rw
    27852   0x1b2370e7000   0x1b2370f8000           68  r-x         none            libroot-addon-icu.so_seg0ro
    27853   0x1b2372f8000   0x1b2372f9000            4  rw-         none            libroot-addon-icu.so_seg1rw
    27815   0x1b79895e000   0x1b798b6d000         2108  r-x         none            libcrypto.so.1.1_seg0ro
    27816   0x1b798d6d000   0x1b798d99000          176  rw-         none            libcrypto.so.1.1_seg1rw
    27817   0x1b798d99000   0x1b798d9c000           12  rw-         none            libcrypto.so.1.1_seg2rw
    27809   0x1b8003df000   0x1b8003fb000          112  r-x         none            libz.so.1.2.11_seg0ro
    27810   0x1b8005fa000   0x1b8005fb000            4  rw-         none            libz.so.1.2.11_seg1rw
    27796   0x1c2e1e20000   0x1c2e1e21000            4  r-x         none            libicudata.so.66.1_seg0ro
    27797   0x1c2e2020000   0x1c2e2021000            4  rw-         none            libicudata.so.66.1_seg1rw
    27811   0x1cbc36d3000   0x1cbc379f000          816  r-x         none            libzstd.so.1.4.5_seg0ro
    27812   0x1cbc399e000   0x1cbc399f000            4  rw-         none            libzstd.so.1.4.5_seg1rw
    27825   0x105bb5215000  0x105bb5485000        2496  rw-c        none            heap
    27851   0x7f1ab2317000  0x7f1ab235c000         276  rw-s        none            s>peer_reset_thread_5264_stack
    27847   0x7f1f70c80000  0x7f1f70cc5000         276  rw-s        none            s>psycho psycho_killer killer_5
    27845   0x7f2fb1dc8000  0x7f2fb1e0d000         276  rw-s        none            l>stare_girl_5261_stack
    27875   0x7f586ca3d000  0x7f586ca82000         276  rw-s        none            dns_lookup_5275_stack
    27839   0x7f76bc7cd000  0x7f76bc812000         276  rw-s        none            the_spirits_within_5258_stack
    27766   0x7f7d9a17e000  0x7f7d9b17f000       16388  rw-s        none            Vision_5255_stack
    27764   0x7f92e709e000  0x7f92e70a2000          16  rw-k        full            user area
    27843   0x7fdd313b4000  0x7fdd313f9000         276  rw-s        none            w>Vision_5260_stack
    27767   0x7fef2b1f1000  0x7fef2b1f9000          32  r-xSk       full            commpage
    27849   0x7ffdf7165000  0x7ffdf71aa000         276  rw-s        none            l>stare_girl_5263_stack

Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel

Semaphores:
    ID      Count   Last Holder Name
    ------------------------------------------------------------
    8626598     0          1759 Vision
    8641482     0          1759 some BLocker
    8641664     0          1759 some BLocker
    8643783     0          1757 undo
    8644994     0          1253 some BLocker
    8645195     0         -1757 width buffer
    8646212     0          1759 DNS cache
    8646864     0          1759 some BLocker
    8647578     0          1757 PeriodicUpdatePoses
    8647684     0          1757 URLCrunch taglist
    8647776     0          1627 screen list
    8647855     0          1757 LocaleRosterData
    8647878     0          1253 some BLocker
    8647880     0          1759 some BLocker
    8648091     0          1627 some BLocker
    8648101     0          1759 AppServerLink_sLock
    8648108     0          5262 VisionSendSync
    8648183     0          5264 VisionSendSync
    8648303    -1          5261 logSynchLock_sem
    8648317     0          1627 Light Lock
    8648326     0          1787 clipboard
    8648328     0          1759 Catalog
    8648332     0          1757 BLooperList lock
    8648334     0          1757 some BLocker
    8648339  1000         -5260 active theme
    8648379     0          1759 AppLooperPort
    8648394     0          1757 tool tip manager
    8648407     0          1759 some BLocker
    8648431     0          1757 token space
    8648440     0          1759 Catalog
    8648472     0          1757 some BBlockCache lock
    8648539     0          5263 some BLocker
    8648568     0          1757 Light Lock
    8648576     0          1757 BMessageQueue Lock
    8648586    -1          5263 logSynchLock_sem
    8648590     0          1757 some BLocker
    8648601     0          1757 some BLocker
    8648613     0          1759 synchronized hash map
    8648617     0          5261 some BLocker
    8648623     0          1759 Catalog
    8648639     0          1757 synchronized hash map
    8648679     0          5262 BMessageQueue Lock