SV: SV: SV: [mod_python] Problem with mod_python3.0(beta4),python2.2.1and apache 2.0.43

Morten Tryfoss Morten.Tryfoss at 1880nummeropplysning.no
Thu Nov 28 19:16:07 EST 2002


This is the strace output from apache when it segfaults:

[pid  1577] <... accept resumed> {sin_family=AF_INET6, sin6_port=htons(3101), inet_pton(AF_INET6, "::ffff:62.73.255.77", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 8
[pid  1577] getsockname(8, {sin_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, "::ffff:212.125.195.9", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
[pid  1577] fcntl64(8, F_GETFL)         = 0x2 (flags O_RDWR)
[pid  1577] fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid  1577] read(8, 0x81a0f50, 8000)    = -1 EAGAIN (Resource temporarily unavailable)
[pid  1577] poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 300000) = 1
[pid  1577] read(8, "GET / HTTP/1.1\r\nAccept: image/gi"..., 8000) = 288
[pid  1577] gettimeofday({1038506716, 88342}, NULL) = 0
[pid  1577] stat64("/usr/local/apache/htdocs/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid  1577] stat64("/usr/local/apache/htdocs/dses/login/login.py", {st_mode=S_IFREG|0444, st_size=4285, ...}) = 0
[pid  1577] stat64("/usr/local/apache/htdocs/dses/login/login.py", {st_mode=S_IFREG|0444, st_size=4285, ...}) = 0
[pid  1577] stat64("/usr/local/apache/htdocs/dses/login/login.py", {st_mode=S_IFREG|0444, st_size=4285, ...}) = 0
[pid  1577] stat64("/usr/local/apache/htdocs/dses/login/login.p", 0xbfffda6c) = -1 ENOENT (No such file or directory)
[pid  1577] --- SIGSEGV (Segmentation fault) ---
[pid  1574] <... select resumed> )      = ? ERESTARTNOHAND (To be restarted)
[pid  1574] --- SIGCHLD (Child exited) ---
[pid  1574] select(0, NULL, NULL, NULL, {0, 720000}) = 0 (Timeout)
[pid  1574] wait4(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], WNOHANG|WUNTRACED, NULL) = 1577
[pid  1574] gettimeofday({1038506716, 808246}, NULL) = 0
[pid  1574] write(7, "[Thu Nov 28 19:05:16 2002] [noti"..., 87) = 87

Any thoughts?

Morten

-----Opprinnelig melding-----
Fra: Gregory (Grisha) Trubetskoy [mailto:grisha at modpython.org]
Sendt: 5. november 2002 21:38
Til: Morten Tryfoss
Emne: Re: SV: SV: [mod_python] Problem with
mod_python3.0(beta4),python2.2.1and apache 2.0.43



It's impossible to tell what's going on based on these logs... What would
really help me track the problem down is knowing which line(s) of Python
code in your scripts cause this. You can try writing something to the logs
throughout the code to see where exactly it segfaults.

On Tue, 5 Nov 2002, Morten Tryfoss wrote:

> Now I've tried to upgrade Python, and it still segfaults.
>
> Here's some lines from apache's error_log:
>
> [Tue Nov 05 20:51:21 2002] [notice] child pid 29905 exit signal Segmentation fault (11)
> [Tue Nov 05 20:51:56 2002] [info] (104)Connection reset by peer: core_output_filter: writing data to the network
> [Tue Nov 05 20:51:56 2002] [info] (32)Broken pipe: core_output_filter: writing data to the network
> [Tue Nov 05 20:53:08 2002] [notice] child pid 29995 exit signal Segmentation fault (11)
> [Tue Nov 05 20:56:24 2002] [info] (104)Connection reset by peer: core_output_filter: writing data to the network
> [Tue Nov 05 20:56:24 2002] [info] (32)Broken pipe: core_output_filter: writing data to the network
>
> Is it possible that the scripts are the reason for this? (It worked fine on earlier versions of apache/mod_python).
>
>
>
> Morten
>
> -----Opprinnelig melding-----
> Fra: Gregory (Grisha) Trubetskoy [mailto:grisha at modpython.org]
> Sendt: 5. november 2002 20:20
> Til: Morten Tryfoss
> Kopi: mod_python at modpython.org
> Emne: Re: SV: [mod_python] Problem with mod_python3.0(beta4),
> python2.2.1and apache 2.0.43
>
>
>
> The first thing I would try is upgrading to Python 2.2.2. If that doesn't
> solve it, then you need to try to figure out a way to replicate this
> issue, which is easier said than done. So far I haven't had any segfault
> reports for BETA4, so I have no other info to relate this to.
>
> Grisha
>
> On Tue, 5 Nov 2002, Morten Tryfoss wrote:
>
> > SuSE Linux 8.0 (2.4.18)
> >
> > Morten
> >
> > -----Opprinnelig melding-----
> > Fra: Gregory (Grisha) Trubetskoy [mailto:grisha at modpython.org]
> > Sendt: 5. november 2002 19:49
> > Til: Morten Tryfoss
> > Emne: Re: [mod_python] Problem with mod_python3.0(beta4), python
> > 2.2.1and apache 2.0.43
> >
> >
> >
> > Morten - what's your operating system?
> >
> > On Tue, 5 Nov 2002, Morten Tryfoss wrote:
> >
> > >
> > > I start my server up, and everything works ok. But after av while(when
> > > the number of clients raise) some of the apache childs segfaults. Users
> > > who are running on their persistent connections may still use the
> > > server, but new connections are dropped. Any thoughts of what may be
> > > wrong?
> > >
> > > Currently I'm running apache 1.3.x, but some part of my scripts performs
> > > poorly. Running them on apache 2.0 improved a lot (as long as the server
> > > didn't crash).
> > >
> > >
> > > Morten Tryfoss
> > >
> > > _______________________________________________
> > > Mod_python mailing list
> > > Mod_python at modpython.org
> > > http://www.modpython.org/mailman/listinfo/mod_python
> > >
> >
> >
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://www.modpython.org/mailman/listinfo/mod_python
> >
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>





More information about the Mod_python mailing list