Search:

Type: Posts; User: cerr

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,836

    What's the advantage (if any) from using a...

    What's the advantage (if any) from using a temporary pointer (tmp) rather than working with the s directly?
  2. Replies
    4
    Views
    1,836

    Oh yes, that's what it was! Thank you!

    Oh yes, that's what it was! Thank you!
  3. Replies
    4
    Views
    1,836

    can't copy value back into pointer

    Hi,

    I want to implement a version of strlwr() but can't seem to be copying the lower case value back into the string.
    My test program with the function looks like:


    #include <stdio.h>...
  4. Replies
    2
    Views
    11,560

    yep, got it, thanks! :)

    yep, got it, thanks! :)
  5. Replies
    2
    Views
    11,560

    enum - incomplete type is not allowed

    Hi,

    I have an enum like:

    typedef enum mac_type_e {
    STATIC_MAC,
    BLACKLIST_MAC
    } mac_type_t;
    and I want to use this type in a structure that's declared like:
  6. [SOLVED] writing structure array bytewise to binary file and read it back

    I reaklized that my problem is, where I print out my mac. In the original code I was only printing the pointer to where the mac is located instead of dereferenced byte-by-byte. I changed it and it...
  7. You are exactly right! Ron

    You are exactly right!

    Ron
  8. Right, that's not going to return the right...

    Right,
    that's not going to return the right size, is it?
    Okay, so I included noew an additional sizxe argument and changed my callers to

    Save(fname, bar, sizeof(bar)); and
    Load(fname, res,...
  9. writing structure array bytewise to binary file and read it back

    Hi,

    I would like to write a complete structure array to a file and read it back, recovering all the data. I have tried the following:

    #include <stdio.h>
    #include <string.h>
    #define NUM 256
    ...
  10. [RESOLVED - FIXED] Bytewise read and write to file.

    [resolved - fixed]
  11. Replies
    1
    Views
    1,780

    troubles compiling valgrind with ulibc

    Hi There,

    I would like to compile valgrind on a ulibC system but it's making me troubles and I can't figure out how to resolve them... :(
    The output i'm getting is like this:
    ...
  12. Replies
    5
    Views
    9,432

    Okay, I found one of the SIGSEGVs I believe. It's...

    Okay, I found one of the SIGSEGVs I believe. It's because pointers were freed but not set to NULL which would cause stale pointers... that'been corrected.
    However, I still seem to be getting a...
  13. Replies
    5
    Views
    9,432

    Nah, haven't gotten the code compiled to run on...

    Nah, haven't gotten the code compiled to run on our target platform yet... :(
  14. Thread: another SEGFAULT

    by cerr
    Replies
    8
    Views
    2,325

    Okay, I will have to look into this more. The...

    Okay, I will have to look into this more. The problem is, this code isnt' from me and i hoped that there would be some kind of mechanism to react upon a seg fault like the try/catch() statements in...
  15. Replies
    5
    Views
    9,432

    strace can SIGSEGV lead to SIGKILL?

    Hi There,

    I'm still afflicted by SIGKILLs in my application and I have not been able to locate the error with gdb and instead I put on strace now. And following output is what i got just before...
  16. Thread: another SEGFAULT

    by cerr
    Replies
    8
    Views
    2,325

    Well the actual malloc code looks like: ...

    Well the actual malloc code looks like:

    head = (node_t *) malloc(sizeof(node_t));
    if (!head)
    return PRS_MEMORY_FAILURE;


    /*set the node to initial values */
    ...
  17. Thread: another SEGFAULT

    by cerr
    Replies
    8
    Views
    2,325

    Okay, yay, good morning... :) let's look at...

    Okay, yay,
    good morning... :) let's look at that again today. So gdb tells me:


    And the code around those line looks like:

    if (head->next) {
    _check_node = head->next;
    ...
  18. Thread: another SEGFAULT

    by cerr
    Replies
    8
    Views
    2,325

    another SEGFAULT

    Hi,

    I found another segfault in my app with gdb:

    Program received signal SIGSEGV, Segmentation fault.
    0x0804cb3e in main (argc=1, argv=0xbfc71904) at main.c:978
    978 ...
  19. Replies
    1
    Views
    842

    Hold-on. I just realized that I need to have two...

    Hold-on. I just realized that I need to have two if statements, sorry, makes sense now... :o
  20. Replies
    1
    Views
    842

    misterious SEGFAULT

    Hi There,

    I just caught a SEGFAULTR with gdb:

    Program received signal SIGSEGV, Segmentation fault.
    0x0804cb4c in main (argc=1, argv=0xbf9f6894) at main.c:979
    979 if...
  21. Replies
    16
    Views
    3,282

    Also i have downloaded and compiled strace onto...

    Also i have downloaded and compiled strace onto my target platform but when i start it with ./strace ./prs I just get a bunch of information before it throws me back to the shell saying
    getppid() =...
  22. Replies
    16
    Views
    3,282

    :o Now I just realized that (at least) one thread...

    :o Now I just realized that (at least) one thread in my application terminated like before witha SIGKILL but i didn't see anything in gdb... :o How would that be? I'm using gdb to connect to the...
  23. Replies
    16
    Views
    3,282

    info signals Doesn't really tell me anything. It...

    info signals
    Doesn't really tell me anything. It prints a list of signals and SIGKILL shows up like:
    SIGKILL Yes Yes Yes Killed
    which doesn't really help either, eh?...
  24. Replies
    16
    Views
    3,282

    GDB says: Program terminated with signal...

    GDB says:
    Program terminated with signal SIGKILL, Killed.
    The program no longer exists.
    (gdb)
    and ayou say
    The OS never automatically generates SIGKILL - how sure are you about that I'm...
  25. Replies
    16
    Views
    3,282

    yes, /etc/hostname is correct (ping MyHostname)...

    yes, /etc/hostname is correct (ping MyHostname) is working fine too. To my platform, I'm running on a x86 AMD Geode that is running a minimized BusyBox Linux distribution with kernel 2.6.15.1 on...
Results 1 to 25 of 42
Page 1 of 2 1 2