Bug 76735 - Quanta crashed when opening a file named index.php
Summary: Quanta crashed when opening a file named index.php
Status: RESOLVED DUPLICATE of bug 76478
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-04 16:27 UTC by Marian POPESCU
Modified: 2004-03-07 16:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian POPESCU 2004-03-04 16:27:43 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    RedHat RPMs
Compiler:          gcc 3.3.2 
OS:          Linux

I use Fedora Core 1 with the following configuration:
KDE 3.2 installed from the KDE site.
Kernel 2.4.22-1.2174.nptl

When opening a file named index.php that contains the following code:

[CODE START]
<?php
/* $Id: index.php,v 1.0 2004/02/04 16:21:49 k-fish Exp $ */

$myEnv["module"] = "cvlister";
$myEnv["output"] = "html";
//$myEnv['stdsmenu'] = false;
$myEnv['translation'] = true;

//if((isset($_POST["op"]) && ($_POST["op"] == "exportpdf")) ||
//   (isset($_GET['view']) && (strstr($_GET['view'], 'vcardexport')))) session_cache_limiter("public");

require_once("../../config.inc.php");
require_once(INCLUDEPATH . "container.inc.php");
require_once("inc/cvlister.class.php");
require_once("inc/cvprofiler.class.php");

[CODE END]

Quanta crashes. The same file opens without problems in KDevelop.

The file config.inc.php has the following rights:
Owner=apache
Group=apache
Perm =100600 (octal)

When runing with strace, this is the relevant output:

[CONSOLE OUTPUT START]
<...SNIP...>
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/WWW", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat64("/home/WWW/moregroupware", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat64("/home/WWW/moregroupware/modules", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/WWW/moregroupware/modules/cvlister", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
gettimeofday({1078412003, 973523}, NULL) = 0
open("/tmp/kde-marian/quanta/quantajVde5b.tmp", O_RDWR|O_CREAT|O_EXCL, 0600) = 12
umask(0)                                = 02
umask(02)                               = 0
chmod("/tmp/kde-marian/quanta/quantajVde5b.tmp", 0600) = 0
getgid32()                              = 500
getuid32()                              = 500
chown32("/tmp/kde-marian/quanta/quantajVde5b.tmp", 500, 500) = 0
fcntl64(12, F_GETFL)                    = 0x2 (flags O_RDWR)
fstat64(12, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf111000
_llseek(12, 0, [0], SEEK_CUR)           = 0
fstat64(12, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
read(12, "", 4096)                      = 0
write(12, "<?php\n/* $Id: index.php,v 1.0 20"..., 2132) = 2132
close(12)                               = 0
munmap(0xbf111000, 4096)                = 0
stat64("/home/WWW/moregroupware/modules/cvlister/index.php", {st_mode=S_IFREG|0777, st_size=2132, ...}) = 0
gettimeofday({1078412003, 981318}, NULL) = 0
gettimeofday({1078412003, 981755}, NULL) = 0
gettimeofday({1078412003, 982119}, NULL) = 0
stat64("/home/WWW/moregroupware/config.inc.php", {st_mode=S_IFREG|0600, st_size=2132, ...}) = 0
getgroups32(32, [500, 100])             = 2
geteuid32()                             = 500
write(13, "\0\0\0:", 4)                 = 4
write(13, "W11 500 500 /home/WWW/moregroupw"..., 58) = 58
select(14, [13], NULL, NULL, {0, 0})    = 1 (in [13], left {0, 0})
read(13, "\0\0\0,e11 /home/WWW/moregroupware/"..., 3000) = 96
select(14, [13], NULL, NULL, {0, 0})    = 0 (Timeout)
gettimeofday({1078412003, 993160}, NULL) = 0
gettimeofday({1078412004, 18379}, NULL) = 0
gettimeofday({1078412004, 18704}, NULL) = 0
open("/home/WWW/moregroupware/config.inc.php", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
open("/home/WWW/moregroupware/modules/cvlister/inc/cvlister.class.php", O_RDONLY|O_LARGEFILE) = 12
fstat64(12, {st_mode=S_IFREG|0777, st_size=3809, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0777, st_size=3809, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xbf111000
read(12, "<?php\n/* $Id: cvlister.class.php"..., 4096) = 3809
read(12, "", 4096)                      = 0
read(12, "", 4096)                      = 0
close(12)                               = 0
munmap(0xbf111000, 4096)                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGALRM, {SIG_DFL}, {SIG_DFL}, 8) = 0
alarm(3)                                = 0
close(9)                                = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
close(0)                                = 0

<...SNIP...>

close(1023)                             = -1 EBADF (Bad file descriptor)
write(2, "KCrash: Application \'quanta\' cra"..., 41) = -1 EBADF (Bad file descriptor)
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xbf5c0988) = 4910
alarm(0)                                = 3
waitpid(4910, NULL, 0)                  = 4910
--- SIGCHLD (Child exited) @ 0 (0) ---
write(8, "\0", 1)                       = -1 EBADF (Bad file descriptor)
sigreturn()                             = ? (mask now [SEGV])
exit_group(253)                         = ?
[CONSOLE OUTPUT END]
Comment 1 Kal Kolberg 2004-03-05 19:24:46 UTC
More than likely you are hitting the include - bug... Tracking the information down right now...  Will point to proper bug id as soon as I figure it out.
Comment 2 Kal Kolberg 2004-03-05 19:29:38 UTC
Please refer to bug http://bugs.kde.org/show_bug.cgi?id=76478
Comment 3 Kal Kolberg 2004-03-07 07:27:50 UTC
Have you tried installing the latest quanta release, and if so has that corrected your problem?
Comment 4 Marian POPESCU 2004-03-07 10:46:22 UTC
Where can I find the latest quanta release?
Are there some other dependencies that need to be fullfilled?
Comment 5 Kal Kolberg 2004-03-07 16:13:59 UTC
Main webpages is http://quanta.sourceforge.net/ Try downloading the be release.  I haven't had much luck myself downloading from cvs, though if be doesn't work for you we'll figure out how to do so.

Comment 6 Matt Rogers 2004-03-07 16:18:56 UTC

*** This bug has been marked as a duplicate of 76478 ***
Comment 7 András Manţia 2004-03-07 16:33:21 UTC
The BE on the webpage is a pre-3.2.0 release. Get 3.2.1 (soon to be available) 
or a CVS snapshot from the KDE servers or CVS as described in the README 
file. The HEAD (latest development) module name has been changed to 
"kdewebdev".