SetCookie gets SEGV

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

SetCookie gets SEGV

Postby lavv17 » Wed May 23, 2018 7:51 am

I'm using separate CefCookieManager for each CefBrowser as I want to have different cookies in different browsers.
I create the manager using CefCookieManager::CreateManager( "", false, nullptr )
It worked fine in 3.3239.1723, but after upgrade to 3.3359.1774 it started to get SEGV when calling cookie_manager->SetCookie.

Here is backtrace as reported by gdb:
#0 0x00007faa547c6bb1 in ParseTokenString() () at ../../buildtools/third_party/libc++/trunk/include/string:1255
#1 0x00007faa547c6bb1 in ParseTokenString() () at ../../buildtools/third_party/libc++/trunk/include/string:1349
#2 0x00007faa547c6bb1 in ParseTokenString() () at ../../buildtools/third_party/libc++/trunk/include/string:861
#3 0x00007faa547c6bb1 in ParseTokenString() () at ../../net/cookies/parsed_cookie.cc:310
#4 0x00007faa547b568d in IsCanonical() () at ../../net/cookies/canonical_cookie.cc:463
#5 0x00007faa547b7bcc in SetCanonicalCookieAsync() () at ../../net/cookies/cookie_monster.cc:416
#6 0x00007faa542b3ddf in SetCookieInternal() () at ../../cef/libcef/browser/cookie_manager_impl.cc:578
#7 0x00007faa542b7f2b in Run() () at ../../base/bind_internal.h:447
#8 0x00007faa542b7f2b in Run() () at ../../base/bind_internal.h:530
#9 0x00007faa542b7f2b in Run() () at ../../base/bind_internal.h:604
#10 0x00007faa542b7f2b in Run() () at ../../base/bind_internal.h:586
#11 0x00007faa542b19dc in GetCookieStore() () at ../../base/callback.h:124
#12 0x00007faa542b19dc in GetCookieStore() () at ../../cef/libcef/browser/cookie_manager_impl.cc:179


Please help.
lavv17
Techie
 
Posts: 23
Joined: Tue May 22, 2018 8:50 am

Re: SetCookie gets SEGV

Postby lavv17 » Wed May 23, 2018 10:02 am

It appears that SEGV is only happens when cookie.domain does not match the domain in the URL which is passed to SetCookie.
lavv17
Techie
 
Posts: 23
Joined: Tue May 22, 2018 8:50 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 67 guests