I was thinking that maybe this is an issue with how my local builds are setting use_allocator or use_allocator_shim but I am using the stock build settings for my local builds. When we analyze the assembly for the GlibcGetSizeEstimate method between my build and the Spotify build, they are indeed different. I'm not sure what is going on.
To repro in CefSimple I just added these lines to cefsimple_linux.cc
CefString(&settings.cache_path) = CefString("<some valid path on disk>");
CefString(&settings.root_cache_path) = CefString("<some valid path on disk>");
Any insight would be greatly appreciated. If anyone else can repro, I'm happy to file a bug.
Thanks,
John
Call Stack
- Code: Select all
#0 0x00007faa5cb66a94 in _ZN12_GLOBAL__N_120GlibcGetSizeEstimateEPKN4base9allocator17AllocatorDispatchEPvS5_$bd8608a96952500691d600ccbd08bddd.cfi () at ../../base/allocator/allocator_shim_default_dispatch_to_glibc.cc:67
#1 0x00007faa5e0cb308 in sqlite3MallocSize () at ../../third_party/sqlite/amalgamation/sqlite3.c:26852
#2 0x00007faa5e0cb308 in mallocWithAlarm () at ../../third_party/sqlite/amalgamation/sqlite3.c:26786
#3 0x00007faa5e0cb308 in sqlite3Malloc () at ../../third_party/sqlite/amalgamation/sqlite3.c:26808
#4 0x00007faa5e188cf2 in sqlite3MallocZero () at ../../third_party/sqlite/amalgamation/sqlite3.c:27013
#5 0x00007faa5e188cf2 in pthreadMutexAlloc () at ../../third_party/sqlite/amalgamation/sqlite3.c:25650
#6 0x00007faa5e0dbe04 in sqlite3MutexAlloc () at ../../third_party/sqlite/amalgamation/sqlite3.c:25193
#7 0x00007faa5e0dbe04 in chrome_sqlite3_initialize () at ../../third_party/sqlite/amalgamation/sqlite3.c:23822
#8 0x00007faa5e0ba5c9 in EnsureSqliteInitialized() () at ../../sql/initialization.cc:55
#9 0x00007faa5e0b3b69 in OpenInternal() () at ../../sql/database.cc:1371
#10 0x00007faa5e0b3a4a in Open() () at ../../sql/database.cc:270
#11 0x00007faa5e845b01 in InitializeDatabase() () at ../../net/extras/sqlite/sqlite_persistent_store_backend_base.cc:99
#12 0x00007faa5e83d767 in LoadAndNotifyInBackground() () at ../../net/extras/sqlite/sqlite_persistent_cookie_store.cc:637
#13 0x00007faa5e844077 in Invoke<void (net::SQLitePersistentCookieStore::Backend::*)(base::OnceCallback<void (std::__1::vector<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> >, std::__1::allocator<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> > > >)>, const base::Time &), scoped_refptr<net::SQLitePersistentCookieStore::Backend>, base::OnceCallback<void (std::__1::vector<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> >, std::__1::allocator<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> > > >)>, base::Time> ()
at ../../base/bind_internal.h:499
#14 0x00007faa5e844077 in MakeItSo<void (net::SQLitePersistentCookieStore::Backend::*)(base::OnceCallback<void (std::__1::vector<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> >, std::__1::allocator<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> > > >)>, const base::Time &), scoped_refptr<net::SQLitePersistentCookieStore::Backend>, base::OnceCallback<void (std::__1::vector<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> >, std::__1::allocator<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> > > >)>, base::Time> ()
at ../../base/bind_internal.h:599
#15 0x00007faa5e844077 in RunImpl<void (net::SQLitePersistentCookieStore::Backend::*)(base::OnceCallback<void (std::__1::vector<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> >, std::__1::allocator<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> > > >)>, const base::Time &), std::__1::tuple<scoped_refptr<net::SQLitePersistentCookieStore::Backend>, base::OnceCallback<void (std::__1::vector<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> >, std::__1::allocator<std::__1::unique_ptr<net::CanonicalCookie, std::__1::default_delete<net::CanonicalCookie> > > >)>, base::Time>, 0, 1, 2> () at ../../base/bind_internal.h:672
#16 0x00007faa5e844077 in RunOnce() () at ../../base/bind_internal.h:641
#17 0x00007faa5cacd8a8 in Run () at ../../base/callback.h:98
#18 0x00007faa5cacd8a8 in RunTask() () at ../../base/task/common/task_annotator.cc:142
#19 0x00007faa5cb00182 in base::internal::TaskTracker::RunBlockShutdown(base::internal::Task*) ()
at ../../base/task/thread_pool/task_tracker.cc:762
#20 0x00007faa5caff966 in RunTaskWithShutdownBehavior () at ../../base/task/thread_pool/task_tracker.cc:777
#21 0x00007faa5caff966 in RunOrSkipTask() () at ../../base/task/thread_pool/task_tracker.cc:615
#22 0x00007faa5cb65143 in RunOrSkipTask() () at ../../base/task/thread_pool/task_tracker_posix.cc:24
#23 0x00007faa5cafeee9 in RunAndPopNextTask() () at ../../base/task/thread_pool/task_tracker.cc:473
#24 0x00007faa5cb0bc4a in RunWorker() () at ../../base/task/thread_pool/worker_thread.cc:322
#25 0x00007faa5cb0b9d4 in base::internal::WorkerThread::RunPooledWorker() () at ../../base/task/thread_pool/worker_thread.cc:223
#26 0x00007faa5cb65ade in ThreadFunc() () at ../../base/threading/platform_thread_posix.cc:81
#27 0x00007faa56b22c73 in start_thread (arg=<optimized out>) at pthread_create.c:486
#28 0x00007faa56854def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95