Skip to content

iconv_set_encoding intermittently crashing #117

@chrisgraham

Description

@chrisgraham

Running hphpi I logged all output over a period of time on a live site, and got a lot of intermittent segmentation faults all from iconv_set_encoding. This is the only segmentation fault I got actually, but I got it about 15 times over a few hours. It happens on normal page requests, from different normal entry URLs, and I have double checked to ensure there is nothing special about those cases.

Core dumped: Segmentation fault
    #0 iconv_set_encoding(), called at [/home/ocp/public_html/sources/global2.php:1868]
    #1 convert_data_encodings(), called at [/home/ocp/public_html/sources/global2.php:358]
    #2 init__global2(), called at [:0]
    #3 call_user_func(), called at [/home/ocp/public_html/sources/global.php:171]
    #4 require_code(), called at [/home/ocp/public_html/sources/global.php:420]
    #5 include(), called at [/home/ocp/public_html/backend.php:44]

The actual call will be:

iconv_set_encoding('input_encoding','ISO-8859-1');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions