Segfaults Ubuntu AMD64
-
Andreas Flack
Segfaults Ubuntu AMD64
Fri October 19 2007 21:10:05 UTCHi!
I'm trying to install Midgard/MidCOM on Kubuntu 7.10 AMD64, so far with my
usual luck: Aegir and Spider-Admin work without problems, but when I try to
access a MidCOM site, all I get are segfaults like this:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47788992377856 (LWP 18263)]
0x0000000000b89460 in ?? ()
(gdb) backtrace
#0 0x0000000000b89460 in ?? ()
#1 0x00002b76bf9eac86 in dba_open_db4 ()
from /usr/lib/apache2/modules/libphp5.so
#2 0x00002b76bf9e9516 in ?? () from /usr/lib/apache2/modules/libphp5.so
#3 0x00002b76bfbc8af2 in ?? () from /usr/lib/apache2/modules/libphp5.so
#4 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#5 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#6 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#7 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#8 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#9 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#10 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#11 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#12 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#13 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#14 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#15 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#16 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#17 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#18 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#19 0x00002b76bfbc859f in ?? () from /usr/lib/apache2/modules/libphp5.so
#20 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#21 0x00002b76bfbbe3f3 in ?? () from /usr/lib/apache2/modules/libphp5.so
#22 0x00002b76bfbb95dc in execute () from /usr/lib/apache2/modules/libphp5.so
#23 0x00002b76bfb9a2b3 in zend_execute_scripts ()
from /usr/lib/apache2/modules/libphp5.so
#24 0x00002b76bfb58298 in php_execute_script ()
from /usr/lib/apache2/modules/libphp5.so
#25 0x00002b76bfc19c42 in ?? () from /usr/lib/apache2/modules/libphp5.so
#26 0x0000000000437ada in ap_run_handler ()
#27 0x000000000043ae8c in ap_invoke_handler ()
#28 0x0000000000447388 in ap_process_request ()
#29 0x00000000004447cc in ?? ()
#30 0x000000000043eab2 in ap_run_process_connection ()
#31 0x000000000044ad71 in ?? ()
#32 0x000000000044af58 in ?? ()
#33 0x000000000044bb3f in ap_mpm_run ()
#34 0x0000000000425921 in main ()
In old mailing list posts, I found the hint that I should try to set CFLGAS
differently, but this didn't help. I also checked the permissions of the
midgard mysql user, they're fine and he can access the DB via phpmyadmin.
The last entry in the debug log before the segfault occurs is
Oct 19 22:56:13 [info] midcom_services_cache::initialize: Auto-Loading module
content
The cache folder looks like this:
425985 4,0K drwxrwsr-x 3 www-data www-data 4,0K 2007-10-19 01:34 .
411565 4,0K drwxr-Sr-x 4 root staff 4,0K 2007-10-19 01:33 ..
425986 4,0K drwxrwsr-x 3 www-data www-data 4,0K 2007-10-19 01:34 midcom
The blob dir looks like this:
906629 4,0K drwxrwxr-x 18 www-data www-data 4,0K 2007-10-19 22:22 .
409969 4,0K drwxr-sr-x 7 root staff 4,0K 2007-10-19 22:45 ..
1152504 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 0
1136290 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 1
1103485 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 2
1103486 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 3
1152392 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 4
1152426 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 5
1103480 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 6
1152076 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 7
1136289 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 8
1152256 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 9
1136263 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 A
1136288 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 B
1152164 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 C
1136210 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 D
1152553 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 E
1152302 4,0K drwxr-x--x 18 www-data www-data 4,0K 2007-10-19 22:22 F
I know I had this or a similar problem before, but I cannot remember how it
was solved. Can anyone help me out?
Bye,
Andreas
_______________________________________________
user mailing list
user@lists.midgard-project.org
http://lists.midgard-project.org/mailman/listinfo/user -
Piotr Pokora
Re: [midgard-user] Segfaults Ubuntu AMD64
Sat October 20 2007 08:19:28 UTCAndreas Flack <flack@contentcontrol-berlin.de> wrote:
Hi!
> #1 0x00002b76bf9eac86 in dba_open_db4 ()
> from /usr/lib/apache2/modules/libphp5.so
It's dba/zend issue.
> In old mailing list posts, I found the hint that I should try to set CFLGAS
> differently, but this didn't help.
What CFLAGS and what for?
Piotras
_______________________________________________
user mailing list
user@lists.midgard-project.org
http://lists.midgard-project.org/mailman/listinfo/user -
Re: [midgard-user] Segfaults Ubuntu AMD64
Sat October 20 2007 08:32:43 UTCPiotr Pokora schrieb:
> Andreas Flack <flack@contentcontrol-berlin.de> wrote:
>
> Hi!
>
>> #1 0x00002b76bf9eac86 in dba_open_db4 ()
>> from /usr/lib/apache2/modules/libphp5.so
>
> It's dba/zend issue.
OK, but is there anything I can do about it? phpinfo says dba is
enabled, the packages are all installed correctly (as far as I can tell
at least), and other PHP applications like phpmyadmin work as expected.
>
>> In old mailing list posts, I found the hint that I should try to set CFLGAS
>> differently, but this didn't help.
>
> What CFLAGS and what for?
That was taken from an old posting by you when I had a similar problem:
____
Go to midgard-php directory.
make clean
unset CFLAGS
export CFLAGS='-g -Wall -fno-strict-aliasing '
make -s
If you get no warning or error , edit Makefile directly and replace CFLAGS.
____
Bye,
Andreas
>
> Piotras
> _______________________________________________
> user mailing list
> user@lists.midgard-project.org
> http://lists.midgard-project.org/mailman/listinfo/user -
Piotr Pokora
Re: [midgard-user] Segfaults Ubuntu AMD64
Sat October 20 2007 11:48:35 UTCAndreas Flack <flack@contentcontrol-berlin.de> wrote:
Hi!
> >> #1 0x00002b76bf9eac86 in dba_open_db4 ()
> >> from /usr/lib/apache2/modules/libphp5.so
> >
> > It's dba/zend issue.
>
> OK, but is there anything I can do about it?
Write simple script which does almost the same what midcom ( just few lines ).
Disable all extensions in php.ini and call script.
>phpinfo says dba is
> enabled, the packages are all installed correctly (as far as I can tell
> at least), and other PHP applications like phpmyadmin work as expected.
And phpmyadmin uses dba_open_db4?
What about other applications?
>
> make clean
> unset CFLAGS
> export CFLAGS='-g -Wall -fno-strict-aliasing '
> make -s
Ah, this one is set to be quite verbose during compilation time.
Piotras
_______________________________________________
user mailing list
user@lists.midgard-project.org
http://lists.midgard-project.org/mailman/listinfo/user -
Re: [midgard-user] Segfaults Ubuntu AMD64
Thu October 25 2007 16:56:56 UTCHi!
Write simple script which does almost the same what midcom ( just few lines ). Disable all extensions in php.ini and call script.
OK, I already tested it on ubuntu gutsy. Looks like it's distro php issue. I disabled all extensions and invoked "such complicated" script:
dba_open("my_cache_file", 'c', "db4");
It segfaults in dba_open_db4, and it's only one db backened compiled in. It doesn't matter if file is created before script is executed. It always segfaults.
No idea how to fix it, except php recompilation...
Piotras
