Re: Eclipse GDB setup issues; can't determine cause for SIGSEGV
Bryan Evenson
All,
toggle quoted message
Show quoted text
-----Original Message-----On a whim, I changed in my code: if(uuid_compare(uuid1, uuid2) == 0) To: If(memcmp(uuid1, uuid2, 16) == 0) After this change the problematic line of code worked just fine. The debugger worked fine until I got to the next spot in my code that called uuid_compare. At the next call to uuid_compare I got the same SIGSEGV error I had before. Something is clearly a problem with calling uuid_compare. However, I'm using several other functions from the uuid library (uuid_is_null, uuid_parse, uuid_unparse for a few) and none of them are causing problems. I don't think it's a problem with the input parameters because I'm passing the same UUIDs to memcomp as I did to uuid_compare. Has anyone ever seen only one function from a library cause problems like this? Thanks, |
|