Search:

Type: Posts; User: hollie

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    2,727

    I'll try those debugging tools. I usually just...

    I'll try those debugging tools. I usually just used the high tech printf debugger approach (I'm sure you guys know the kind of errors that causes!) until my professor showed me gdb (he couldn't find...
  2. Replies
    13
    Views
    2,727

    these are all my memory allocs with the exception...

    these are all my memory allocs with the exception of add_cmd which just does a strdup on the parameter that is passed to it.

    why would allocating an extra node cause a seg fault? should I...
  3. Replies
    13
    Views
    2,727

    yeah I did have it allocated as: size =...

    yeah I did have it allocated as:


    size = sizeof(opNode) + ((nops - 1) * sizeof(nodeType*));


    but that seg faulted even on the 64. :(

    this might be impossible to debug if you can't see...
  4. Replies
    13
    Views
    2,727

    I checked and rechecked and rechecked. . .to make...

    I checked and rechecked and rechecked. . .to make sure I'm passing the correct number of arguments, so pretty darn sure that is not the problem. In the opr() function the ptr->op.oprs[i] are of...
  5. Replies
    13
    Views
    2,727

    here is some of the more relevant code. It makes...

    here is some of the more relevant code. It makes a parse tree in memory (each node is a operator that points to it's operands). ex() is called when the parse tree has been completely created.
    ...
  6. Replies
    13
    Views
    2,727

    did try debugging with gdb found where. just...

    did try debugging with gdb
    found where. just can't figure out why. :( just the .y file is 490 lines so not good to post. Why would it run under 64 if the program is overrunning memory?
  7. Replies
    13
    Views
    2,727

    all my allocs either use sizeof() or I just do a...

    all my allocs either use sizeof() or I just do a strdup
  8. Replies
    13
    Views
    2,727

    prog runs on 64bit - seg faults on 32bit

    Hi! I have a program (created a simple compiler using lex and yacc). I compile and run the program on my 64(SUSE) and it runs fine -- also worked for someone else on 64(Gentoo), but when I compiled...
Results 1 to 8 of 8