[pypy-dev] Segmentation Fault

Stuart Axon stuaxo2 at yahoo.com
Wed Jan 7 17:07:39 CET 2015


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 <stuaxo2 at yahoo.com.dmarc.invalid> wrote:
   
 

 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 <amauryfa at gmail.com> 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.

2015-01-07 16:06 GMT+01:00 Stuart Axon <stuaxo2 at yahoo.com.dmarc.invalid>:

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.>>>>
Running my program in it gives a segfault:
$ sbotSegmentation fault

If I run in CPython then things are OK
$ sbotusage: usage: sbot [options] inputfile.bot [args] [-h] [-o FILE] [-w] [-f]                                                  [-t TITLE] [-s] [-dv]                                                  [-p SERVERPORT] [-r REPEAT]                                                  [-g GRAMMAR] [-c] [-v VARS]                                                  script [script_args]usage: sbot [options] inputfile.bot [args]: error: too few arguments


I got this out of gdb:
gdb -ex r --args `which pypy` `which sbot` GNU gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvsCopyright (C) 2014 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.  Type "show copying"and "show warranty" for details.This GDB was configured as "x86_64-linux-gnu".Type "show configuration" for configuration details.For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>.Find the GDB manual and other documentation resources online at:<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".Type "apropos word" to search for commands related to "word"...Reading symbols from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/bin/pypy...(no debugging symbols found)...done.Starting program: /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/bin/pypy /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/bin/sbot[Thread debugging using libthread_db enabled]Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.0x00007fffecdb686e in std::_Rb_tree<std::string, std::pair<std::string const, std::pair<void const*, int> >, std::_Select1st<std::pair<std::string const, std::pair<void const*, int> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::pair<void const*, int> > > >::_M_get_insert_unique_pos(std::string const&) ()   from /usr/lib/x86_64-linux-gnu/libprotobuf.so.8(gdb) 

_______________________________________________
pypy-dev mailing list
pypy-dev at python.org
https://mail.python.org/mailman/listinfo/pypy-dev





-- 
Amaury Forgeot d'Arc

 
    
_______________________________________________
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/20150107/ee65c71d/attachment-0001.html>


More information about the pypy-dev mailing list