Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on snoise4 with lacunarity argument #26

Open
Lrizika opened this issue Feb 19, 2019 · 0 comments
Open

Segfault on snoise4 with lacunarity argument #26

Lrizika opened this issue Feb 19, 2019 · 0 comments

Comments

@Lrizika
Copy link

Lrizika commented Feb 19, 2019

Python 3.6 segfaults when I call snoise4 with any lacunarity argument.

Test program:

#!/usr/bin/python3.6
import noise
noise.snoise4(0, 0, 0, 0, lacunarity=2.0)

Core backtrace:

$ sudo cat ccpp-2019-02-19-06:49:03-23546/core_backtrace
{   "signal": 11
,   "executable": "/usr/bin/python3.6"
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 140687606631050
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1469066
                ,   "function_name": "vgetargskeywords"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687606648654
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1486670
                ,   "function_name": "PyArg_ParseTupleAndKeywords"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687455583620
                ,   "build_id": "652fb4d937c9140ab592c1e38711860b28954d3c"
                ,   "build_id_offset": 11652
                ,   "function_name": "py_noise4"
                ,   "file_name": "/usr/local/lib64/python3.6/site-packages/noise/_simplex.cpython-36m-x86_64-linux-gnu.so"
                }
              , {   "address": 140687606112159
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 950175
                ,   "function_name": "_PyCFunction_FastCallDict"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687606113145
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 951161
                ,   "function_name": "_PyCFunction_FastCallKeywords"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687606554543
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1392559
                ,   "function_name": "call_function"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687606511109
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1349125
                ,   "function_name": "_PyEval_EvalFrameDefault"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687606555602
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1393618
                ,   "function_name": "PyEval_EvalCodeEx"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687606558811
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1396827
                ,   "function_name": "PyEval_EvalCode"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687607117374
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1955390
                ,   "function_name": "run_mod"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687605718994
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 557010
                ,   "function_name": "PyRun_FileExFlags"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687605719954
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 557970
                ,   "function_name": "PyRun_SimpleFileExFlags"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 140687607144204
                ,   "build_id": "9ce628fe0dcd751ed564f0c78cb272f2f53fc4e1"
                ,   "build_id_offset": 1982220
                ,   "function_name": "Py_Main"
                ,   "file_name": "/usr/lib64/libpython3.6m.so.1.0"
                }
              , {   "address": 4197017
                ,   "build_id": "59fb7777d83033efb7a01fe18b93aaa422cb7e80"
                ,   "build_id_offset": 2713
                ,   "function_name": "main"
                ,   "file_name": "/usr/bin/python3.6"
                } ]
        } ]
}

Let me know if there's any more information I should provide.

@Lrizika Lrizika changed the title Core dump on snoise4 with lacunarity argument Segfault on snoise4 with lacunarity argument Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant