Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash: free(): invalid pointer #103

Closed
ic-kashey opened this issue Oct 22, 2014 · 3 comments
Closed

crash: free(): invalid pointer #103

ic-kashey opened this issue Oct 22, 2014 · 3 comments

Comments

@ic-kashey
Copy link

Случилось всего один раз. Ничего особенного в этот момент не делал.
commit 43a9898, CentOS7.

...
16:52:16 - TunnelData
16:52:16 - TunnelData
16:52:16 - TunnelData
16:52:16 - TunnelMessage: zero found at 4
16:52:16 - Follow on fragment 1 of message 1766200948 non-last
16:52:16 - Fragment size=996
16:52:16 - TunnelMessage: zero found at 14
16:52:16 - Follow on fragment 2 of message 1766200948 last
16:52:16 - Fragment size=396
16:52:16 - TunnelMessage: handle fragment of 2388 bytes. Msg type 11
16:52:16 - Garlic
16:52:16 - Delivery type local
16:52:16 - Fragment size=308
16:52:16 - TunnelMessage: handle fragment of 308 bytes. Msg type 11
16:52:16 - Garlic
16:52:16 - Delivery type local
16:52:16 - Fragment size=276
16:52:16 - TunnelMessage: handle fragment of 276 bytes. Msg type 11
16:52:16 - Garlic
16:52:16 - TunnelMessage: zero found at 184
16:52:16 - Delivery type local
16:52:16 - Fragment size=820
16:52:16 - TunnelMessage: handle fragment of 820 bytes. Msg type 11
16:52:16 - Garlic
16:52:16 - 1 cloves
16:52:16 - Garlic type destination
16:52:16 - Packet 0 acknowledged
16:52:16 - Received seqn=0
16:52:16 - Process seqn=0, flags=233
16:52:16 - Synchronize
16:52:16 - From identity 3t5Ar2NCTIOId70uzX2bZyJljR0aBogxMEzNyHirB7A=
16:52:16 - Max packet size 1730
16:52:16 - Signature
16:52:16 - 1 cloves
16:52:16 - Garlic type destination
16:52:16 - Received seqn=1
16:52:16 - Process seqn=1, flags=64
16:52:16 - 1 cloves
16:52:16 - Garlic type destination
16:52:16 - Received seqn=2
16:52:16 - Process seqn=2, flags=74
16:52:16 - Signature
16:52:16 - Closed
16:52:16 - Quick Ack sent
16:52:16 - 1 cloves
16:52:16 - Garlic type destination
16:52:16 - Received seqn=6
16:52:16 - Duplicate message 6 received
16:52:16 - Quick Ack sent
16:52:16 - TunnelData
16:52:16 - TunnelMessage: zero found at 168
16:52:16 - Delivery type local
16:52:16 - Fragment size=836
16:52:16 - TunnelMessage: handle fragment of 836 bytes. Msg type 11
16:52:16 - Garlic
16:52:16 - 1 cloves
16:52:16 - Garlic type destination
16:52:16 - Received seqn=7
16:52:16 - Duplicate message 7 received
16:52:16 - Quick Ack sent
16:52:17 - Quick Ack sent
16:52:17 - TunnelData
16:52:17 - TunnelMessage: zero found at 56
16:52:17 - Delivery type local
16:52:17 - Fragment size=948
16:52:17 - TunnelMessage: handle fragment of 948 bytes. Msg type 11
16:52:17 - Garlic
16:52:17 - 1 cloves
16:52:17 - Garlic type destination
16:52:17 - Packet 0 acknowledged
16:52:17 - Received seqn=0
16:52:17 - Process seqn=0, flags=233
16:52:17 - Synchronize
16:52:17 - From identity 3t5Ar2NCTIOId70uzX2bZyJljR0aBogxMEzNyHirB7A=
16:52:17 - Max packet size 1730
16:52:17 - Signature
16:52:17 - FIN sent
*** Error in `./i2pd': free(): invalid pointer: 0x00007f9efc3ef060 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7d1ad)[0x7f9f29b551ad]
./i2pd(_ZN3i2p6stream6Stream18ConcatenatePacketsEPhm+0xd2)[0x4ed732]
./i2pd(ZN3i2p6stream6Stream18HandleReceiveTimerIN5boost4asio17mutable_buffers_1ENS3_3_bi6bind_tIvNS3_4_mfi3mf2IvNS_4util14HTTPConnectionERKNS3_6system10error_codeEmEENS6_5list3INS6_5valueIPSB_EEPFNS3_3argILi1EEEvEPFNSL_ILi2EEEvEEEEEEEvSF_RKT_T0+0x32)[0x4a4312]
./i2pd(_ZN5boost4asio6detail12wait_handlerIZN3i2p6stream6Stream12AsyncReceiveINS0_17mutable_buffers_1ENS_3_bi6bind_tIvNS_4_mfi3mf2IvNS3_4util14HTTPConnectionERKNS_6system10error_codeEmEENS8_5list3INS8_5valueIPSD_EEPFNS_3argILi1EEEvEPFNSN_ILi2EEEvEEEEEEEvRKT_T0_iEUlSH_E0_E11do_completeEPNS1_15task_io_serviceEPNS1_25task_io_service_operationESH_m+0x131)[0x4a4621]
./i2pd(_ZN5boost4asio6detail15task_io_service3runERNS_6system10error_codeE+0x314)[0x4a2624]
./i2pd(_ZN3i2p6client17ClientDestination3RunEv+0x2e)[0x4f13fe]
/lib64/libstdc++.so.6(+0xb4da0)[0x7f9f2a465da0]
/lib64/libpthread.so.0(+0x7df3)[0x7f9f2a6bfdf3]
/lib64/libc.so.6(clone+0x6d)[0x7f9f29bce01d]
======= Memory map: ========
00400000-00562000 r-xp 00000000 fd:00 35072609 /root/build/i2pd/build/i2pd
00761000-00762000 r--p 00161000 fd:00 35072609 /root/build/i2pd/build/i2pd
00762000-00763000 rw-p 00162000 fd:00 35072609 /root/build/i2pd/build/i2pd
00763000-00769000 rw-p 00000000 00:00 0
01f6c000-020bd000 rw-p 00000000 00:00 0 [heap]
7f9ef8000000-7f9ef82a3000 rw-p 00000000 00:00 0
7f9ef82a3000-7f9efc000000 ---p 00000000 00:00 0
7f9efc000000-7f9efc439000 rw-p 00000000 00:00 0
7f9efc439000-7f9f00000000 ---p 00000000 00:00 0
7f9f00000000-7f9f00475000 rw-p 00000000 00:00 0
7f9f00475000-7f9f04000000 ---p 00000000 00:00 0
7f9f04000000-7f9f0408f000 rw-p 00000000 00:00 0
7f9f0408f000-7f9f08000000 ---p 00000000 00:00 0
7f9f08000000-7f9f08021000 rw-p 00000000 00:00 0
7f9f08021000-7f9f0c000000 ---p 00000000 00:00 0
7f9f0c000000-7f9f0c065000 rw-p 00000000 00:00 0
7f9f0c065000-7f9f10000000 ---p 00000000 00:00 0
7f9f10000000-7f9f10021000 rw-p 00000000 00:00 0
7f9f10021000-7f9f14000000 ---p 00000000 00:00 0
7f9f17ff8000-7f9f17ff9000 ---p 00000000 00:00 0
7f9f17ff9000-7f9f187f9000 rw-p 00000000 00:00 0 [stack:25117]
7f9f187f9000-7f9f187fa000 ---p 00000000 00:00 0
7f9f187fa000-7f9f18ffa000 rw-p 00000000 00:00 0 [stack:25116]
7f9f18ffa000-7f9f18ffb000 ---p 00000000 00:00 0
7f9f18ffb000-7f9f197fb000 rw-p 00000000 00:00 0 [stack:25115]
7f9f197fb000-7f9f197fc000 ---p 00000000 00:00 0
7f9f197fc000-7f9f19ffc000 rw-p 00000000 00:00 0 [stack:25114]
7f9f19ffc000-7f9f19ffd000 ---p 00000000 00:00 0
7f9f19ffd000-7f9f1a7fd000 rw-p 00000000 00:00 0 [stack:25113]
7f9f1a7fd000-7f9f1a7fe000 ---p 00000000 00:00 0
7f9f1a7fe000-7f9f1affe000 rw-p 00000000 00:00 0 [stack:25112]
7f9f1affe000-7f9f1afff000 ---p 00000000 00:00 0
7f9f1afff000-7f9f1b7ff000 rw-p 00000000 00:00 0 [stack:25111]
7f9f1b7ff000-7f9f1b800000 ---p 00000000 00:00 0
7f9f1b800000-7f9f1c000000 rw-p 00000000 00:00 0 [stack:25110]
7f9f1c000000-7f9f1c021000 rw-p 00000000 00:00 0
7f9f1c021000-7f9f20000000 ---p 00000000 00:00 0
7f9f20458000-7f9f20459000 ---p 00000000 00:00 0
7f9f20459000-7f9f20c59000 rw-p 00000000 00:00 0 [stack:25109]
7f9f20c59000-7f9f20c5a000 ---p 00000000 00:00 0
7f9f20c5a000-7f9f2145a000 rw-p 00000000 00:00 0 [stack:25108]
7f9f2145a000-7f9f27981000 r--p 00000000 fd:00 18178617 /usr/lib/locale/locale-archive
7f9f27981000-7f9f27984000 r-xp 00000000 fd:00 33707432 /usr/lib64/libdl-2.17.so
7f9f27984000-7f9f27b83000 ---p 00003000 fd:00 33707432 /usr/lib64/libdl-2.17.so
7f9f27b83000-7f9f27b84000 r--p 00002000 fd:00 33707432 /usr/lib64/libdl-2.17.so
7f9f27b84000-7f9f27b85000 rw-p 00003000 fd:00 33707432 /usr/lib64/libdl-2.17.so
7f9f27b85000-7f9f28f58000 r-xp 00000000 fd:00 33849972 /usr/lib64/libicudata.so.50.1.2
7f9f28f58000-7f9f29157000 ---p 013d3000 fd:00 33849972 /usr/lib64/libicudata.so.50.1.2
7f9f29157000-7f9f29158000 r--p 013d2000 fd:00 33849972 /usr/lib64/libicudata.so.50.1.2
7f9f29158000-7f9f29159000 rw-p 013d3000 fd:00 33849972 /usr/lib64/libicudata.so.50.1.2
7f9f29159000-7f9f29348000 r-xp 00000000 fd:00 33849974 /usr/lib64/libicui18n.so.50.1.2
7f9f29348000-7f9f29548000 ---p 001ef000 fd:00 33849974 /usr/lib64/libicui18n.so.50.1.2
7f9f29548000-7f9f29554000 r--p 001ef000 fd:00 33849974 /usr/lib64/libicui18n.so.50.1.2
7f9f29554000-7f9f29556000 rw-p 001fb000 fd:00 33849974 /usr/lib64/libicui18n.so.50.1.2
7f9f29556000-7f9f29557000 rw-p 00000000 00:00 0
7f9f29557000-7f9f296bb000 r-xp 00000000 fd:00 33667744 /usr/lib64/libicuuc.so.50.1.2
7f9f296bb000-7f9f298bb000 ---p 00164000 fd:00 33667744 /usr/lib64/libicuuc.so.50.1.2
7f9f298bb000-7f9f298cb000 r--p 00164000 fd:00 33667744 /usr/lib64/libicuuc.so.50.1.2
7f9f298cb000-7f9f298cc000 rw-p 00174000 fd:00 33667744 /usr/lib64/libicuuc.so.50.1.2
7f9f298cc000-7f9f298d0000 rw-p 00000000 00:00 0
7f9f298d0000-7f9f298d7000 r-xp 00000000 fd:00 33707488 /usr/lib64/librt-2.17.so
7f9f298d7000-7f9f29ad6000 ---p 00007000 fd:00 33707488 /usr/lib64/librt-2.17.so
7f9f29ad6000-7f9f29ad7000 r--p 00006000 fd:00 33707488 /usr/lib64/librt-2.17.so
7f9f29ad7000-7f9f29ad8000 rw-p 00007000 fd:00 33707488 /usr/lib64/librt-2.17.so
7f9f29ad8000-7f9f29c8e000 r-xp 00000000 fd:00 33623665 /usr/lib64/libc-2.17.so
7f9f29c8e000-7f9f29e8e000 ---p 001b6000 fd:00 33623665 /usr/lib64/libc-2.17.so
7f9f29e8e000-7f9f29e92000 r--p 001b6000 fd:00 33623665 /usr/lib64/libc-2.17.so
7f9f29e92000-7f9f29e94000 rw-p 001ba000 fd:00 33623665 /usr/lib64/libc-2.17.so
7f9f29e94000-7f9f29e99000 rw-p 00000000 00:00 0
7f9f29e99000-7f9f29eae000 r-xp 00000000 fd:00 34736884 /usr/lib64/libgcc_s-4.8.2-20140120.so.1Aborted

@orignal
Copy link
Contributor

orignal commented Oct 22, 2014

Обращались к 3t5Ar2NCTIOId70uzX2bZyJljR0aBogxMEzNyHirB7A= каким образом?
Веб, тоннель, SAM?

@ic-kashey
Copy link
Author

Точно не SAM (это было через 10 минут, как первый раз собрал и запустил), через WEB-интерфейс, который на порту :7070, посмотрел несколько случайных сайтов, на одном из них упало. Потом я на HTTP proxy перешел, больше не падало.

@orignal
Copy link
Contributor

orignal commented Oct 22, 2014

Спасибо, понял. Там проблема что два разных треда. Для SAM-а я это починил, а вот для HTTP упустил этот момент из виду.

@orignal orignal closed this as completed Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants