login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
openbsd-misc
»
2007
»
September
»
16
Re: Perl segfault on >3.7
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: mickey
Subject:
Re: Perl segfault on >3.7
Date: Sunday, September 16, 2007 - 2:13 pm
On Thu, Sep 13, 2007 at 08:10:35PM -0300, Alejandro Lozanoff wrote:
quoted text
> Thanks for your explanation and quick response, however with > -Uusemymalloc it segfaults almost when it starts. At least it showed > that the problem comes from that way, probably the mymalloc is worse > than the OpenBSD one. :P
memory use-wise it is not. perhaps you have hit a geniune perl bug then.
quoted text
> We found what appears to be a workaround on awstats. > Changing $tokenquery=||''; to $tokenquery='?'; after we traced what > was awstats running when segfaulting. > It's on awstats.pl line 6574 > ----- awstats 6.7 (build 1.892) (c) 2000-2007 Laurent Destailleur ----- > > It runs perfect and we didnt find any problem, but we don't have a clue > as to why that is... We are still looking for a real solution > > Thanks again, > Alejandro. > > mickey wrote: > > On Thu, Sep 13, 2007 at 05:25:32PM -0300, Alejandro Lozanoff wrote: > > > >> Hello list, > >> > > > > re > > > > > >> We recently updated a 3.7 machine running awstat(perl) to parse all our > >> websites logs with the biggest being around 1GB. > >> When parsing the big log it randomly segfaults on 4.1, 3.9 and 3.8, we > >> tried new clean release installs and it still segfaults. On 3.7 it works > >> flawlessly, on 3.8 which has the same perl version as 3.7 (5.8.6) it > >> still segfaults. The problem is completely random but it tends to happen > >> after its been running for a while as it doesnt happen on small logs (or > >> the probability for it to happen on those files is too low ) > >> > >> As the trace below (from the perl.core) shows, it's an out of bounds > >> problem, then we remember about a change on 3.8: > >> > >> "malloc(3) has been rewritten to use the mmap(2) system call, > >> introducing unpredictable allocation addresses and guard pages, which > >> helps in detecting heap based buffer overflows and prevents various > >> types of attacks." > >> > > > > yes. this increases memory fragmentation immensly resulting > > in (practically) less virtual space available for data. > > as an increased penalty (200-300%) for cpu consuption > > on processes w/ lots (20M and more) malloc(3)ed memory... > > as well increased demand for the physical memory that > > on the overcommiting nature of it you perhaps observe. > > a way around it is only to use perl malloc (sbrk-based) > > > > cu >
-- paranoic mickey (my employers have changed but, the name has remained)
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Perl segfault on >3.7
, Alejandro Lozanoff
, (Thu Sep 13, 1:25 pm)
Re: Perl segfault on >3.7
, mickey
, (Thu Sep 13, 2:10 pm)
Re: Perl segfault on >3.7
, Alejandro Lozanoff
, (Thu Sep 13, 4:10 pm)
Re: Perl segfault on >3.7
, mickey
, (Sun Sep 16, 2:13 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Gene Heskett
Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires
Ray Lee
Re: New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Bill Davidsen
Re: Is there a "blackhole" /dev/null directory?
Michael Tokarev
open(O_DIRECT) on a tmpfs?
git
:
Johannes Schindelin
Re: RFC: Flat directory for notes, or fan-out? Both!
demerphq
Re: Git, Mac OS X and German special characters
Uwe
Re: "bash: git-upload-pack: command not found" ??
Andreas Ericsson
Re: why not TortoiseGit
Joe Fiorini
Undo git-rm without commit?
linux-netdev
:
Stephen Hemminger
Re: vlan JMicron Technologies, Inc. JMC250 PCI Express Gigabit Ethernet
Mark Brown
Re: RFC: Nagle latency tuning
Timo Teräs
Re: ip xfrm policy semantics
Chris Snook
Re: RFC: Nagle latency tuning
Tom Herbert
Re: [RFC PATCH 0/3] Simplified 16 bit Toeplitz hash algorithm
openbsd-misc
:
Richard Stallman
Re: [Fwd: Open-Hardware]
Chris Black
failover default route with ospf
Joe Lee Jeffrey
Urgent Enquiry
ropers
Re: [Fwd: Open-Hardware]
askthelist
Packets Per Second Limit?
git-commits-head
:
Linux Kernel Mailing List
mmc: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
x86: add x86@kernel.org to MAINTAINERS
Linux Kernel Mailing List
ath9k: Fix hw crypto configuration for TKIP in AP mode
Linux Kernel Mailing List
libata: Disable ATA8-ACS proposed Trusted Computing features by default
Linux Kernel Mailing List
mac80211: Notify the driver only when the beacon interval changes
Colocation donated by:
Syndicate