11-19-2009, 05:09 AM
There is no response while I click "Configure" button of LINUZ iso CDVD plugin.
Console said "cfgCDVDiso file not found!"
I straced the program, and found this:
=================================
...
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getcwd(0xad42a44f, 4) = -1 ERANGE (Numerical result out of range)
chdir("plugins") = -1 ENOENT (No such file or directory)
stat64("./cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("./plugins/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("./cfg/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("/home/john/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
write(1, "cfgCDVDiso file not found!\n"..., 27) = 27
chdir("U\211\345S\203\354$\350|\351\377\377\201\303\231K") = -1 ENOENT (No such file or directory)
...
=================================
I noticed the buffer size of getcwd() is 4. I guess you maybe sizeofed a pointer var rarher than an array which is meaningless. And the latter chdir() is meaningless, too. I GUESS it sould be a "..".
I didn't read your source code, just my guess.
Console said "cfgCDVDiso file not found!"
I straced the program, and found this:
=================================
...
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getcwd(0xad42a44f, 4) = -1 ERANGE (Numerical result out of range)
chdir("plugins") = -1 ENOENT (No such file or directory)
stat64("./cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("./plugins/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("./cfg/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
stat64("/home/john/cfgCDVDiso", 0xbfd11954) = -1 ENOENT (No such file or directory)
write(1, "cfgCDVDiso file not found!\n"..., 27) = 27
chdir("U\211\345S\203\354$\350|\351\377\377\201\303\231K") = -1 ENOENT (No such file or directory)
...
=================================
I noticed the buffer size of getcwd() is 4. I guess you maybe sizeofed a pointer var rarher than an array which is meaningless. And the latter chdir() is meaningless, too. I GUESS it sould be a "..".
I didn't read your source code, just my guess.