ID:               31433
 User updated by:  dgrimes at scvl dot com
 Reported By:      dgrimes at scvl dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: SCO OpenServer 5
 PHP Version:      4.3.10
 New Comment:

I configured with --disable-all --with-debug

but I guess that doesn't work like I thought it would. Anyway, I am
recompiling and will have it to you shortly. TERMCAP was not defined
previously. I found the issue during testing. When I log on with at
telnet session I get coredumps but when I use an X session it would
work. So compared the environments and found the difference to be the
TERMCAP setting. I decided to set the TERMCAP variable to the value
used in the X session for the telnet session and PHP then worked.

Dean


Previous Comments:
------------------------------------------------------------------------

[2005-01-07 18:51:49] [EMAIL PROTECTED]

You need to configure with --enable-debug to get meaningful backtrace.
Exactly WHAT was TERMCAP set to when this crash happens..?


------------------------------------------------------------------------

[2005-01-07 15:19:11] dgrimes at scvl dot com

(carn700a:root)[/usr/local/bin] gdb /usr/local/bin/php
/usr/local/bin/core
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-sco3.2v5.0.6"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.2...done.
Loaded symbols for /usr/lib/libsocket.so.2
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libresolv.so.1...done.
Loaded symbols for /usr/lib/libresolv.so.1
#0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
(gdb) bt
#0  0x80021bb2 in getcwd () from /usr/lib/libc.so.1
Cannot access memory at address 0x0
(gdb)

------------------------------------------------------------------------

[2005-01-07 07:40:58] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------

[2005-01-06 21:04:55] dgrimes at scvl dot com

Description:
------------
I am attempting to upgrade from 4.0.6 to 4.3.10. Everything compiled
without warning or errors and installed fine. I eliminated everything
from configure: 

configure --disable-all
make
make install

I want a CGI version from this compile. When I execute php from the
command line, it coredumps with a memory fault. All I have to do is
type php at the command line and it coredumps. I finally figured out it
has something to do with the TERMCAP environment variable. When I set it
to a valid TERMCAP value php will run fine.

TERMCAP Assignment:

TERMCAP='sa|scoansi|scoansi80x25|SCO ANSI Color Console:        :      
:km:mm=\
E[=10L:mo=\E[=11L:rp=\E[%d;%db:vi=\E[=0c:ve=\E[=1c:vs=\E[=2c:  
:am:be:eo:mi:xo:
:      
:LE=\E[%dD:RI=\E[%dC:DO=\E[%dD:UP=\E[%dA:cm=\E[%i%d;%dH:DC=\E[%dP:     

:DL=\E[%dM:IC=\E[%d@:AL=\E[%dL:S1=\E[=%dg:cd=\E[J:cb=\E[1K:ce=\E[K:    
:ho=\E[H
:RA=\E[?7l:SA=\E[?7h:@1=\E[H:@7=\E[F:kh=\E[H:  
:kD=^_:kI=\E[L:kN=\E[G:%5=\E[G:k
P=\E[I:%8=\E[I:kB=\E[Z:kl=\E[D:
:kd=\E[B:kr=\E[C:ku=\E[A:k1=\E[M:k2=\E[N:k3=\E[O
:k4=\E[P:k5=\E[Q:      
:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:k;=\E[V:F1=\E[W:F2=\E[X
:      
:mb=\E[5m:md=\E[1m:mr=\E[7m:mk=\E[8m:so=\E[7m:se=\E[27m:me=\E[m:       

:[EMAIL PROTECTED]/.\231-\230,.`\204~\207i\150y\163z\162{\143
};;IIHH<<JJKKMM::LL99NN88UUTT>>OOQQFF55XX77VVSS==PPRRGG66WW:   
:as=\E[12m:ae=\E
[10m:cs=\E[%i%d;%dr:wi=\E[%i%d;%d;%i%d;%dr:MC=\E[=r:   
:oc=\E[51m:Co#8:pa#64:AB
=\E[4%dm:Sb=\E[4%dm:AF=\E[3%dm:Sf=\E[3%dm:op=\E[0;37;40m:'

Once TERMCAP is assigned, php runs OK. I am installing on SCO
OperServer 5 Version 5.0.6. If you need any additional information
please let me know.

Dean



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31433&edit=1

Reply via email to