I am getting 'Segmentation Fault' in one of my code which is used to crawl different sites. This 'Segmentation fault' appears during some specific site crawling. Even I did a strace for this script, some of the last lines of strace are given.
mremap(0xb76f6000, 540672, 806912, MREMAP_MAYMOVE) = 0xb76f6000
mremap(0xb76f6000, 806912, 806912, MREMAP_MAYMOVE) = 0xb76f6000
mremap(0xb76f6000, 806912, 1212416, MREMAP_MAYMOVE) = 0xb75ce000
mremap(0xb75ce000, 1212416, 1212416, MREMAP_MAYMOVE) = 0xb75ce000
mremap(0xb75ce000, 1212416, 1814528, MREMAP_MAYMOVE) = 0xb75ce000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
The same code is running without giving segmentation fault in another server.
Any help will be appreciated.
Thanking you in anticipation.
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.