• 0 Posts
  • 27 Comments
Joined 3 years ago
cake
Cake day: September 10th, 2023

help-circle
  • I’m going to whoosh the joke for a moment.

    Avoid allocating memory in sig segv handlers. I worked at a company once that had written their own handlers that tried to print a stack trace. I was fortunate enough to find a machine in a test environment that segfaulted while allocating memory. The handler then caused a deadlock in a call to malloc (through new). I ended up rewriting the handler to fix two sources of memory allocation. First I preallocate enough space to do string manipulations in the handler. Second I made eager calls to a few libc functions used in the handler to avoid memory allocation from lazy binding from ld.so.








  • BlazeDaley@lemmy.worldtoScience Memes@mander.xyzRIP America
    link
    fedilink
    English
    arrow-up
    14
    ·
    9 months ago

    I’m not disagreeing. The report isn’t clear. This is written by people asking Congress for a budget cut.

    NSF programs indirectly impact millions of people, reaching PreK-12 students and teachers, the general public, and researchers

    The actual impact to the pipeline may be far larger.


  • BlazeDaley@lemmy.worldtoScience Memes@mander.xyzRIP America
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 months ago

    Graduate students provide enormous value for their cost in funding. I’d like to better understand how k-12 students contribute here. Those students make up 88.7k of the reduction. How much do these students contribute and at what cost?

    I’m in no way against inspiring the next generation. My question is aimed at correctly interpreting this table. The NSF is a worthwhile expense, but let’s understand the data we have.