debug output: deciphering help needed.
so what is this trying to tell me?
codeblocks :: debugger output. this is a read directory recursively getting whatever file that is within a directory and its sub-directories. then before adding the files into a link list, it checks for an extension if it matches the criteria then it is called to add it to the front of a link list. it loads up a bunch then fails giving me this error. I am wanting to get it to run through an entire hdd if called to do so, then only get the file types it is suppose to then load them into the link list without blowing up. Code:
#0 0x7ffff707f428 __GI_raise(sig=sig@entry=6) (../sysdeps/unix/sysv/linux/raise.c:54) The thing is, that I can run this program on my other hdd the entire thing that has all kinds of files on it and it does not blow up. only in Dropbox and my /home/user dir, when it is my home dir it grabs this file then fails. Code:
bad path /home/userx/.mozilla/firefox/x22f7d38.default/lock In C++ for a different program I wrote this does not occur. But that is C++. ;) I'm not sure how much or which code one needs to look at to see from that debugger output. SO, if need be let me know what you think you'll be needing to look at in conjunction with this. thanks. |
There is a lot of assertions in backtrace so it's hard to distinguish which one causes the failure without reading the code. I have an interesting observation that both of file paths are slightly longer than 50 symbols. Maybe you have a memory corruption issue? Are buffer sizes enough for fitting any paths? Does the program process successfully any longer file paths before the failure?
|
Quote:
Code:
// in header I kicked it up to 2048 Code:
char *get_absolute_path(char *path) Ok I just made it 4096, and that worked (so far) one test only. I was thinking it may have been something to do with the linked list. but yeah, thanks!!! marking solved. |
All times are GMT -5. The time now is 03:08 PM. |