Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Remembered the thought, it was about how I was...

    Remembered the thought, it was about how I was leaking memory when clearing the data in a dump_t object, unfortunately attempting to resolve that problem lead to gasp crashing before it even reported...
  2. Managedto find the source of that corrupt ion...

    Managedto find the source of that corrupt ion after noticing a specific instance of clearing a sub object to 0 doesn't preserve the given buffer and size values, after moving the common clear out...
  3. Just reattempted a debugging session only to find...

    Just reattempted a debugging session only to find gede pops up that error upon launching deep-gasp-d.elf, I'm starting to think gede doesn't like being launched under pkexec from user mode, if you...
  4. The problem is it's not a global variable and it...

    The problem is it's not a global variable and it floats around a fair bit making it hard to track without just printing it's data, also I suck at using command line debugging which is why I'm using...
  5. Need help finding the cause of a probably memory corruption

    Tried using gede but at the point of gasp crashing it is somehow expects different to what it receives (think it said expecting var but got }), I managed to find the line of code it crashes at by...
  6. Thread: Math as Code

    by awsdert
    Replies
    0
    Views
    60

    Math as Code

    Just found out about this resource, much easier for me to learn to understand various math symbols with this, I suggest this thread be made a sticky and anyone finding similar resources post them on...
  7. Replies
    0
    Views
    88

    Memory dump is failing somehow

    After investigating the data the later proc_handle_aobscan() was actually comparing against I found all the read data to be 0, I've now commented out the call so I can print the values before they...
  8. Replies
    1
    Views
    130

    Managed to fix it, mishandled the return values...

    Managed to fix it, mishandled the return values of 2 different functions which prevented the scan from being done in the 1st place, so not overwritten, just never filled to begin with

    Edit: Forgot...
  9. Replies
    1
    Views
    130

    Need help finding an unintended overwrite

    I've confirmed that 'lua_proc_handle_prep_scan' (called by 'lua_proc_handle_dump' and 'lua_proc_handle_bytescan') indeed receives the correct range but sometime between there and attempting to start...
  10. Thread: cron and c.out

    by awsdert
    Replies
    19
    Views
    387

    That just circles back to my point that the...

    That just circles back to my point that the number isn't being overwritten correctly, jc, for clarity I mean something like this example in the case addTo was made to just return num + 1

    The text...
  11. Thread: cron and c.out

    by awsdert
    Replies
    19
    Views
    387

    Er just realised I said lseek instead of fseek,...

    Er just realised I said lseek instead of fseek, would edit the post but I've just turned off my pc to go to bed and editing with a phone is annoyoing to do
  12. Thread: cron and c.out

    by awsdert
    Replies
    19
    Views
    387

    Er, why are you flushing stdout when you haven't...

    Er, why are you flushing stdout when you haven't sent anything to it yet???
    Also instead of opening the files twice under I suggest the following:


    weather_file =...
  13. Well addresses are fixed, now I just gotta figure...

    Well addresses are fixed, now I just gotta figure out that leak, turned out I had messed up somehow right before I started dumping, now I use a container function to sort that out consistently at...
  14. Thread: cron and c.out

    by awsdert
    Replies
    19
    Views
    387

    Don't be too sure of that, even expert...

    Don't be too sure of that, even expert programmers (of which I would like to call myself but not dumb enough to try) can and will make mistakes in their code, just recently I made the mistake of...
  15. Thread: cron and c.out

    by awsdert
    Replies
    19
    Views
    387

    I beg to differ, see if you can spot why from the...

    I beg to differ, see if you can spot why from the quote :)
    Anyways what is cron?

    Edit: Oh so it was just a schedular
  16. Managed to fix it, can't remember all the...

    Managed to fix it, can't remember all the possible causes I found but among them a definite cause would be forgetting to shift the file offset back before writing the data (although that should've...
  17. Fixed a lock up caused by incorrect pipe usage,...

    Fixed a lock up caused by incorrect pipe usage, still can't get the results showing however, could really use the help in identifying the cause of that (besides the commented out draw call, I'll wait...
  18. After some decent shuteye I spotted a few issues...

    After some decent shuteye I spotted a few issues and fixed them, I also added a few "fprintf( stderr" statements to make sure I was getting into the loop that at least reads through each region's...
  19. Need a some help spotting the cause of an issue

    First a link to the code:
    GitHub - awsdert/gasp at 6d6ed79f6653fec9509fe69a5edfd2276f1993c7

    Second is the names of the relevant functions to look at:


    proc_handle_dumper()...
  20. Replies
    5
    Views
    319

    Yeah I noticed that last night and fixed it but...

    Yeah I noticed that last night and fixed it but that didn't resolve my main problem so I figured it wasn't worth mentioning, I have managed to fix that main problem just now although with some API...
  21. Replies
    5
    Views
    319

    Got round to making that short file you...

    Got round to making that short file you requested, tried to stop the thread midway to read from array but it either never stops or the response is never heard
  22. Replies
    5
    Views
    319

    3 things, 1st an answer to your question about...

    3 things, 1st an answer to your question about the ext_pipes and int_pipes, the ext_pipes is for talking to another thread while the int_pipes is for hearing the response from said thread, the...
  23. Replies
    5
    Views
    319

    Need advice on thread communication

    Currently I have this:


    bool gasp_thread_signal(
    char const *src, int ext_pipes[2], int int_pipes[2], int sig
    )
    {
    int ret = SIGSTOP;
    struct pollfd pfd = {0};
    node_t n = 0;
  24. Found it, turned out I had accidentally 0'd the...

    Found it, turned out I had accidentally 0'd the swap pointers for mapped regions, now I just gotta find where I'm getting an infinite loop
  25. Only when I use normal targets, turned out there...

    Only when I use normal targets, turned out there was a segfault in proc_handle_dump() though, forgot to convert a piece of code to no longer add to the base pointer, still seem to be getting a...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4