Web Hosting Talk







View Full Version : Getting a seg fault with mod_layout


dollar
02-24-2005, 07:43 AM
CentOS 3.4, DirectAdmin, Apache 1.3.33 php4.3.10

I went ahead and downloaded the source to mod_layout.
Untarred it.
Then ran:
make
make install

No errors came up.

Went into the virtual host and added:

LayoutFooter "Copyright Foobar, 2000"

And it comes up with this:

[root@pong mod_layout-3.2.1]# service httpd configtest
Warning: DocumentRoot [/usr/local/frontpage/version5.0/admin-exes] does not exist
Trying to insert </body>
ADDING LAYOUT:</body> (3) (4)(1)
/usr/sbin/apachectl: line 199: 26682 Segmentation fault $HTTPD -t


Any tips?

assistanz247
02-24-2005, 07:52 AM
Edit the file ' vi /usr/sbin/apachectl ' and go to the line 199 and check which command is trying to execute.

dollar
02-24-2005, 07:54 AM
line 199 for ya:

done


that's all it says


A little above said line:


EOF
ERROR=2
;;

esac

done

exit $ERROR

RHCE
02-24-2005, 10:03 AM
Do you have any control panel installed in your server?

Are you trying to build mod_layout from source?

dollar
02-24-2005, 10:11 AM
Originally posted by RHCE
Do you have any control panel installed in your server?

Are you trying to build mod_layout from source?

Originally posted by justadollarhostin

CentOS 3.4, DirectAdmin, Apache 1.3.33 php4.3.10

I went ahead and downloaded the source to mod_layout.
Untarred it.
Then ran:
make
make install

Steven
02-24-2005, 10:48 AM
try running a strace on it and pasting the surrounding lines when it fails.

dollar
02-24-2005, 10:55 AM
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8074020, [], SA_RESTORER, 0x138ec8}, {SIG_DFL}, 8) = 0
waitpid(-1, Warning: DocumentRoot [/usr/local/frontpage/version5.0/admin-exes] does not exist
Trying to insert </body>
ADDING LAYOUT:</body> (3) (4)(1)
[{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0) = 27533
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb73e6000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb73e5000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb73e5000, 4096) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "/usr/sbin/apachectl: line 199: 2"..., 71/usr/sbin/apachectl: line 199: 27533 Segmentation fault $HTTPD -t
) = 71