[pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

Yicong Huang hengha.mao at gmail.com
Mon Aug 31 11:41:10 CEST 2015


I am not sure whether it is a bug of pypy.
I tried extracting the code from the whole programme, but it worked
correctly.

rpython_startup_code();
int res = pypy_setup_home("/usr/local/pypy/libpypy-c.so", 1);
char *b = "import
sys\nsys.path.insert(0,'job_runtime/lib/python2.7/site-packages/udf')\00010260";
pypy_execute_source(b);

I will do some further experiments. And if there are any methods to debug,
I could follow.

Thanks!


On Mon, Aug 31, 2015 at 5:15 PM, Maciej Fijalkowski <fijall at gmail.com>
wrote:

> Can you please file a bug on either pypy or vmprof-python?
>
> On Mon, Aug 31, 2015 at 11:00 AM, Yicong Huang <hengha.mao at gmail.com>
> wrote:
> > Hi,
> >
> > We observed the program was cored dump. And examing the core file, we
> found
> > the call stack:
> >
> > #0  0x00007f26487e6b82 in rpyvmprof_f_pypy_rrr () from
> > /usr/local/pypy/libpypy-c.so
> > #1  0x00007f26494a797a in rpyvmprof_t_pypy_rrr () from
> > /usr/local/pypy/libpypy-c.so
> > #2  0x00007f26487a1ad4 in
> > pypy_g_appexec___src__glob___________________import_sys () from
> > /usr/local/pypy/libpypy-c.so
> > #3  0x00007f26486f980b in pypy_g.pypy_execute_source () from
> > /usr/local/pypy/libpypy-c.so
> > #4  0x00007f26486f9994 in pypy_g_pypy_execute_source_ptr () from
> > /usr/local/pypy/libpypy-c.so
> > #5  0x00007f26484e6f42 in pypy_execute_source_ptr () from
> > /usr/local/pypy/libpypy-c.so
> > #6  0x00007f26484e6d82 in pypy_execute_source () from
> > /usr/local/pypy/libpypy-c.so
> > ...
> >
> > And debugging the core file, the char* buffer passed to
> > pypy_execute_source() was:
> > (gdb) print pyExBuffer
> > $1 = "import
> >
> sys\nsys.path.insert(0,'job_runtime/lib/python2.7/site-packages/udf')\000/1440989742122"...
> >
> > The code was to add a directory to sys.path().
> > The error was not reproduceable by extracting the piece of code from the
> > whole programme, and I've no ideas why the segmentation fault happened.
> >
> > Does anyone knows what the function "rpyvmprof_f_pypy_rrr ()" did? And
> are
> > there any methods to debug and found out the cause?
> >
> >
> >
> > _______________________________________________
> > pypy-dev mailing list
> > pypy-dev at python.org
> > https://mail.python.org/mailman/listinfo/pypy-dev
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150831/49e7e3e0/attachment-0001.html>


More information about the pypy-dev mailing list