> Compile it with reduced optimization under clang and see if that makes the problem go away? At least that's a starting point to track down the real problem.
ok thank you. i'll try.
> Can you come up with a simple perl program that shows the issue?
> EDIT: Maybe this is more a thing for bugs.perl.org than perlmonks? It's certainly an interpreter and/or compiler bug.
I don't have proof of concept code. I don't have proof, except this thread where me
and another user reproduced segfaults in two different scripts.
I tried, but cannot reduce to proof-of-concept. Things that if code looks like:
part1;
part2;
part3;
part4;
(partN - is a chunk of code or chunk of 'use' modules etc).
problem goes aways if if remove part1 OR part2 OR part3.
So I cannot reduce code.
More important. Here is the script which reproduce problem for me
(don't try to run it or understand how it works - it's undocummented internal script).
problem is that _it_ does almost _nothing_.
it:
1. reads a line from stdin
2. fork()
3. wait()
4. that's it
10 lines of code, maybe.
But all heavy processing happening in child process. Child process cannot modify state of parent. But if I remove processings in child (or reduce data size), issue gone. It just does not
make sense.
Maybe overall heavy load of system (swapping, etc) or big delay between fork and wait causes the issue... But I was unable to reproduce it with script which simulates similar conditions, yet
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.