Segmenation fault in KCmdLineArgs::parseAllArgs()

Clarence Dang dang at kde.org
Tue Nov 25 08:50:02 GMT 2003


On Mon, 24 Nov 2003 10:55 pm, Dominik Seichter wrote:
> I am the developer of the two KDE applications KBarcode and KRename. Both
> applications have the same strange problem. I can reproduce it for KBarcode
> on my system, but can't with KRename. 
Valgrind.

> The gdb output tells me that the crash is in:
> <snip>
> KCmdLineArgs::parseAllArgs() () at kcmdlineargs.cpp:552
> 552            if (option->name[0] == '+')
> </snip>
> I do not see a solution how this could be fixed in kdelibs, 
(...)
> Has anyone heard of a similar problem or has even a solution for it?
>
I had exactly the same bug once: Add "KCmdLineLastOption" as the last element 
in KCmdLineOptions options[] (main.c in kbarcode, at least).

Cheers,
Clarence





More information about the kde-core-devel mailing list