Python Import Bus Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us code to crash python Learn more about Stack Overflow the company Business Learn more about hiring developers python segmentation fault (core dumped) or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack
Python Segmentation Fault Debug
Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to determine the cause for “BUS-Error”
How To Fix Segmentation Fault Python
up vote 0 down vote favorite I'm working on a variscite board with a yocto distribution and python 2.7.3. I get sometimes a Bus error message from the python interpreter. My program runs normally at least some hours or days before the error ocours. But when I get it once, I get it directly when I try to restart my program. I have to reboot before the python bus error core dumped system works again. My program uses only a serial port, a bit usb communication and some tcp sockets. I can switch to another hardware and get the same problems. I also used the python selftest with python -c "from test import testall" And I get errors for these two tests test_getattr (test.test_builtin.BuiltinTest) ... ERROR test_nameprep (test.test_codecs.NameprepTest) ... ERROR And the selftest stops always at test_callback_register_double (ctypes.test.test_callbacks.SampleCallbacksTestCase) ... Segmentation fault But when the systems runs some hours the selftests stops earlier at ctypes.macholib.dyld Bus error I checked the RAM with memtester, it seems to be okay. How I can find the cause for the problems? python linux embedded share|improve this question asked May 1 at 18:06 jeb 43.1k998118 memtester was a good idea, but you may want to check kernel messages (dmesg). Last (and first) time I get a "bus error" a couple of weeks ago was while running some git commands, but it may have been anything since the root cause was clearly my hard drive dying as kernel traces showed, so I'd say this may be your flash as well. –jbm May 2 at 6:15 Usually a bus error on modern systems running li
Site Map ------------------------ Rename Page Delete Page ------------------------ ------------------------ Remove Spam Revert to this revision ------------------------ SlideShow User Login Contents ctypes Bogus Input Exhausting Resources GC/weakref interaction Dangerous Modules Multithreading Other While a lot of effort has gone into making it difficult or impossible to crash the Python interpreter in normal usage,
How To Crash A Computer With Python
there are lots fairly easy ways to crash the interpreter. The BDFL pronounced recently python bus error 10 on the python-dev mailing list: I'm not saying it's uncrashable. I'm saying that if you crash it, it's a bug unless proven python crash dump harebrained.I thought it might be worthwhile to document some ways the interpreter can be crashed -- although most of these are very unlikely to crop up in real code. There is also a directory in SVN http://stackoverflow.com/questions/36970110/how-to-determine-the-cause-for-bus-error repository that demonstrates known ways to crash Python. ctypes def crash(): '''\ crash the Python interpreter... ''' i = ctypes.c_char('a') j = ctypes.pointer(i) c = 0 while True: j[c] = 'a' c += 1 jfrom pyl Bogus Input Through Python 2.4 you could crash the interpreter by redirecting stdin from a directory: % python2.4 -c 'import sys ; print sys.version' 2.4.1 (#3, Jul 28 2005, 22:08:40) [GCC 3.3 20030304 (Apple Computer, Inc. https://wiki.python.org/moin/CrashingPython build 1671)] % python2.4 < . Bus errorStarting with 2.5 the interpreter notices and aborts: % python2.5 -c 'import sys ; print sys.version' 2.5a0 (41847M, Dec 29 2005, 22:21:03) [GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] % python2.5 < . Fatal Python error:
Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware [SOLVED] Python Bus Error http://www.linuxquestions.org/questions/slackware-14/python-bus-error-on-current-4175454741/ on current User Name Remember Me? Password Slackware This Forum is for the discussion of Slackware Linux. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. bus error Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you python segmentation fault need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 03-19-2013, 02:50 PM #1 yenn Member Registered: Jan 2011 Location: Czech Republic Distribution: Slackware, Gentoo, FreeBSD Posts: 165 Rep: Python Bus Error on current Hi, after latest upgrade (Mon Mar 18 22:03:18 UTC 2013) on current som