Bug 117154 - Quanta crashes when I open a test file in the editor
Summary: Quanta crashes when I open a test file in the editor
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: quanta
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: FC2Target
TreeView+ depends on / blocked
 
Reported: 2004-02-29 17:55 UTC by Steve Bergman
Modified: 2007-04-18 17:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-05-10 12:50:15 UTC
Embargoed:


Attachments (Terms of Use)
Backtrace (4.96 KB, text/plain)
2004-02-29 17:57 UTC, Steve Bergman
no flags Details
dbClasses.inc (3.76 KB, text/plain)
2004-03-02 07:20 UTC, Steve Bergman
no flags Details

Description Steve Bergman 2004-02-29 17:55:43 UTC
Description of problem:

Quanta crashes when I open any html file.

Version-Release number of selected component (if applicable):

3.2.0 using kde-redhat-1.4

How reproducible:

Every time.


Steps to Reproduce:
1.Bring up quanta
2.Open a project
3.Open a file in that project.
4.Segfault 
Actual results:


Expected results:

File opened in editor
Additional info:

Comment 1 Steve Bergman 2004-02-29 17:57:17 UTC
Created attachment 98142 [details]
Backtrace

Comment 2 Steve Bergman 2004-02-29 19:07:20 UTC
It seems to happen when I have a particular php include statement in
the file.  Earlier it crashed on loading an regular html file but at
this time it seems only to happen when I include the file with my
database access classes.  I'm investigating further.

Comment 3 Steve Bergman 2004-02-29 19:26:35 UTC
Since this was starting to look like an upstream problem, I looked
upstream.  There is a thread here:

https://mail.kde.org/pipermail/quanta/2004-February/002924.html

That looks something like my problem.  It is supposedly fixed in CVS.
 Just from my own experience here, I would say that quanta in it's
present form in rawhide is completely unusable.

Comment 4 Steve Bergman 2004-03-01 00:37:58 UTC
No.  Not fixed in cvs. The Feb 25, 2004 snapshot goes up in flames in
exactly the same place.

Comment 5 Than Ngo 2004-03-01 09:32:02 UTC
could you please give me a testcase, how i can reprodurce this problem?
Thanks

Comment 6 Steve Bergman 2004-03-01 21:20:29 UTC
I've done some more testing and the problem seems to have to do with
the length of the include file.  It does not seem to care about how
many lines, but it does seem to char about total file size.

I've paired it down and if the include file is 2002 bytes in size it's
fine.  If it is > 2002 bytes in size it crashes.  I checked to make
sure it was not the total size of the include file + the original file
with the include statement.  It's not.  I can increase the size of the
file with the include statement and it does not crash.

Which bug number should I be using?  117154 or 76478?

Comment 7 Steve Bergman 2004-03-02 07:18:24 UTC
Never mind my question about bug number.  I had my bugzillas crossed.

BTW, I have reported this bug upstream at:

http://bugs.kde.org/show_bug.cgi?id=76478

The Quanta guys can't reproduce yet either, so I'm not sure if this is
a rawhide problem or a quanta problem.  BTW, I understand that there
were a few bug introduced at the last minute before 3.2.0 was
released, which were fixed in CVS soon after.  3.2.1 is coming out
shortly and rawhide may want to move to that.

I thought I had already added the following, but apparently I never
committed it.  

Anyway, here is a more detailed description of what I am doing:

1. Bring up quanta
2. Create new project
3. Cut and paste the attached dbClasses.inc code into the editor
4. Save it as dbClasses.inc
5. Click "New" for a new file.
6. Type:

<?php
include('dbClasses.inc');
?>

7. Save this as test.php. (Should crash here. In case not, continue on.)
8. Close quanta.
9. Open quanta.
10. Open the project.
11. Double click on test.php
12. Should have crashed by now.


Comment 8 Steve Bergman 2004-03-02 07:20:04 UTC
Created attachment 98180 [details]
dbClasses.inc

Comment 9 Peter van Egdom 2004-04-08 19:28:03 UTC
I can reproduce this crash using the description in comment #7 with
the package "quanta-3.2.1-1".

Comment 10 Than Ngo 2004-05-10 12:50:15 UTC
it seems that it's fixed in quanta-3.2.2. thanks for your report


Note You need to log in before you can comment on or make changes to this bug.