Repository navigation
Segfault while running JS code #35581
Copy link
Copy link
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.
Description
Activity
reported in #35559 too, though the callstack is different, so let us keep both.
able to reproduce.
A pattern that is observed is, main thread is active while
gcthreads are in the sweeping phase. Not sure if this is valid or not. I guess concurrent marking is valid, but not concurrent sweep?6 Thread 0x7ffff4dc9700 (LWP 64112) "node" 0x0000000000dc1073 in v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::FreeSpaceMayContainInvalidatedSlots, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.198] () 5 Thread 0x7ffff55ca700 (LWP 64111) "node" 0x0000000000dc1079 in v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::FreeSpaceMayContainInvalidatedSlots, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.198] () 4 Thread 0x7ffff5dcb700 (LWP 64110) "node" 0x0000000000dc10f9 in v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::FreeSpaceMayContainInvalidatedSlots, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.198] () * 1 Thread 0x7ffff7fd8780 (LWP 64101) "node" 0x0000000000fed380 in v8::internal::StringsStorage::AddOrDisposeString(char*, int) ()
one of the sweeping thread has this stack:
(gdb) where #0 0x0000000000dc1065 in v8::internal::Sweeper::RawSweep(v8::internal::Page*, v8::internal::Sweeper::FreeListRebuildingMode, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::FreeSpaceMayContainInvalidatedSlots, v8::base::LockGuard<v8::base::Mutex, (v8::base::NullBehavior)0> const&) [clone .constprop.198] () #1 0x0000000000dc2031 in v8::internal::Sweeper::ParallelSweepPage(v8::internal::Page*, v8::internal::AllocationSpace, v8::internal::Sweeper::FreeSpaceMayContainInvalidatedSlots) () #2 0x0000000000dc236b in v8::internal::Sweeper::SweeperTask::RunInternal() () #3 0x0000000000c6a1fb in non-virtual thunk to v8::internal::CancelableTask::Run() () #4 0x0000000000a6fdc5 in node::(anonymous namespace)::PlatformWorkerThread(void*) () #5 0x00007ffff71a3ea5 in start_thread () from /lib64/libpthread.so.0 #6 0x00007ffff6ecc8cd in clone () from /lib64/libc.so.6
- addedduplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.
on Oct 11, 2020 I think closing this as a duplicate of #35559 would be fine.
Reacted by Gireesh Punathilroot cause identified, and found to be same. fix will come by way of v8 changes. #35559 will track this. closing this.
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.
Version: v14.13.0
Platform: Linux inspiron-3493-srinivasa 5.8.13-arch1-1 #1 SMP PREEMPT Thu, 01 Oct 2020 20:40:35 +0000 x86_64 GNU/Linux
What steps will reproduce the bug?
What do you see instead?
Segfault
Additional information
GDB tells that the segfault occurs in this function
Backtrace: