gcc and strace

This is a discussion on gcc and strace within the Linux Programming forums, part of the Platform Specific Boards category; I'm trying to debug a program (part where I free the memory in a loop) but it doesn't crash when ...

  1. #1
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259

    gcc and strace

    I'm trying to debug a program (part where I free the memory in a loop) but it doesn't crash when I step trough it using gdb but when I try not to step trough it it crashes giving me a core dump, I've hurd you could use strace for finding out the reason but I don't understand the man page for it and how do you acces a core dump from gdb since I could probably use it to find out why it crashes aswell...
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259
    found alot of good stuff there thx a ton
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21