Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-09-08 Thread Armin Rigo
Hi, On Tue, Sep 8, 2015 at 11:44 AM, Yicong Huang wrote: > In main thread: > rpython_startup_code(); > pypy_init_threads(); > res = pypy_setup_home(..); > > And in other worker thread, after main thread do the initilization: > pypy_thread_attach(); Yes, that's how it should be. > Will there any

Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-09-08 Thread Yicong Huang
Great thanks Armin! I found out we did call python code from different theads. Here are my understanding, please correct me if I am wrong: In main thread: rpython_startup_code(); pypy_init_threads(); res = pypy_setup_home(..); And in other worker thread, after main thread do the initilization: py

Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-09-08 Thread Armin Rigo
Hi, On Tue, Sep 8, 2015 at 9:20 AM, Yicong Huang wrote: > Here are the output of gdb "info threads". We didn't call > "pypy_init_threads()" or "pypy_thread_attach()" in the code. Well, then. Read again the documentation for these two functions: you need to call them if your program is going to

Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-09-08 Thread Yicong Huang
Here are the output of gdb "info threads". We didn't call "pypy_init_threads()" or "pypy_thread_attach()" in the code. (gdb) info threads Id Target Id Frame 132 Thread 0x414ea940 (LWP 32385) 0x003472ad4d98 in epoll_wait () from /lib64/libc.so.6 131 Thread 0x413e9940 (LWP 32384

Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-09-07 Thread Armin Rigo
Hi Yicong, On Tue, Sep 8, 2015 at 5:07 AM, Yicong Huang wrote: >0x7f27ff816b6a <+42>:66 48 8d 3d 8e b3 2f 01 data16 lea > 0x12fb38e(%rip),%rdi# 0x7f2800b11f00 >0x7f27ff816b72 <+50>:66 66 48 e8 6e ec cf ff data16 data16 callq > 0x7f27ff5157e8 <__tls_get_addr@plt> >

Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-09-07 Thread Yicong Huang
Unfortunatelly, I still could not make a simple case to reproduce the issue. However, we observed the same issue happen several times and core dump generated in the application these days. I used gdb to show the disassemble: (gdb) disassemble /rm Dump of assembler code for function rpyvmprof_f_pypy

Re: [pypy-dev] segmentation fault 11 on OS X

2015-09-02 Thread Maciej Fijalkowski
that's certainly a bug. Would be very good to get some sort of info. Can you do PYPYLOG=jit-log-noopt:log as an environment variable and send us the file "log" (it might be huge) On Thu, Sep 3, 2015 at 2:58 AM, Christian Walder wrote: > Hello, > > I'm running into a segmentation fault on pypy. >

[pypy-dev] segmentation fault 11 on OS X

2015-09-02 Thread Christian Walder
Hello, I'm running into a segmentation fault on pypy. Is the attached OS X crash report useful for diagnosing the problem? I haven't succeeded in making a minimal example of this issue, as it occurs in the middle of a complex program, and the same program even runs correctly when processing a sm

Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-08-31 Thread Armin Rigo
Hi Yicong, On 31 August 2015 at 11:29, Yicong Huang wrote: > Yes. Ok. Fwiw, it's unlikely we can figure out what is wrong without being able to reproduce the crash ourselves... Armin ___ pypy-dev mailing list [email protected] https://mail.python.

Re: [pypy-dev] Segmentation fault at rpyvmprof_f_pypy_rrr ()

2015-08-31 Thread Armin Rigo
Hi Yicong, On 31 August 2015 at 11:00, Yicong Huang wrote: > pypy_execute_source() Did you call rpython_startup_code() and pypy_setup_home() before? Armin ___ pypy-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] Segmentation Fault

2015-01-07 Thread Stuart Axon
Here is the line that causes the segfault: https://github.com/shoebot/shoebot/blob/shoebot-gtk3-pgi/shoebot/sbot.py#L76 from shoebot.grammar import DrawBot, NodeBot If I change it to only import one of these then it doesn't segfault. S++ On Wednesday, January 7, 2015 8:57 PM, Stuart Axon

Re: [pypy-dev] Segmentation Fault

2015-01-07 Thread Stuart Axon
Done https://bitbucket.org/pypy/pypy/issue/1955/segfault-on-running-program  S++ On Wednesday, January 7, 2015 8:45 PM, Amaury Forgeot d'Arc wrote: Hi, Please file a bug at https://bitbucket.org/pypy/pypy/issuesAlso, please run "bt" in gdb to show the full stack of the failure.

Re: [pypy-dev] Segmentation Fault

2015-01-07 Thread Amaury Forgeot d'Arc
Hi, Please file a bug at https://bitbucket.org/pypy/pypy/issues Also, please run "bt" in gdb to show the full stack of the failure. 2015-01-07 16:06 GMT+01:00 Stuart Axon : > Hi, >I'm running pypy 2.4.0 on Ubuntu Utopic. > > Running the pypy works OK (though it outputs 'trusty' weirdly): > >

[pypy-dev] Segmentation Fault

2015-01-07 Thread Stuart Axon
Hi,   I'm running pypy 2.4.0 on Ubuntu Utopic. Running the pypy works OK (though it outputs 'trusty' weirdly):  $ pypyPython 2.7.8 (2.4.0+dfsg-1~ppa2+trusty, Sep 25 2014, 04:35:04)[PyPy 2.4.0 with GCC 4.8.2] on linux2Type "help", "copyright", "credits" or "license" for more information. Runn

Re: [pypy-dev] segmentation fault

2012-01-20 Thread Maciej Fijalkowski
On Fri, Jan 20, 2012 at 4:57 PM, Joseph Javier Perla wrote: > I wrote several other missing methods (np.log, np.diag, np.concatenate) and > now I have the full program working.  I would like to add these other > features as well.  (Also, np.sum() should be able to do element-wise sum of > a genera

[pypy-dev] segmentation fault

2012-01-20 Thread Joseph Javier Perla
I wrote several other missing methods (np.log, np.diag, np.concatenate) and now I have the full program working. I would like to add these other features as well. (Also, np.sum() should be able to do element-wise sum of a generator of n-dimensional arrays.) But, now I get a segfault. I was won