php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10473 DSO loading and core dumped
Submitted: 2001-04-24 07:26 UTC Modified: 2001-06-18 20:27 UTC
From: chrischoi at iname dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: Solaris 2.6
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
35 - 30 = ?
Subscribe to this entry?

 
 [2001-04-24 07:26 UTC] chrischoi at iname dot com
I've tried to load the PHP 4.0.4pl1 shared object module(named "libphp4.so"). and I've captured the truss message.

If I don't load the php DSO module, apache works very well.
But whenever I tried to load the php DSO module, apache core dumped.

When I examine the truss message, I think there is no problem to load the php DSO module. But, other function causes the core dump.

I compiled the php DSO module as follows
./configure --with-apxs=/usr/local/apache/bin/apxs \
--enable-debug

Is this a php's bug or my mistake?

* truss message *
-----------------------------------------------------------
open("/web/httpd/libexec/libphp4.so", O_RDONLY) = 5
fstat(5, 0xEFFFB20C)                            = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xEF780000
mmap(0x00000000, 1253376, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xEF400000
munmap(0xEF500000, 57344)                       = 0
mmap(0xEF50E000, 57580, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 1040384) = 0xEF50E000
open("/dev/zero", O_RDONLY)                     = 6
mmap(0xEF51E000, 76524, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0xEF51E000
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0xEF670000
close(5)                                        = 0
open("/usr/lib/libpam.so.1", O_RDONLY)          = 5
fstat(5, 0xEFFFB14C)                            = 0
mmap(0xEF780000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 0) = 0xEF780000
mmap(0x00000000, 90112, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xEF650000
munmap(0xEF656000, 57344)                       = 0
mmap(0xEF664000, 7087, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 16384) = 0xEF664000
close(5)                                        = 0
open("/usr/lib/libresolv.so.2", O_RDONLY)       = 5
fstat(5, 0xEFFFB14C)                            = 0
mmap(0xEF780000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 0) = 0xEF780000
mmap(0x00000000, 139264, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xEF550000
munmap(0xEF55E000, 57344)                       = 0
mmap(0xEF56C000, 6819, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 49152) = 0xEF56C000
mmap(0xEF56E000, 11524, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 6, 0) = 0xEF56E000
close(5)                                        = 0
open("/usr/lib/libm.so.1", O_RDONLY)            = 5
fstat(5, 0xEFFFB14C)                            = 0
mmap(0xEF780000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 0) = 0xEF780000
mmap(0x00000000, 155648, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xEF3D0000
munmap(0xEF3E6000, 57344)                       = 0
mmap(0xEF3F4000, 7309, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 5, 81920) = 0xEF3F4000
close(5)                                        = 0
mprotect(0xEF400000, 1045756, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0xEF400000, 1045756, PROT_READ|PROT_EXEC) = 0
close(6)                                        = 0

...

stat("/web/httpd/conf.www/conf/srm.conf", 0xEFFFF838) = 0
open("/web/httpd/conf.www/conf/srm.conf", O_RDONLY) = 3
fstat(3, 0xEFFFF740)                            = 0
fstat64(3, 0xEFFFD590)                          = 0
ioctl(3, TCGETA, 0xEFFFD51C)                    Err#25 ENOTTY
read(3, " #\n #   T h i s   c o n".., 8192)     = 1599
read(3, 0x000C4A5C, 8192)                       = 0
llseek(3, 0, SEEK_CUR)                          = 1599
close(3)                                        = 0
stat("/web/httpd/conf.www/conf/access.conf", 0xEFFFF838) = 0
open("/web/httpd/conf.www/conf/access.conf", O_RDONLY) = 3
fstat(3, 0xEFFFF740)                            = 0
fstat64(3, 0xEFFFD590)                          = 0
ioctl(3, TCGETA, 0xEFFFD51C)                    Err#25 ENOTTY
read(3, " #\n #   T h i s   c o n".., 8192)     = 1509
read(3, 0x000C4A5C, 8192)                       = 0
llseek(3, 0, SEEK_CUR)                          = 1509
close(3)                                        = 0
    Incurred fault #6, FLTBOUNDS  %pc = 0xEF44DC64
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000018
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000018
        *** process killed ***

* gdb stack log *
----------------------------------------------------------
#0  0xef34dc64 in ?? ()
#1  0xef35b7b0 in ?? ()
#2  0xef6bed44 in ?? ()
#3  0xef6c2824 in ?? ()
#4  0xef6c2ee0 in ?? ()
#5  0xef6d41c8 in ?? ()
Cannot access memory at address 0x10000



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 06:23 UTC] sniper@php.net
Please try the latest release candidate:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 [2001-06-18 20:27 UTC] sniper@php.net
No feedback, considered fixed.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC