https://bugs.kde.org/show_bug.cgi?id=432381

            Bug ID: 432381
           Summary: drd: drd_main.c:378 (drd_stop_using_mem): Assertion
                    'a1 <= a2' failed
           Product: valgrind
           Version: 3.15 SVN
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: drd
          Assignee: bart.vanassche+...@gmail.com
          Reporter: dmanti...@yandex.ru
  Target Milestone: ---

Created attachment 135351
  --> https://bugs.kde.org/attachment.cgi?id=135351&action=edit
Sample C code to reproduce

This is hard. Each thread has its own trivial swapcontext()-based "scheduler",
and all stacks are annotated with VALGRIND_STACK_REGISTER() (am I misusing it?)

The whole thing is loosely based on:

1)
https://chromium.googlesource.com/native_client/nacl-glibc/+/glibc-2.9/manual/examples/swapcontext.c
2) https://github.com/gluster/glusterfs/blob/devel/libglusterfs/src/syncop.c

To reproduce:

$ gcc -D_GNU_SOURCE -pthread -O2 -g t-swapcontext.c -o t-swapcontext

$ valgrind -v --tool=drd ./t-swapcontext
==22357== drd, a thread error detector
==22357== Copyright (C) 2006-2020, and GNU GPL'd, by Bart Van Assche.
==22357== Using Valgrind-3.17.0.GIT-a1fa6696f5-20210127 and LibVEX; rerun with
-h for copyright info
==22357== Command: ./t-swapcontext
==22357== 
--22357-- Valgrind options:
--22357--    -v
--22357--    --tool=drd
--22357-- Contents of /proc/version:
--22357--   Linux version 5.10.10-200.fc33.x86_64
(mockbu...@bkernel02.iad2.fedoraproject.org) (gcc (GCC) 10.2.1 20201125 (Red
Hat 10.2.1-9), GNU ld version 2.35-18.fc33) #1 SMP Sun Jan 24 19:58:54 UTC 2021
--22357-- 
--22357-- Arch and hwcaps: AMD64, LittleEndian,
amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand-rdseed
--22357-- Page sizes: currently 4096, max supported 4096
--22357-- Valgrind library directory: /usr/lib64/valgrind
--22357-- Reading syms from /home/antipov/valgrind/t-swapcontext
--22357-- Reading syms from /usr/lib64/ld-2.32.so
--22357--   Considering
/usr/lib/debug/.build-id/13/78c0c43363a46edd1d3b5f0e480031a88a4bfb.debug ..
--22357--   .. build-id is valid
--22357-- Reading syms from /usr/lib64/valgrind/drd-amd64-linux
--22357--    object doesn't have a dynamic symbol table
--22357-- Scheduler: using generic scheduler lock implementation.
--22357-- Reading suppressions file: /usr/lib64/valgrind/default.supp
==22357== embedded gdbserver: reading from
/tmp/vgdb-pipe-from-vgdb-to-22357-by-antipov-on-linux
==22357== embedded gdbserver: writing to  
/tmp/vgdb-pipe-to-vgdb-from-22357-by-antipov-on-linux
==22357== embedded gdbserver: shared mem  
/tmp/vgdb-pipe-shared-mem-vgdb-22357-by-antipov-on-linux
==22357== 
==22357== TO CONTROL THIS PROCESS USING vgdb (which you probably
==22357== don't want to do, unless you know exactly what you're doing,
==22357== or are doing some strange experiment):
==22357==   /usr/lib64/valgrind/../../bin/vgdb --pid=22357 ...command...
==22357== 
==22357== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==22357==   /path/to/gdb ./t-swapcontext
==22357== and then give GDB the following command
==22357==   target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=22357
==22357== --pid is optional if only one valgrind process is running
==22357== 
--22357-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so
--22357-- Reading syms from /usr/lib64/valgrind/vgpreload_drd-amd64-linux.so
--22357-- REDIR: 0x401df10 (ld-linux-x86-64.so.2:strcmp) redirected to
0x485f980 (strcmp)
--22357-- REDIR: 0x4021730 (ld-linux-x86-64.so.2:strlen) redirected to
0x485ee50 (strlen)
--22357-- REDIR: 0x4021c90 (ld-linux-x86-64.so.2:mempcpy) redirected to
0x4862b80 (mempcpy)
--22357-- Reading syms from /usr/lib64/libpthread-2.32.so
--22357--   Considering
/usr/lib/debug/.build-id/1c/85e1398e2d2d74c7725d328ae45c809d6d9a34.debug ..
--22357--   .. build-id is valid
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x048966b0 (pthread_create@@GLIB) W-> (0000.0) 0x048429d0
pthread_create@*
--22357--     new: 0x048966b0 (pthread_create@@GLIB) W-> (0000.0) 0x04842290
pthread_create
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489c4e0 (pthread_cond_wait@@G) W-> (0000.0) 0x0484dd40
pthread_cond_wait@*
--22357--     new: 0x0489c4e0 (pthread_cond_wait@@G) W-> (0000.0) 0x0484d7e0
pthread_cond_wait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489c7b0 (pthread_cond_timedwa) W-> (0000.0) 0x0484ed90
pthread_cond_timedwait@*
--22357--     new: 0x0489c7b0 (pthread_cond_timedwa) W-> (0000.0) 0x0484e810
pthread_cond_timedwait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489ce90 (pthread_cond_signal@) W-> (0000.0) 0x0484f9f0
pthread_cond_signal@*
--22357--     new: 0x0489ce90 (pthread_cond_signal@) W-> (0000.0) 0x0484f730
pthread_cond_signal
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489d1d0 (pthread_cond_broadca) W-> (0000.0) 0x04850230
pthread_cond_broadcast@*
--22357--     new: 0x0489d1d0 (pthread_cond_broadca) W-> (0000.0) 0x0484ff70
pthread_cond_broadcast
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489d550 (pthread_cond_wait@GL) W-> (0000.0) 0x0484dd40
pthread_cond_wait@*
--22357--     new: 0x0489d550 (pthread_cond_wait@GL) W-> (0000.0) 0x0484d7e0
pthread_cond_wait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489d5c0 (pthread_cond_timedwa) W-> (0000.0) 0x0484ed90
pthread_cond_timedwait@*
--22357--     new: 0x0489d5c0 (pthread_cond_timedwa) W-> (0000.0) 0x0484e810
pthread_cond_timedwait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489d650 (pthread_cond_signal@) W-> (0000.0) 0x0484f9f0
pthread_cond_signal@*
--22357--     new: 0x0489d650 (pthread_cond_signal@) W-> (0000.0) 0x0484f730
pthread_cond_signal
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489d6c0 (pthread_cond_broadca) W-> (0000.0) 0x04850230
pthread_cond_broadcast@*
--22357--     new: 0x0489d6c0 (pthread_cond_broadca) W-> (0000.0) 0x0484ff70
pthread_cond_broadcast
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489d7f0 (pthread_spin_init   ) W-> (0000.0) 0x048507c0
pthread_spin_init
--22357--     new: 0x0489d7f0 (pthread_spin_init   ) W-> (0000.0) 0x048529d0
pthread_spin_unlock
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489e520 (sem_init@@GLIBC_2.2.) W-> (0000.0) 0x04854f10
sem_init@*
--22357--     new: 0x0489e520 (sem_init@@GLIBC_2.2.) W-> (0000.0) 0x04854c10
sem_init
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489e560 (sem_destroy@@GLIBC_2) W-> (0000.0) 0x048557b0
sem_destroy@*
--22357--     new: 0x0489e560 (sem_destroy@@GLIBC_2) W-> (0000.0) 0x048554f0
sem_destroy
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489f250 (sem_wait@@GLIBC_2.2.) W-> (0000.0) 0x04857280
sem_wait@*
--22357--     new: 0x0489f250 (sem_wait@@GLIBC_2.2.) W-> (0000.0) 0x04856fa0
sem_wait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489f290 (sem_trywait@@GLIBC_2) W-> (0000.0) 0x04857b20
sem_trywait@*
--22357--     new: 0x0489f290 (sem_trywait@@GLIBC_2) W-> (0000.0) 0x04857840
sem_trywait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x0489f750 (sem_post@@GLIBC_2.2.) W-> (0000.0) 0x04858c60
sem_post@*
--22357--     new: 0x0489f750 (sem_post@@GLIBC_2.2.) W-> (0000.0) 0x04858980
sem_post
--22357-- Reading syms from /usr/lib64/libc-2.32.so
--22357--   Considering
/usr/lib/debug/.build-id/a1/6a641ba544e46c85bcd411f6b9fce94b3c386f.debug ..
--22357--   .. build-id is valid
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x04935010 (pthread_cond_broadca) W-> (0000.0) 0x048500d0
pthread_cond_broadcast@*
--22357--     new: 0x04935010 (pthread_cond_broadca) W-> (0000.0) 0x0484fe10
pthread_cond_broadcast
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x04935040 (pthread_cond_signal@) W-> (0000.0) 0x0484f890
pthread_cond_signal@*
--22357--     new: 0x04935040 (pthread_cond_signal@) W-> (0000.0) 0x0484f5d0
pthread_cond_signal
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x04935070 (pthread_cond_wait@@G) W-> (0000.0) 0x0484da90
pthread_cond_wait@*
--22357--     new: 0x04935070 (pthread_cond_wait@@G) W-> (0000.0) 0x0484d530
pthread_cond_wait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x049350a0 (pthread_cond_timedwa) W-> (0000.0) 0x0484ead0
pthread_cond_timedwait@*
--22357--     new: 0x049350a0 (pthread_cond_timedwa) W-> (0000.0) 0x0484e550
pthread_cond_timedwait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x04935440 (pthread_cond_destroy) W-> (0000.0) 0x0484cf70
pthread_cond_destroy@*
--22357--     new: 0x04935440 (pthread_cond_destroy) W-> (0000.0) 0x0484cc90
pthread_cond_destroy
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x04935460 (pthread_cond_init@GL) W-> (0000.0) 0x0484c6d0
pthread_cond_init@*
--22357--     new: 0x04935460 (pthread_cond_init@GL) W-> (0000.0) 0x0484c3f0
pthread_cond_init
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x049359f0 (pthread_cond_destroy) W-> (0000.0) 0x0484cf70
pthread_cond_destroy@*
--22357--     new: 0x049359f0 (pthread_cond_destroy) W-> (0000.0) 0x0484cc90
pthread_cond_destroy
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x04935a80 (pthread_cond_init@@G) W-> (0000.0) 0x0484c6d0
pthread_cond_init@*
--22357--     new: 0x04935a80 (pthread_cond_init@@G) W-> (0000.0) 0x0484c3f0
pthread_cond_init
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x049ec2d0 (pthread_cond_broadca) W-> (0000.0) 0x048500d0
pthread_cond_broadcast@*
--22357--     new: 0x049ec2d0 (pthread_cond_broadca) W-> (0000.0) 0x0484fe10
pthread_cond_broadcast
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x049ec300 (pthread_cond_signal@) W-> (0000.0) 0x0484f890
pthread_cond_signal@*
--22357--     new: 0x049ec300 (pthread_cond_signal@) W-> (0000.0) 0x0484f5d0
pthread_cond_signal
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x049ec330 (pthread_cond_wait@GL) W-> (0000.0) 0x0484da90
pthread_cond_wait@*
--22357--     new: 0x049ec330 (pthread_cond_wait@GL) W-> (0000.0) 0x0484d530
pthread_cond_wait
==22357== WARNING: new redirection conflicts with existing -- ignoring it
--22357--     old: 0x049ec360 (pthread_cond_timedwa) W-> (0000.0) 0x0484ead0
pthread_cond_timedwait@*
--22357--     new: 0x049ec360 (pthread_cond_timedwa) W-> (0000.0) 0x0484e550
pthread_cond_timedwait
--22357-- REDIR: 0x49402b0 (libc.so.6:memmove) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
==22357== Preferring higher priority redirection:
--22357--     old: 0x04a143b0 (__memcpy_avx_unalign) R-> (2018.0) 0x04860b10
__memcpy_avx_unaligned_erms
--22357--     new: 0x04a143b0 (__memcpy_avx_unalign) R-> (2018.1) 0x04861e60
memmove
--22357-- REDIR: 0x493f7a0 (libc.so.6:strncpy) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x49405f0 (libc.so.6:strcasecmp) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f240 (libc.so.6:strcat) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f800 (libc.so.6:rindex) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x49419a0 (libc.so.6:rawmemchr) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4959f40 (libc.so.6:wmemchr) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4959a80 (libc.so.6:wcscmp) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940410 (libc.so.6:mempcpy) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940240 (libc.so.6:bcmp) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f730 (libc.so.6:strncmp) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f2f0 (libc.so.6:strcmp) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940380 (libc.so.6:memset) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4959a40 (libc.so.6:wcschr) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f690 (libc.so.6:strnlen) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f3d0 (libc.so.6:strcspn) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940640 (libc.so.6:strncasecmp) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f370 (libc.so.6:strcpy) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940790 (libc.so.6:memcpy@@GLIBC_2.14) redirected to
0x482f1b6 (_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x495b190 (libc.so.6:wcsnlen) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4959ac0 (libc.so.6:wcscpy) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f840 (libc.so.6:strpbrk) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f2a0 (libc.so.6:index) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f650 (libc.so.6:strlen) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4945de0 (libc.so.6:memrchr) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940690 (libc.so.6:strcasecmp_l) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940200 (libc.so.6:memchr) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4959b90 (libc.so.6:wcslen) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x493f970 (libc.so.6:strspn) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940590 (libc.so.6:stpncpy) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4940530 (libc.so.6:stpcpy) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x49419e0 (libc.so.6:strchrnul) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x49406e0 (libc.so.6:strncasecmp_l) redirected to 0x482f1b6
(_vgnU_ifunc_wrapper)
--22357-- REDIR: 0x4a111d0 (libc.so.6:__strrchr_avx2) redirected to 0x485ea50
(rindex)
--22357-- REDIR: 0x48966b0 (libpthread.so.0:pthread_create@@GLIBC_2.2.5)
redirected to 0x48429d0 (pthread_create@*)
--22357-- REDIR: 0x4897d20 (libpthread.so.0:pthread_mutex_init) redirected to
0x48467d0 (pthread_mutex_init)
--22357-- REDIR: 0x4935460 (libc.so.6:pthread_cond_init@GLIBC_2.2.5) redirected
to 0x484c6d0 (pthread_cond_init@*)
--22357-- REDIR: 0x493c3f0 (libc.so.6:calloc) redirected to 0x4840b1f (calloc)
--22357-- REDIR: 0x4898680 (libpthread.so.0:pthread_mutex_lock) redirected to
0x4848510 (pthread_mutex_lock)
--22357-- REDIR: 0x489d550 (libpthread.so.0:pthread_cond_wait@GLIBC_2.2.5)
redirected to 0x484dd40 (pthread_cond_wait@*)
--22357-- REDIR: 0x489c4e0 (libpthread.so.0:pthread_cond_wait@@GLIBC_2.3.2)
redirected to 0x484dd40 (pthread_cond_wait@*)
--22357-- REDIR: 0x489d650 (libpthread.so.0:pthread_cond_signal@GLIBC_2.2.5)
redirected to 0x484f9f0 (pthread_cond_signal@*)
--22357-- REDIR: 0x489ce90 (libpthread.so.0:pthread_cond_signal@@GLIBC_2.3.2)
redirected to 0x484f9f0 (pthread_cond_signal@*)
--22357-- REDIR: 0x4899f20 (libpthread.so.0:pthread_mutex_unlock) redirected to
0x484b680 (pthread_mutex_unlock)
--22357-- REDIR: 0x493bf20 (libc.so.6:realloc) redirected to 0x4840d18
(realloc)
--22357-- REDIR: 0x4a14840 (libc.so.6:__memset_avx2_unaligned_erms) redirected
to 0x4861d60 (memset)
--22357-- REDIR: 0x4a143b0 (libc.so.6:__memcpy_avx_unaligned_erms) redirected
to 0x4861e60 (memmove)
--22357-- REDIR: 0x493bc90 (libc.so.6:free) redirected to 0x483faaf (free)
--22357-- REDIR: 0x493b630 (libc.so.6:malloc) redirected to 0x483e917 (malloc)
--22357-- REDIR: 0x4897f00 (libpthread.so.0:pthread_mutex_destroy) redirected
to 0x4847490 (pthread_mutex_destroy)
--22357-- REDIR: 0x4935440 (libc.so.6:pthread_cond_destroy@GLIBC_2.2.5)
redirected to 0x484cf70 (pthread_cond_destroy@*)
--22357-- REDIR: 0x4897710 (libpthread.so.0:pthread_join) redirected to
0x4843770 (pthread_join)

[On a reasonably fast machine, wait 3-4 seconds and press C-c]

==22357== Process terminating with default action of signal 2 (SIGINT)
==22357==    at 0x48979D7: __pthread_clockjoin_ex (pthread_join_common.c:145)
==22357==    by 0x48438DF: pthread_join_intercept
(drd_pthread_intercepts.c:718)
==22357==    by 0x48438DF: pthread_join (drd_pthread_intercepts.c:728)
==22357==    by 0x4011AD: main (t-swapcontext.c:117)

drd: drd_main.c:378 (drd_stop_using_mem): Assertion 'a1 <= a2' failed.

host stacktrace:
==22357==    at 0x5801E2A0: show_sched_status_wrk (m_libcassert.c:406)
==22357==    by 0x5801E3A7: report_and_quit (m_libcassert.c:477)
==22357==    by 0x5801E52E: vgPlain_assert_fail (m_libcassert.c:543)
==22357==    by 0x58013BAD: drd_stop_using_mem (drd_main.c:378)
==22357==    by 0x58013BAD: drd_stop_using_mem (drd_main.c:373)
==22357==    by 0x58013BAD: drd_thread_finished (drd_main.c:713)
==22357==    by 0x58013BAD: drd_thread_finished (drd_main.c:681)
==22357==    by 0x580BB3A9: run_a_thread_NORETURN (syswrap-linux.c:168)
==22357==    by 0x580BB5BA: vgModuleLocal_start_thread_NORETURN
(syswrap-linux.c:328)
==22357==    by 0x5807B01D: ??? (in /usr/lib64/valgrind/drd-amd64-linux)
==22357==    by 0xDEADBEEFDEADBEEE: ???
==22357==    by 0xDEADBEEFDEADBEEE: ???
==22357==    by 0xDEADBEEFDEADBEEE: ???

sched status:
  running_tid=2

Thread 1: status = VgTs_Yielding (lwpid 22357)
==22357==    at 0x48979D7: __pthread_clockjoin_ex (pthread_join_common.c:145)
==22357==    by 0x48438DF: pthread_join_intercept
(drd_pthread_intercepts.c:718)
==22357==    by 0x48438DF: pthread_join (drd_pthread_intercepts.c:728)
==22357==    by 0x4011AD: main (t-swapcontext.c:117)
client stack range: [0x1FFEFE8000 0x1FFF000FFF] client SP: 0x1FFEFE8D50
valgrind stack range: [0x100268E000 0x100278DFFF] top usage: 9624 of 1048576

Thread 2: status = VgTs_Runnable (lwpid 22358)
==22357==    at 0x49A580F: poll (poll.c:29)
==22357==    by 0x40131B: f (t-swapcontext.c:31)
==22357==    by 0x49020AF: ??? (__start_context.S:91)
==22357==    by 0x1FFEFE907F: ???
client stack range: [0x527E000 0x5300EA0] client SP: 0x52822A0
valgrind stack range: [0x10043CB000 0x10044CAFFF] top usage: 5208 of 1048576

Thread 4: status = VgTs_WaitSys syscall 7 (lwpid 22360)
==22357==    at 0x49A580F: poll (poll.c:29)
==22357==    by 0x40131B: f (t-swapcontext.c:31)
==22357==    by 0x49020AF: ??? (__start_context.S:91)
==22357==    by 0x1FFEFEA74F: ???
client stack range: [0x527E000 0x5300EA0] client SP: 0x5288760
valgrind stack range: [0x10047CB000 0x10048CAFFF] top usage: 5208 of 1048576

Thread 12: status = VgTs_WaitSys syscall 7 (lwpid 22368)
==22357==    at 0x49A580F: poll (poll.c:29)
==22357==    by 0x40131B: f (t-swapcontext.c:31)
==22357==    by 0x49020AF: ??? (__start_context.S:91)
==22357==    by 0x1FFEFF028F: ???
client stack range: [0x527E000 0x5300EA0] client SP: 0x52ABB00
valgrind stack range: [0x10075C1000 0x10076C0FFF] top usage: 5208 of 1048576

Thread 19: status = VgTs_WaitSys syscall 7 (lwpid 22375)
==22357==    at 0x49A580F: poll (poll.c:29)
==22357==    by 0x40131B: f (t-swapcontext.c:31)
==22357==    by 0x49020AF: ??? (__start_context.S:91)
==22357==    by 0x1FFEFF5267: ???
client stack range: [0x527E000 0x5300EA0] client SP: 0x52C8C10
valgrind stack range: [0x1008CDD000 0x1008DDCFFF] top usage: 5208 of 1048576

Thread 25: status = VgTs_WaitSys syscall 7 (lwpid 22381)
==22357==    at 0x49A580F: poll (poll.c:29)
==22357==    by 0x40131B: f (t-swapcontext.c:31)
==22357==    by 0x49020AF: ??? (__start_context.S:91)
==22357==    by 0x1FFEFF96D7: ???
client stack range: [0x527E000 0x5300EA0] client SP: 0x52E1AB0
valgrind stack range: [0x1009EF5000 0x1009FF4FFF] top usage: 5208 of 1048576

Thread 32: status = VgTs_WaitSys syscall 7 (lwpid 22388)
==22357==    at 0x49A580F: poll (poll.c:29)
==22357==    by 0x40131B: f (t-swapcontext.c:31)
==22357==    by 0x49020AF: ??? (__start_context.S:91)
==22357==    by 0x1FFEFFE6AF: ???
client stack range: [0x527E000 0x5300EA0] client SP: 0x52FEBC0
valgrind stack range: [0x100B611000 0x100B710FFF] top usage: 5208 of 1048576

Thread 33: status = VgTs_WaitSys syscall 7 (lwpid 22389)
==22357==    at 0x49A580F: poll (poll.c:29)
==22357==    by 0x40131B: f (t-swapcontext.c:31)
==22357==    by 0x49020AF: ??? (__start_context.S:91)
==22357==    by 0x1FFEFFF217: ???
client stack range: [0x527E000 0x5300EA0] client SP: 0x5300E10
valgrind stack range: [0x100BB15000 0x100BC14FFF] top usage: 4696 of 1048576

Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what OS and version you are using.  Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to