Code Monkey home page Code Monkey logo

Comments (9)

landley avatar landley commented on July 22, 2024

from toybox.

butterl avatar butterl commented on July 22, 2024

Hi Rob,

The patch already in the build tree,
the error seems here ,

if (new->child == DIRTREE_ABORTVAL) new->child = 0;  ///////<<<<< suspected
....
dt = new->child;              ///////<<<<< dt maybe 0 
while (dt->child) {            ///////<<<<< suspected
  new = dt->child->next;
  TT.show_process((void *)dt->child->extra);
  free(dt->child);
  dt->child = new;
}

from toybox.

enh avatar enh commented on July 22, 2024

Yes, and the fix to that was commit e97aeb6 back in march

the linked-to mailing list post was from me, reporting that although e97aeb6 reduced the incidence of this down to where i'm not aware of any human seeing ps crashes directly, we're still seeing occasional ones from automated crash reporting.

this is definitely still reproduceable. (as is top crashing if you leave it running long enough; this can be caught in reasonable-ish time frames if you run an asan build rather than a regular build, so it catches the corruption immediately. i've no idea whether these are related, so default to assuming they're not.)

from toybox.

landley avatar landley commented on July 22, 2024

from toybox.

butterl avatar butterl commented on July 22, 2024

Hi Rob,

Seems this race condition will not fix with a simple nullptr checker workaround , do you got any good idea on this?

BRs,
Chao

from toybox.

raymond-wx avatar raymond-wx commented on July 22, 2024

@landley
Hi Rob,
we also met this issue in our autotest pipe line many times, if this issue get fixed we can avoid lots of noise from autotest pipe.

from toybox.

enh avatar enh commented on July 22, 2024

another instance today from automated testing:

pid: 29772, tid: 29772, name: ps  >>> ps <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
x0   0000000000000000  x1   0000000000000000  x2   0000000000000000  x3   0000007ff72069a8
x4   0000007c072d17e7  x5   0000007c0721d07e  x6   0000000000000069  x7   0000000000000070
x8   0000000000000000  x9   0000000000000001  x10  0000000000004001  x11  0000000000000000
x12  0000007c076d04b0  x13  00000000fffffffe  x14  0000000000000001  x15  0000000000000002
x16  0000007c076ee2c8  x17  0000007c0768bad8  x18  0000007c076f9000  x19  0000007c072350c0
x20  0000000000000000  x21  000000556ae34868  x22  000000556ae31840  x23  00000000000008c5
x24  0000007c07235010  x25  0000000000000000  x26  0000000000000000  x27  0000000000000000
x28  0000000000000000  x29  0000007ff72071a0  x30  000000556ae06f98
sp   0000007ff7207170  pc   000000556ae06fa0  pstate 0000000080000000

Stack Trace:
  RELADDR           FUNCTION                     FILE:LINE
  0000000000036fa0  get_threads+228              external/toybox/toys/posix/ps.c:920
  000000000000db9c  dirtree_handle_callback+36   external/toybox/lib/dirtree.c:112
  000000000000dca0  dirtree_recurse+120          external/toybox/lib/dirtree.c:156
  000000000000dbf4  dirtree_handle_callback+124  external/toybox/lib/dirtree.c:115
  0000000000036334  ps_main+952                  external/toybox/toys/posix/ps.c:1241
  00000000000139b0  toy_exec+92                  external/toybox/main.c:166
  0000000000013570  toybox_main+48               external/toybox/main.c:179
  0000000000013a74  main+120                     external/toybox/main.c:237
  00000000000a1e08  __libc_init+88               bionic/libc/bionic/libc_init_dynamic.cpp:124
  000000000000ccc0  _start_main+80               sfp-exceptions.c:?

from toybox.

landley avatar landley commented on July 22, 2024

from toybox.

enh avatar enh commented on July 22, 2024

time to close this as fixed? haven't seen another instance in months since the last fix...

from toybox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.