Bug #13646: Bad SQL kills httpd child
| From: | ceo at l-i-e dot com | Date: | Thu, 11 Oct 2001 22:24:25 +0000 |
| Subject: | Bug #13646: Bad SQL kills httpd child | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67807@lists.php.net to get a copy of this message | ||
From: ceo@l-i-e.com
Operating system: Mandrake 8.0
PHP version: 4.0.6
PHP Bug Type: Sybase-ct (ctlib) related
Bug description: Bad SQL kills httpd child
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-sybase-ct=/usr/local/freetds \
--with-mssql \
--without-gd \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-zlib
Apache 1.3.20
PHP 4.0.6
MS SQL 7.0:
Microsoft SQL Server 7.00 - 7.00.623 (Intel X86) Nov 27
1998 22:20:07 Copyright (c) 1988-1998 Microsoft
Corporation Standard Edition on Windows NT 5.0 (Build
2195: Service Pack 2)
If my SQL is "bad" -- using non-existent table etc, I get
a "lost connection" to server, and this in Apache
error_log:
FATAL: emalloc(): Unable to allocate -2147483648 bytes
Backtrace from, I think, this particular issue...
#0 _dl_lookup_versioned_symbol (undef_name=0x804bcec
"kill", undef_map=0x40015a40, ref=0xbffff1ec,
symbol_scope=0x40015b94, version=0x40025820,
reloc_type=7, explicit=0) at do-lookup.h:80
80 do-lookup.h: No such file or directory.
---Type <return> to continue, or q <return> to quit---
in do-lookup.h
(gdb) bt
#0 _dl_lookup_versioned_symbol (undef_name=0x804bcec
"kill", undef_map=0x40015a40, ref=0xbffff1ec,
symbol_scope=0x40015b94, version=0x40025820,
reloc_type=7, explicit=0) at do-lookup.h:80
#1 0x4000d360 in fixup (l=0x40015a40, reloc_offset=976)
at dl-runtime.c:89
#2 0x4000d510 in _dl_runtime_resolve () at
dl-runtime.c:203
#3 0x400a5b68 in killpg () from /lib/libc.so.6
#4 0x4000d360 in fixup (l=0x80bc288, reloc_offset=976) at
dl-runtime.c:89
#5 0x4000d510 in _dl_runtime_resolve () at
dl-runtime.c:203
#6 0x0806175f in main ()
#7 0x400950de in __libc_start_main () from /lib/libc.so.6
(gdb)
--
Edit bug report at: http://bugs.php.net/?id=13646&edit=1