Bug 117596 - www/apache22 segfault when using mod_dbd
Summary: www/apache22 segfault when using mod_dbd
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-28 10:40 UTC by Yarodin
Modified: 2009-05-17 10:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yarodin 2007-10-28 10:40:02 UTC
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libpcre.so.0...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /usr/local/lib/libaprutil-1.so.2...done.
Loaded symbols for /usr/local/lib/libaprutil-1.so.2
Reading symbols from /usr/local/lib/mysql/libmysqlclient_r.so.15...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient_r.so.15
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libapr-1.so.2...done.
Loaded symbols for /usr/local/lib/libapr-1.so.2
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/libexec/apache22/mod_dbd.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_dbd.so
Reading symbols from /usr/local/libexec/apache22/mod_authn_file.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authn_file.so
Reading symbols from /usr/local/libexec/apache22/mod_authn_dbd.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authn_dbd.so
Reading symbols from /usr/local/libexec/apache22/mod_authn_default.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authn_default.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_host.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_host.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_user.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_user.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_owner.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_owner.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_default.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_default.so
Reading symbols from /usr/local/libexec/apache22/mod_auth_basic.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_auth_basic.so
Reading symbols from /usr/local/libexec/apache22/mod_file_cache.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_file_cache.so
Reading symbols from /usr/local/libexec/apache22/mod_cache.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_cache.so
Reading symbols from /usr/local/libexec/apache22/mod_disk_cache.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_disk_cache.so
Reading symbols from /usr/local/libexec/apache22/mod_mem_cache.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_mem_cache.so
Reading symbols from /usr/local/libexec/apache22/mod_include.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_include.so
Reading symbols from /usr/local/libexec/apache22/mod_filter.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_filter.so
Reading symbols from /usr/local/libexec/apache22/mod_charset_lite.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_charset_lite.so
Reading symbols from /usr/local/libexec/apache22/mod_deflate.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_deflate.so
Reading symbols from /usr/local/libexec/apache22/mod_log_config.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_log_config.so
Reading symbols from /usr/local/libexec/apache22/mod_env.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_env.so
Reading symbols from /usr/local/libexec/apache22/mod_mime_magic.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_mime_magic.so
Reading symbols from /usr/local/libexec/apache22/mod_cern_meta.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_cern_meta.so
Reading symbols from /usr/local/libexec/apache22/mod_expires.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_expires.so
Reading symbols from /usr/local/libexec/apache22/mod_headers.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_headers.so
Reading symbols from /usr/local/libexec/apache22/mod_unique_id.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_unique_id.so
Reading symbols from /usr/local/libexec/apache22/mod_setenvif.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_setenvif.so
Reading symbols from /usr/local/libexec/apache22/mod_ssl.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_ssl.so
Reading symbols from /usr/lib/libssl.so.4...done.
Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/local/libexec/apache22/mod_mime.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_mime.so
Reading symbols from /usr/local/libexec/apache22/mod_autoindex.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_autoindex.so
Reading symbols from /usr/local/libexec/apache22/mod_suexec.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_suexec.so
Reading symbols from /usr/local/libexec/apache22/mod_cgi.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_cgi.so
Reading symbols from /usr/local/libexec/apache22/mod_negotiation.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache22/mod_dir.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_dir.so
Reading symbols from /usr/local/libexec/apache22/mod_actions.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_actions.so
Reading symbols from /usr/local/libexec/apache22/mod_speling.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_speling.so
Reading symbols from /usr/local/libexec/apache22/mod_alias.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_alias.so
Reading symbols from /usr/local/libexec/apache22/mod_rewrite.so...done.
Loaded symbols for /usr/local/libexec/apache22/mod_rewrite.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x28142185 in my_stat (path=0xbfbfd600 "/usr/local/share/mysql/charsets/Index.xml", stat_area=0xbfbfd560, my_flags=0)
    at my_lib.c:649
649     my_lib.c: No such file or directory.
        in my_lib.c
[New LWP 100242] 

1. For freebsd mysql port maintainer: All of mysql*-client from freebsd ports are not install /usr/local/share/mysql/* wich needed for working with mysql-client at some cases.

2. For apache developers: I don't think that handling mysqlclient error messages at segfault style is a very good idea ;)

Fix: 

Copy all folders from mysql50-server tar.gz to /usr/local/share/mysql/
How-To-Repeat: 1. Install mysql50-client (for example) from ports. (without installed mysql50-server)
2. Install apache22 from ports with mod_dbd and mysql support
3. Try to use it throught mod_authn_dbd (for example)
as described at http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-10-28 10:42:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Yarodin 2007-10-28 11:38:07 UTC
Some notes...
How to fix:
Copy all folders from /usr/local/share/mysql/* of mysql50-server(for example) 
installation to same place of mysql50-client(for example) installation.

At my case:

charsets/                       hungarian/                      romanian/
czech/                          italian/                        russian/
danish/                         japanese/                       serbian/
dutch/                          korean/                         slovak/
english/                        spanish/
estonian/                       norwegian/                      swedish/
french/                         norwegian-ny/                   ukrainian/
german/                         polish/
greek/                          portuguese/

./charsets:
Index.xml     ascii.xml     cp1256.xml    cp852.xml     geostd8.xml   hp8.xml       
koi8u.xml     latin5.xml    macroman.xml
README        cp1250.xml    cp1257.xml    cp866.xml     greek.xml     
keybcs2.xml   latin1.xml    latin7.xml    swe7.xml
armscii8.xml  cp1251.xml    cp850.xml     dec8.xml      hebrew.xml    
koi8r.xml     latin2.xml    macce.xml

./czech:
errmsg.sys

./danish:
errmsg.sys

./dutch:
errmsg.sys

./english:
errmsg.sys

./estonian:
errmsg.sys

./french:
errmsg.sys

./german:
errmsg.sys

./greek:
errmsg.sys

./hungarian:
errmsg.sys

./italian:
errmsg.sys

./japanese:
errmsg.sys

./korean:
errmsg.sys

./norwegian:
errmsg.sys

./norwegian-ny:
errmsg.sys

./polish:
errmsg.sys

./portuguese:
errmsg.sys

./romanian:
errmsg.sys

./russian:
errmsg.sys

./serbian:
errmsg.sys

./slovak:
errmsg.sys

./spanish:
errmsg.sys

./swedish:
errmsg.sys

./ukrainian:
errmsg.sys
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2008-08-22 19:37:56 UTC
Responsible Changed
From-To: clement->pgollucci

I am in a position to at least test/reproduce this.
Comment 4 Philip M. Gollucci freebsd_committer freebsd_triage 2008-12-27 20:25:38 UTC
Responsible Changed
From-To: pgollucci->apache
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2009-05-17 10:10:34 UTC
State Changed
From-To: open->feedback

Hi, 

Could you please test if this issue still exists with an fresh ports 
tree? Thanks for your report. 

- Martin
Comment 6 Yarodin 2009-05-17 10:47:45 UTC
Nope. Your may close this PR.

-- 
Yar Odin <yarodin@gmail.com>
GnuPG Key: http://dl.getdropbox.com/u/935420/Keys/yarodin.asc
GnuPG Key ID: 0x3449D79E
Comment 7 Philip M. Gollucci freebsd_committer freebsd_triage 2009-05-17 10:57:45 UTC
State Changed
From-To: feedback->closed

closed at submitter request, no logner an issue, note: pgollucci@ is 
dubious