Baojun Wang

Results 41 comments of Baojun Wang

There're several hard problems to solve. If a waited task is running (`R` state), then we should let it run, for `detTrace` (or `rr` presumably), since we only run a...

Also reading `/proc//status` can be racy, it would be better to have a event based system, when a task switch happens, send a notification (to the tracer). this is pretty...

on `mmap` blocking behavior: https://stackoverflow.com/questions/20084154/can-sbrk2-or-mmap2-block

I believe so. the `S` state means interruptible sleep, it can receive signals; on the other hand, `D` is for uninterruptible sleep, I don't think it can return `EINTR`. >...

It is because `zeroOutStatfs`, I changed it to: ```cc // ======================================================================================= void zeroOutStatfs(struct statfs& stats){ // Type of filesystem stats.f_type = 0xEF53; /* EXT4_SUPER_MAGIC */ stats.f_bsize = 0x1000; /* Optimal...

> I believe the answers should be no. I think libc's malloc zero's out the page before handing it over? I don't think `malloc` zeroes out the allocated memory, only...

https://stackoverflow.com/questions/45323930/is-malloc-initializing-allocated-array-to-zero/45324007

https://gist.github.com/wangbj/5021226f8faf47b6d2d5e64e44ba2f24

Can you provide a stickerpack which reproduces the issue? The link provided is paywalled. Thanks!

Thanks for the archives, are you a WhatsApp beta user? If so, can you check if v2.25.12.18 (released 04/15/2025) still have this issue?