Re: [SLUG] Segmentation fault when starting apache

2005-10-20 Thread Michael Lake

Hi all

On Thu Oct 20, Michael Lake wrote:

Since yesterday's Debian upgrade my apache does not work.
I'm on 'testing'.

~$ sudo apachectl start
/usr/sbin/apachectl: line 65:  5417 Segmentation fault  $HTTPD

Im running apache Version: 1.3.29.0.1-3 and libapache-mod-perl 1.29.0.1-3
I had a look at bugs.debian.org and I have found this:

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329045

The person that had the above problem fixed it by commenting out the line:
 LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so in modules.conf

After that the bug report asks about php4 being loaded but there is no 
follow up to that after 19th September.


I have been able to get apache going again by removing apache and
installing apache-perl. (I need to use mod_perl) The difference is that before 
with apache
mod-perl was loaded as a DSO whereas with apache-perl its staticaly compiled in. 
Thats fine but statements like PerlSetEnv in the httpd.conf file give

this error:

Syntax error on line 1036 of /etc/apache-perl/httpd.conf:
 Invalid command 'PerlSetEnv', perhaps mis-spelled or defined by a module
 not included in the server configuration
 /usr/sbin/apache-perlctl start: httpd could not be started

If PerlSetEnv is commented out it starts fine.

The apache daemon binary has got perl compiled in as seen below:

 # ldd /usr/sbin/apache-perl
 libm.so.6 => /lib/libm.so.6 (0x0ff6a000)
 libpthread.so.0 => /lib/libpthread.so.0 (0x0fef9000)
 libcrypt.so.1 => /lib/libcrypt.so.1 (0x0feac000)
 libdb-4.2.so => /usr/lib/libdb-4.2.so (0x0fdab000)
 libperl.so.5.8 => /usr/lib/libperl.so.5.8 (0x0fc4d000)
 libdl.so.2 => /lib/libdl.so.2 (0x0fc2a000)
 libc.so.6 => /lib/libc.so.6 (0x0fadf000)
 libexpat.so.1 => /usr/lib/libexpat.so.1 (0x0fa99000)
 /lib/ld.so.1 (0x3000)


apache-perl needs libapache-mod-perl and I have that and the .so file is
there:
 # dpkg -L libapache-mod-perl | grep so
 /usr/lib/apache/1.3/mod_perl.so
 /usr/lib/perl5/auto/Apache/Leak/Leak.so
 /usr/lib/perl5/auto/Apache/Symbol/Symbol.so
 /usr/lib/perl5/Apache/Resource.pm
 /usr/share/man/man3/Apache::Resource.3pm.gz

BUT maybe it needs to be loaded 

I regenerated the modules.conf file:

# /usr/sbin/apache-modconf apache-perl

and checked it :

# cat modules.conf 


# Autogenerated file - do not edit!
# This file is maintained by the apache-perl package.
# To update it, run the command:
#/usr/sbin/apache-modconf apache-perl
ClearModuleList
AddModule mod_so.c
AddModule mod_macro.c
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule info_module /usr/lib/apache/1.3/mod_info.so
LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule asis_module /usr/lib/apache/1.3/mod_asis.so
LoadModule imap_module /usr/lib/apache/1.3/mod_imap.so
LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
/etc/apache-perl# 

Thus guys I'm lost as to why I cant use PerlSetEnv. 


--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Segmentation fault when starting apache

2005-10-19 Thread Michael Lake

Hi all

Since yesterday's Debian upgrade my apache does not work.
I'm on 'testing'.

~$ sudo apachectl start
/usr/sbin/apachectl: line 65:  5417 Segmentation fault  $HTTPD

Im running apache Version: 1.3.29.0.1-3 and libapache-mod-perl 1.29.0.1-3
I had a look at bugs.debian.org and I have found this:

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=329045

The person that had the above problem fixed it by commenting out the line:
 LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so in modules.conf

After that the bug report asks about php4 being loaded but there is no follow 
up to that after 19th September.

My question to SLUG is:
- is anyone aware of how I can fix my system as I need mod_perl?
- do I add to that bug report? if so what do I need to send them?

Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.


--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Segmentation fault on passwd

2003-08-14 Thread mlh
On Wed, 6 Aug 2003 20:57:48 
Voytek Eymont <[EMAIL PROTECTED]> wrote:

> I've created a new user, and, tried to assign him a password, but I get 'seg
> fault'

Is this the same machine that has a corrupt crt1.o?
Hope you have a good backup -- it sounds sick!

Matt

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Segmentation fault on passwd

2003-08-14 Thread Voytek Eymont
I've created a new user, and, tried to assign him a password, but I get 'seg
fault'

tried both as root, and, as the user himself, same fault

Changing password for user ray.
New password:
(data fseek failed): Invalid argument
Segmentation fault
# su ray
$ passwd
Changing password for user ray.
Changing password for ray
(current) UNIX password:
New password:
(data fseek failed): Invalid argument
Segmentation fault

what should I do, delete the user and create again, or ?


Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Segmentation fault on passwd

2003-08-14 Thread Voytek Eymont
** Reply to note from [EMAIL PROTECTED] Fri, 8 Aug 2003 21:21:18 +1000


> Is this the same machine that has a corrupt crt1.o? 
> Hope you have a good backup -- it sounds sick!

yes

after I reinstalled all the gss stuff, CourierIMAP, zlib, libpng, all compile fine

well, I haven't backed it up, I haven't yet finished installing it, let alone backing
it up.



Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Segmentation fault on passwd

2003-08-07 Thread Matthew Palmer
On Wed, Aug 06, 2003 at 08:57:48PM +, Voytek Eymont wrote:
> I've created a new user, and, tried to assign him a password, but I get 'seg
> fault'
> 
> tried both as root, and, as the user himself, same fault
> 
> Changing password for user ray.
> New password:
> (data fseek failed): Invalid argument
> Segmentation fault
> # su ray
> $ passwd
> Changing password for user ray.
> Changing password for ray
> (current) UNIX password:
> New password:
> (data fseek failed): Invalid argument
> Segmentation fault
> 
> what should I do, delete the user and create again, or ?

Run passwd as root under strace and ltrace, and see where it bombs.  It
won't work as your ordinary user because it won't have suid.

- Matt
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Segmentation fault on passwd

2003-08-07 Thread Voytek Eymont
** Reply to note from Matthew Palmer <[EMAIL PROTECTED]> Thu, 7 Aug 2003 08:42:26 +1000


> Run passwd as root under strace and ltrace, and see where it bombs.  It 


Matthew,

I hope it tells you more than it tells me...

read(5, "", 4096)   = 0
getuid32()  = 0
open("/etc/passwd", O_RDONLY)   = 6
fcntl64(6, F_GETFD) = 0
fcntl64(6, F_SETFD, FD_CLOEXEC) = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=4317, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
021000
read(6, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096
close(6)= 0
munmap(0x40021000, 4096)= 0
_llseek(4, 20480, [20480], SEEK_SET)= 0
read(4, "g\6\0\36h\6\0gh\6\0\255h\6\0\3i\6\0Ji\6\0\226i\6\0\362"..., 4096) = 409
6
fstat64(3, {st_mode=S_IFREG|0600, st_size=828083, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40
021000
_llseek(3, 18446744072216379392, 0xbfff7d50, SEEK_SET) = -1 EINVAL (Invalid argu
ment)
write(2, "(data fseek failed): Invalid arg"..., 38(data fseek failed): Invalid a
rgument
) = 38
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


[EMAIL PROTECTED] root]# ltrace passwd ray
__libc_start_main(0x08049940, 2, 0xb3e4, 0x08048d10, 0x0804a7b0 
__register_frame_info(0x0804c1f4, 0x0804c478, 0xb388, 0x080490ce, 0x08048d10
) = 0x0804c1f4
basename("passwd")= "passwd"
poptGetContext(0x0804b0dc, 2, 0xb3e4, 0xb150, 0) = 0x0804c4b8
poptSetOtherOptionHelp(0x0804c4b8, 0x0804a853, 0, 0, 0) = 0x0804c688
poptGetNextOpt(0x0804c4b8, 0x0804a853, 0, 0, 0)   = -1
poptGetArgs(0x0804c4b8, 0x0804a853, 0, 0, 0)  = 0x0804c650
getuid()  = 0
strlen(0xbc4e, 0x0804c650, 0xb2d8, 0x080497ae, 0) = 3
getpwnam("ray")   = 0x421321b0
printf("Changing password for user %s.\n", "ray"Changing password for user ray.
) = 32
pam_start(0x0804b0dc, 0xbc4e, 0x0804c1dc, 0xb30c, 0x4000b0a6) = 0
pam_fail_delay(0x0804cb58, 0x001e8480, 0x0804c1dc, 0xb30c, 0x4000b0a6) = 0
pam_chauthtok(0x0804cb58, 0, 0x0804c1dc, 0xb30c, 0x4000b0a6 
misc_conv(1, 0xbfff9048, 0xbfff904c, 0, 0xbfffb060New password:
) = 0
(data fseek failed): Invalid argument
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
[EMAIL PROTECTED] root]#



Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Segmentation Fault

2003-06-16 Thread Glen Turner

When this caught me I sent a rant to this mailing list,
so have a look in the archive.
Whoops, the Linux archive :-)

http://www.linuxsa.org.au/mailing-list/2003-03/289.html

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Segmentation Fault

2003-06-16 Thread Glen Turner
Lyle Chapman wrote:
I'm having a problem un-installing rpms and building from source.
Very hard to tell with no error messages in the e-mail.

But RPM under RH8 was a world of pain.  Go to
bugzilla.redhat.com, do a query, and find the
latest working RPM code.
I have RH 8.0 installed and a few weeks ago did a force install and now 
I think I have screwed my rpm db, I have tried rebuilding it but I 
still get errors on building source and removing rpms.
You probably pressed Ctrl-C at some stage.  That stuffs
RPM good and proper in RH8.  Again, the procedure to
fix the corruption is in Red Hat's Bugzilla.
When this caught me I sent a rant to this mailing list,
so have a look in the archive.
--
 Glen Turner Tel: (08) 8303 3936 or +61 8 8303 3936
 Network Engineer  Email: [EMAIL PROTECTED]
 Australian Academic & Research Network   www.aarnet.edu.au
--
 linux.conf.au 2004, Adelaide  lca2004.linux.org.au
 Main conference 14-17 January 2004   Miniconfs from 12 Jan
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Segmentation Fault

2003-06-16 Thread James Collins
> I have RH 8.0 installed and a few weeks ago did a force install and now 
> I think I have screwed my rpm db, I have tried rebuilding it but I 

I assume you've tried rebuilding it?

rpm --rebuilddb

James :) Collins


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Segmentation Fault

2003-06-16 Thread Lyle Chapman
I'm having a problem un-installing rpms and building from source.

I have RH 8.0 installed and a few weeks ago did a force install and now 
I think I have screwed my rpm db, I have tried rebuilding it but I 
still get errors on building source and removing rpms.

Anyone got an idea on how to fix it???

thanks,


Lyle Chapman

Pre-Press Supervisor
Torch Publishing Co.
47 Allingham Street, Condell Park 2200, NSW, Australia

(02) 9795 
(02) 9795 0096
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Segmentation Fault

2003-06-15 Thread Lyle Chapman
I'm having a problem un-installing rpms and building from source.

I have RH 8.0 installed and a few weeks ago did a force install and now 
I think I have screwed my rpm db, I have tried rebuilding it but I 
still get errors on building source and removing rpms.

Anyone got an idea on how to fix it???

thanks,


Lyle Chapman

Pre-Press Supervisor
Torch Publishing Co.
47 Allingham Street, Condell Park 2200, NSW, Australia

(02) 9795 
(02) 9795 0096
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


RE: [SLUG] Segmentation Fault

2001-02-01 Thread Jill Rowling

Hehe (sorry) it reminds me of one of our PCs at home which had a memory
fault whenever it got hot.
1: If I typed a command that was intrinsic to the shell, fine.
2: If I typed a command that had to go to disk, find the program and load it
into memory, it segfaulted.
If I repeated 2: it didn't segfault the second time; it seemed I had to
rewrite the RAM a few times before it would stick.
3: It worked fine when it was cold.

Memory testing (especially upper memory) may be in order...

Regards,

Jill.

--
Jill Rowling, Snr Des. Eng. & Unix System Administrator
Eng. Systems Dept, Aristocrat Technologies Australia
3rd Floor, 77 Dunning Ave Rosebery NSW 2018
Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: [EMAIL PROTECTED]
 


> -Original Message-
> From: George Ferizis [mailto:[EMAIL PROTECTED]]
 Executing "ps 
> afx" will cause a
> segmentation fault. This will only occur if the machine is on 
> for a while.


--
CONFIDENTIALITY NOTICE
--
This email is intended only to be read or used by the addressee.
The information contained in this e-mail message may be confidential
information. If you are not the intended recipient, any use, interference
with, distribution, disclosure or copying of this material is unauthorised
and prohibited. Confidentiality attached to this communication is not waived
or lost by reason of the mistaken delivery to you.

If you have received this message in error, please delete it and notify us
by return e-mail or telephone Aristocrat Technologies Australia Pty Limited
on +61 2 9413 6300.

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



[SLUG] Segmentation Fault

2001-02-01 Thread George Ferizis

Hi all,

I have a small problem with my machine. Executing "ps afx" will cause a
segmentation fault. This will only occur if the machine is on for a while.
It lead me to believe initially that ps cannot deal with how many processes
it running, but after thinking for more then 10 seconds I came to realise
this is not true as I am running close to nothing on the box.

The funny thing is that when "ps afx" is dumping a core, I can execute
"ps ax" and there is no problem whatsoever.

Does anybody have any ideas what this could be?

Oh yeah, I just remembered, it would help if I said I was running RedHat
6.2.

Thanks,
George


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug