login about faq

Hi, I'm developing Android mail client using the Chilkat libraries.

I'm encountering in a certain issue pretty much - crash (seg fault) from native Chilkat library.

I'm wondering if this could be due to opening 2 imap connections parallelly?

If so, is there a way to open 2 connections at the same time? (i.e for downloading mails for several mailboxes)

Attached are 2 crash logs from the logcat.

Thanks, Yuval.

 
07-22 10:05:28.643: A/libc(12088): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 12686 (Thread-4171)
07-22 10:05:28.748: I/DEBUG(12083):                
07-22 10:05:28.748: I/DEBUG(12083): Build fingerprint: 'google/mantaray/manta:4.2.2/JDQ39/573038:user/release-keys'
07-22 10:05:28.748: I/DEBUG(12083): Revision: '8'
07-22 10:05:28.748: I/DEBUG(12083): pid: 12088, tid: 12686, name: Thread-4171  >>> com.XXX.XXX <<<
07-22 10:05:28.748: I/DEBUG(12083): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
07-22 10:05:28.878: I/DEBUG(12083):     r0 75f0aa18  r1 7b01736c  r2 00000078  r3 00000000
07-22 10:05:28.878: I/DEBUG(12083):     r4 75f0aa18  r5 00000095  r6 7b01736c  r7 7b01736c
07-22 10:05:28.878: I/DEBUG(12083):     r8 75f0aa18  r9 00000000  sl 00000000  fp 40091228
07-22 10:05:28.878: I/DEBUG(12083):     ip 00004000  sp 7b017348  lr 7866ffed  pc 7866ec3a  cpsr 00000030
07-22 10:05:28.878: I/DEBUG(12083):     d0  7469f18079ddddb0  d1  74ea69d873f3d8bc
07-22 10:05:28.878: I/DEBUG(12083):     d2  32312b7365636e0f  d3  6134342d38393274
07-22 10:05:28.878: I/DEBUG(12083):     d4  7a2e6c6179652d32  d5  616d673d6c657665
07-22 10:05:28.878: I/DEBUG(12083):     d6  65406d6f632e6c69  d7  6e69702e6c69616d
07-22 10:05:28.878: I/DEBUG(12083):     d8  3f8000003f800000  d9  4520000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d10 402a000041200000  d11 0000000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d12 4000000000000000  d13 3f00000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d14 0000000000000000  d15 0000000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d16 415863c020000000  d17 3fe0000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d18 0000000000000340  d19 0000000000000007
07-22 10:05:28.878: I/DEBUG(12083):     d20 0000000000000000  d21 0000000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d22 0000000000000000  d23 0000000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d24 0000000000000001  d25 0000000000000340
07-22 10:05:28.878: I/DEBUG(12083):     d26 0000000000000000  d27 c090840000000000
07-22 10:05:28.878: I/DEBUG(12083):     d28 0000000000000005  d29 3ff0000000000000
07-22 10:05:28.878: I/DEBUG(12083):     d30 3ff0000000000000  d31 0000000000000340
07-22 10:05:28.878: I/DEBUG(12083):     scr 80000095
07-22 10:05:28.878: I/DEBUG(12083): backtrace:
07-22 10:05:28.878: I/DEBUG(12083):     #00  pc 003bec3a  /data/app-lib/com.XXX.XXX-2/libchilkat.so (StringBuffer::appendN(char const, int)+17)
07-22 10:05:28.878: I/DEBUG(12083):     #01  pc 003bffe9  /data/app-lib/com.XXX.XXX-2/libchilkat.so (StringBuffer::split2(ExtPtrArray&, char const, bool, bool) const+300)
07-22 10:05:28.878: I/DEBUG(12083): stack:
07-22 10:05:28.878: I/DEBUG(12083):          7b017308  c0000000
07-22 10:05:28.878: I/DEBUG(12083): 7b01730c 7b0174f8 [stack:12686] 07-22 10:05:28.878: I/DEBUG(12083): 7b017310 7428d2e0
07-22 10:05:28.878: I/DEBUG(12083): 7b017314 00000000
07-22 10:05:28.878: I/DEBUG(12083): 7b017318 7b01736c [stack:12686] 07-22 10:05:28.878: I/DEBUG(12083): 7b01731c 40057813 /system/lib/libc.so (dlfree+34) 07-22 10:05:28.878: I/DEBUG(12083): 7b017320 7b0174f8 [stack:12686] 07-22 10:05:28.878: I/DEBUG(12083): 7b017324 7428d2e0
07-22 10:05:28.878: I/DEBUG(12083): 7b017328 00000000
07-22 10:05:28.878: I/DEBUG(12083): 7b01732c 7b01736c [stack:12686] 07-22 10:05:28.878: I/DEBUG(12083): 7b017330 7b0174f8 [stack:12686] 07-22 10:05:28.878: I/DEBUG(12083): 7b017334 40052f15 /system/lib/libc.so (free+12) 07-22 10:05:28.878: I/DEBUG(12083): 7b017338 fffffcb4
07-22 10:05:28.878: I/DEBUG(12083): 7b01733c 787c6e20 /data/app-lib/comXXX.XXX-2/libchilkat.so 07-22 10:05:28.878: I/DEBUG(12083): 7b017340 df0027ad
07-22 10:05:28.883: I/DEBUG(12083): 7b017344 00000000
07-22 10:05:28.883: I/DEBUG(12083): #00 7b017348 0000000a
07-22 10:05:28.883: I/DEBUG(12083): 7b01734c 787b3834 /data/app-lib/com.XXX.XXX-2/libchilkat.so 07-22 10:05:28.883: I/DEBUG(12083): 7b017350 78d67ddc
07-22 10:05:28.883: I/DEBUG(12083): 7b017354 00000000
07-22 10:05:28.883: I/DEBUG(12083): 7b017358 7b01736c [stack:12686] 07-22 10:05:28.883: I/DEBUG(12083): 7b01735c 7866ffed /data/app-lib/com.XXX.XXX-2/libchilkat.so (StringBuffer::split2(ExtPtrArray&, char const*, bool, bool) const+304) 07-22 10:05:28.883: I/DEBUG(12083): 7b017360 00000000
07-22 10:05:28.883: I/DEBUG(12083): 7b017364 7b0174f8 [stack:12686] 07-22 10:05:28.883: I/DEBUG(12083): 7b017368 00000001
07-22 10:05:28.883: I/DEBUG(12083): 7b01736c 65636552 /dev/ashmem/dalvik-mark-stack (deleted) 07-22 10:05:28.883: I/DEBUG(12083): 7b017370 64657669 /dev/ashmem/dalvik-mark-stack (deleted) 07-22 10:05:28.883: I/DEBUG(12083): 7b017374 7266203a /data/dalvik-cache/data@app@com.XXX.XXX-2.apk@classes.dex 07-22 10:05:28.883: I/DEBUG(12083): 7b017378 6f206d6f /system/usr/icu/icudt48l.dat 07-22 10:05:28.883: I/DEBUG(12083): 7b01737c 6d652e33 /dev/ashmem/dalvik-LinearAlloc (deleted) 07-22 10:05:28.883: I/DEBUG(12083): 7b017380 2e6c6961
07-22 10:05:28.883: I/DEBUG(12083): 7b017384 746e6970 /system/fonts/NanumGothic.ttf 07-22 10:05:28.883: I/DEBUG(12083): memory near r0: 07-22 10:05:28.883: I/DEBUG(12083): 75f0a9f8 00000000 00000000 00000000 00000000
07-22 10:05:28.883: I/DEBUG(12083): 75f0aa08 00000000 00000000 00000001 000000db

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

07-22 09:54:13.468: A/libc(11639): Fatal signal 11 (SIGSEGV) at 0x00000007 (code=1), thread 12041 (Thread-3895) 07-22 09:54:13.573: I/DEBUG(18037): 07-22 09:54:13.573: I/DEBUG(18037): Build fingerprint: 'google/mantaray/manta:4.2.2/JDQ39/573038:user/release-keys' 07-22 09:54:13.573: I/DEBUG(18037): Revision: '8' 07-22 09:54:13.573: I/DEBUG(18037): pid: 11639, tid: 12041, name: Thread-3895 >>> com.XXX.XXX <<< 07-22 09:54:13.573: I/DEBUG(18037): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000007 07-22 09:54:13.708: I/DEBUG(18037): r0 00000007 r1 00000000 r2 00000001 r3 00000000 07-22 09:54:13.708: I/DEBUG(18037): r4 7e58c800 r5 7e58c8b0 r6 00000000 r7 77162798 07-22 09:54:13.708: I/DEBUG(18037): r8 00000000 r9 7e58c8b0 sl 00000136 fp 00000001 07-22 09:54:13.708: I/DEBUG(18037): ip 00004000 sp 7e58c7b8 lr 78623c2d pc 786745ac cpsr 40000030 07-22 09:54:13.708: I/DEBUG(18037): d0 77f96b20778124d8 d1 74c9066877664f00 07-22 09:54:13.708: I/DEBUG(18037): d2 69643c0a0d0a0d80 d3 6c223d7269642077 07-22 09:54:13.708: I/DEBUG(18037): d4 6f7369223d746573 d5 22312d393538382d 07-22 09:54:13.708: I/DEBUG(18037): d6 6e65746e6f430a0d d7 66736e6172542d74 07-22 09:54:13.708: I/DEBUG(18037): d8 3f8000003f800000 d9 4520000043220000 07-22 09:54:13.708: I/DEBUG(18037): d10 3f00000044bc0000 d11 0000000000000000 07-22 09:54:13.708: I/DEBUG(18037): d12 0000000000000000 d13 0000000000000000 07-22 09:54:13.708: I/DEBUG(18037): d14 0000000000000000 d15 0000000000000000 07-22 09:54:13.708: I/DEBUG(18037): d16 4170a4f008000000 d17 3fe0000000000000 07-22 09:54:13.708: I/DEBUG(18037): d18 000000000000001d d19 3ff0000000000000 07-22 09:54:13.708: I/DEBUG(18037): d20 0000000000000000 d21 0000000000000000 07-22 09:54:13.708: I/DEBUG(18037): d22 0000000000000000 d23 0000000000000000 07-22 09:54:13.708: I/DEBUG(18037): d24 3ff0000000000000 d25 3ff0000000000000 07-22 09:54:13.708: I/DEBUG(18037): d26 0000000000000000 d27 0000000000000005 07-22 09:54:13.708: I/DEBUG(18037): d28 0000000000000005 d29 3ff0000000000000 07-22 09:54:13.708: I/DEBUG(18037): d30 3ff0000000000000 d31 0000000000000001 07-22 09:54:13.708: I/DEBUG(18037): scr 80000091 07-22 09:54:13.713: I/DEBUG(18037): backtrace: 07-22 09:54:13.713: I/DEBUG(18037): #00 pc 003bf5ac /data/app-lib/com.XXX.XXX-2/libchilkat.so (StringBuffer::StringBuffer()+39) 07-22 09:54:13.713: I/DEBUG(18037): #01 pc 0036ec29 /data/app-lib/com.XXX.XXX-2/libchilkat.so (ObjCache::newSbuf()+84) 07-22 09:54:13.713: I/DEBUG(18037): stack: 07-22 09:54:13.713: I/DEBUG(18037): 7e58c778 fffffcb4
07-22 09:54:13.713: I/DEBUG(18037): 7e58c77c 787cbe20 /data/app-lib/com.XXX.XXX-2/libchilkat.so 07-22 09:54:13.713: I/DEBUG(18037): 7e58c780 77fa2d28
07-22 09:54:13.713: I/DEBUG(18037): 7e58c784 787da664
07-22 09:54:13.713: I/DEBUG(18037): 7e58c788 00000001
07-22 09:54:13.713: I/DEBUG(18037): 7e58c78c 78623621 /data/app-lib/com.XXX.XXX-2/libchilkat.so (ObjCache::recycleDbuf(unsigned char)+96) 07-22 09:54:13.713: I/DEBUG(18037): 7e58c790 fffffcb4
07-22 09:54:13.713: I/DEBUG(18037): 7e58c794 787cbe20 /data/app-lib/com.XXX.XXX-2/libchilkat.so 07-22 09:54:13.713: I/DEBUG(18037): 7e58c798 787da678
07-22 09:54:13.713: I/DEBUG(18037): 7e58c79c 787da664
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7a0 00000007
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7a4 78623c2d /data/app-lib/com.XXX.XXX-2/libchilkat.so (ObjCache::newSbuf()+88) 07-22 09:54:13.713: I/DEBUG(18037): 7e58c7a8 7e58c800 [stack:12041] 07-22 09:54:13.713: I/DEBUG(18037): 7e58c7ac 7e58c8b0 [stack:12041] 07-22 09:54:13.713: I/DEBUG(18037): 7e58c7b0 df0027ad
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7b4 00000000
07-22 09:54:13.713: I/DEBUG(18037): #00 7e58c7b8 76cefbf8
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7bc 78620e9b /data/app-lib/com.XXX.XXX-2/libchilkat.so (MimeMessage2::loadMimeComplete2(char const
, int, bool, LogBase&, bool, bool)+54) 07-22 09:54:13.713: I/DEBUG(18037): 7e58c7c0 7e58c954 [stack:12041] 07-22 09:54:13.713: I/DEBUG(18037): 7e58c7c4 00000000
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7c8 00000000
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7cc ea82fdd3
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7d0 00000000
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7d4 3f800000
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7d8 787ca6d0 /data/app-lib/com.XXX.XXX-2/libchilkat.so 07-22 09:54:13.713: I/DEBUG(18037): 7e58c7dc 00000001
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7e0 00056fc7
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7e4 00000000
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7e8 76001eaa
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7ec 79ad2440
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7f0 000000ca
07-22 09:54:13.713: I/DEBUG(18037): 7e58c7f4 00000000
07-22 09:54:13.713: I/DEBUG(18037): memory near r4: 07-22 09:54:13.713: I/DEBUG(18037): 7e58c7e0 00056fc7 00000000 76001eaa 79ad2440
...

And it goes on...

asked Jul 22 '13 at 03:02

Givi's gravatar image

Givi
1112

edited Jul 22 '13 at 03:36

DO not have last error string since the process kills itself.

More details: using CkImap, unlocked with license of course.

Downloading mails via CkEmailBundle.

Gmail accounts.

My guess is that once a connection is active, then when opening another connection (new CkImap object) somehting goes wrong.

Can someone verify this?

Thanks.

(Jul 23 '13 at 17:19) Givi

There should be no issue with having several instances of an Chilkat object, including CkImap. Use the DebugLogFilePath property in conjunction with VerboseLogging to get a log file that you can post. See the online reference documentation for details about DebugLogFilePath, which is a property common to all Chilkat classes.

(Jul 23 '13 at 17:33) chilkat ♦♦

Hi, Here's link to DebugLogFile happen when I got the native crash: https://www.dropbox.com/s/f6jrmsw2e7pderm/ChilkatDebug%20%281%29.txt

Doesn't look very helpful, though.

As before, that's the logcat backtrace: /data/app-lib/com.XXX.XXX-2/libchilkat.so (StringBuffer::appendN(char const, int)+17) /data/app-lib/com.XXX.XXX-2/libchilkat.so (StringBuffer::split2(ExtPtrArray&, char const, bool, bool) const+300)

Thanks, Yuval.

(Jul 24 '13 at 04:18) Givi

You're using an old version of the Chilkat library. Download and use the very latest version from http://www.chilkatsoft.com/chilkatAndroid.asp

I suspect the problem will already be fixed.

link

answered Jul 24 '13 at 08:52

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

For now it seems to be working. I'll update is I'll get this issue again.

10x

(Jul 24 '13 at 14:06) Givi
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×45
×14
×4

Asked: Jul 22 '13 at 03:02

Seen: 3,744 times

Last updated: Jul 24 '13 at 14:06

powered by OSQA