Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302376 - mod_perl cause segmentation fault with tr_TR locale
Summary: mod_perl cause segmentation fault with tr_TR locale
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-26 22:04 UTC by Özgür ERİŞEN
Modified: 2012-08-24 17:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Özgür ERİŞEN 2010-01-26 22:04:07 UTC
mod_perl fails in different ways silently fails apache, or causes segmentation fault if the /etc/env.d/02locale is filled with
LANG="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LANGUAGE="tr_TR.UTF-8"
GDM_LANG="tr_US.TR-8"
LC_ALL="tr_TR.UTF-8"
SYSFONT="latarcyrheb-sun16"

if it is filled with en_US.UTF-8 there seems to be no problem, at least apache starts normally. I need mod_perl for ocsinventory-ng

Best Regards

Reproducible: Always

Steps to Reproduce:
1. Fill 02locale with tr_TR.UTF-8
2. restart system
3. mod_perl fails

if you fail to set env variables, mod_perl will start normally, sometimes system does not respect 02locale settings, so several restarts might be useful
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-01-27 16:28:05 UTC
tr locale is known to broke applications but still apache should not crash. Could you try to get backtrace? http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Özgür ERİŞEN 2010-02-02 11:42:26 UTC
Sorry I do not know how to create a backtrace.
I have recompiled apache with debug use falg but I did not able generate a file. Actually I do not have much time. At the moment I am trying to create a new server, hence mod_perl is too broken to be fixed. I have tried the workaround in sabayon based distro and it worked. I have to rebuild whole system and move all data to the newly installed one.

(I played too much with mod_perl, dependencies, apache, etc and tried different use flags etc. but now I have a broken system,  reconcilio --no-exact and perl-cleaner reallyall does not help)
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-02-02 13:19:06 UTC
(In reply to comment #2)
> I have tried the workaround in sabayon based distro and it worked.

BWT, what workaround are you talking about?

In short, to get backtrace you need to rebuild package without -fomit-frame-pointer and with -ggdb in CFLAGS and with splitdebug in FEATURES. After that run ulimit -c unlimited start apache from that shell. Once it crashes, somewhere (in /var/log/apache, pwd or at htdocs) core file may appear. After that to get backtrace all you need is to run gdb --core=corefile /usr/sbin/apache2, or something like that. I don't know specifics of your setup to tell more exact steps. That said, this really will take some time and if time matters it's better to return to this problem later.
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2011-11-19 00:40:16 UTC
Does this issue still exist with 2.0.5?