Summary: | kdevelop segfaults while typing [Php::FunctionDeclaration::prettyName] | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Tom <thomas> |
Component: | Language Support: PHP | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | keplicz, mail |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.0.1 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | New crash information added by DrKonqi |
Description
Tom
2016-10-22 09:35:33 UTC
Ok, looks like a bug in the PHP plugin. Can you paste the code you typed? the part of code was: //Page header public function Header() { // Set font // void SetFont( string $family, [string $style = ''], [float $size = 0], [string $fontfile = '']) // * times (Times-Roman) * timesb (Times-Bold) * timesi (Times-Italic) * timesbi (Times-BoldItalic) * helvetica (Helvetica) // * helveticab (Helvetica-Bold) * helveticai (Helvetica-Oblique) * helveticabi (Helvetica-BoldOblique) * courier (Courier) // * courierb (Courier-Bold) * courieri (Courier-Oblique) * courierbi (Courier-BoldOblique) * symbol (Symbol) * zapfdingbats (ZapfDingbats) // $style Font style. Possible values are (case insensitive): // * empty string: regular * B: bold * I: italic * U: underline * D: line trough or any combination. The default value is regular // Set font $this->SetFont('helvetica', '', 20); I try to change // Set font $this->SetFont('helvetica', 'B', 20); to $this->SetFont('helvetica', '', 20); Also when I try to change 20 to 10 it crash again. Can you make sure you have kdev-php version 5.0.1, not 5.0.0? We fixed a similar bug in between. You can also try with the pre-built kdevelop from kdevelop.org/download. I can't reproduce the issue on 5.0.2. :/ I have 5.0.1 (debian):
kdevelop:amd64/testing 4:5.0.1-2 uptodate
kdevelop-data:all/testing 4:5.0.1-2 uptodate
kdevelop-l10n:all/testing 4:5.0.1-2 uptodate
kdevelop-php:amd64/testing 5.0.1-2 uptodate
kdevelop-php-docs:all/testing 5.0.1-2 uptodate
kdevelop-php-docs-l10n:all/testing 5.0.1-2 uptodate
kdevelop-php-l10n:all/testing 5.0.1-2 uptodate
> You can also try with the pre-built kdevelop from
> kdevelop.org/download.
It crash, too:
/tmp/.mount_p2AKBA/AppRun: Zeile 35: 21145 Speicherzugriffsfehler
kdevelop $@
I try to reproduce it with public php code
Yes, if you had some example code which reproduces the issue, that'd be great. > Yes, if you had some example code which reproduces the issue, that'd be great.
I'm sorry, can't reproduce it with other simpler code.
I compiled now kdevelop from (Debian-)source by my own and this version
is rock solid. So maybe it's an issue with a (Debian-)lib. But why then
it happens also with the kdevelop-5.2 app image from the project website?
kdeveop in (Debian unstable) is fixed. I cannot reproduce this error any more and I don't know which fix closes this bug. kdevelop is still 5.0.1-2. You can close this bug. Hm strange. Did you update any component(s)? Anyways, if nobody can reproduce it right now, it should be closed I guess. Created attachment 123615 [details]
New crash information added by DrKonqi
kdevelop (5.4.3) using Qt 5.13.1
- What I was doing when the application crashed:
KDevelop crashed while editing PHP code (while editing class properties).
-- Backtrace (Reduced):
#6 Php::ClassDeclaration::prettyName (this=0x0) at ./duchain/declarations/classdeclaration.cpp:66
#7 0x00007f408293cb7e in Php::prettyName (dec=<optimized out>) at ./parser/php.g:649
#8 0x00007f4082458b64 in Php::NormalDeclarationCompletionItem::declarationName (this=0x7f407c928af0) at ./completion/item.cpp:57
#9 0x00007f40e0c74d1c in KDevelop::NormalDeclarationCompletionItem::data (this=this@entry=0x7f407c928af0, index=..., role=role@entry=0, model=model@entry=0x558f1aa08ba0) at ./kdevplatform/language/codecompletion/normaldeclarationcompletionitem.cpp:151
#10 0x00007f4082459254 in Php::NormalDeclarationCompletionItem::data (this=0x7f407c928af0, index=..., role=0, model=0x558f1aa08ba0) at ./completion/item.cpp:183
|