Bus Error Core Dumped Python
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta
Bus Error Core Dumped In Linux
Discuss the workings and policies of this site About Us Learn bus error core dumped solaris more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us
Bus Error Core Dumped C
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like bus error core dumped c programming you, helping each other. Join them; it only takes a minute: Sign up Mysterious “Bus error” with web.twisted (code works on one server and does not on the another) up vote 1 down vote favorite I'm just trying to show elements of some database, one by one: from twisted.web import server, resource from twisted.internet import reactor from segmentation fault core dumped python pymongo import Connection import time import pprint class ZenResource(resource.Resource): isLeaf = True connection = Connection('...', 27017) db = connection.data db.authenticate("...","...") iter = db.index.find() def render_GET(self, request): item = self.iter.next() # ... simple processing, skipped some simple strings manipulations: htmlLines = [] for textLine in pprint.pformat(item).splitlines(): htmlLines.append('
%s' % textLine) htmlText = '\n'.join(htmlLines) request.setHeader("Content-type", 'text/html; charset=UTF-8') return htmlText.encode("utf8") reactor.listenTCP(48088, server.Site(ZenResource())) reactor.run() On the one system (Linux hh 3.0.0-16-generic-pae #28-Ubuntu SMP Fri Jan 27 19:24:01 UTC 2012 i686 i686 i386 GNU/Linux) everything works fine. On the other system (Linux localhost 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux) I got the following: root@localhost:~# python zen.py Bus error The only difference between two servers that I think of is (aside form x32 / x64) is that there is a similar twisted process on the second server. This process doing something important and a really do not want to terminate or in any other way interfere with it just to check whether my test code works. python twist
User List Committer List Help Tracker Documentation Tracker Development Report Tracker Problem Issue19337 classification Title: MMAP: Bus error (core dump)
Python Bus Error
under heavy read/write Type: crash Stage: resolved Components: IO Versions: Python 2.7 process Status: closed Resolution: Dependencies: Superseder: Assigned To: Nosy List: haypo, jcea, neologix, pitrou, rbhkamal, sbt, serhiy.storchaka Priority: normal Keywords: Created on 2013-10-21 18:24 by rbhkamal, last changed 2013-10-22 02:43 by jcea. This issue is now closed. Messages http://stackoverflow.com/questions/9320875/mysterious-bus-error-with-web-twisted-code-works-on-one-server-and-does-not-o (5) msg200820 - (view) Author: Ribhi Kamal (rbhkamal) Date: 2013-10-21 18:24 I was about to use memory mapping for something when I discovered that the code example posted on python.org causes python to core dump. %100 reproducible The steps are really simple. 1- Create a file and map it using mmap.mmap http://bugs.python.org/issue19337 2- In a while loop, contintously read the file 3- From another process, like bash, continuously write to the file. After about 5 iterations from the reader, python core dumps. Reader code (python): #!/usr/bin/python2.7 import mmap import time with open("hello.txt", "wb") as f: f.write("Hello Python! 1234123412341234\n") with open("hello.txt", "r+b") as f: # memory-map the file, size 0 means whole file mm = mmap.mmap(f.fileno(), 0) count=0 while count < 100: mm.seek(0) print mm.readline() time.sleep(0.1) count = count + 1 # close the map mm.close() Writer code (linux shell/bash): #!/bin/bash count=0 while true do ((count++)) echo $count > hello.txt done Now run the reader, then launch the writer in a terminal. In my case I get the following output: >110 > >462 > >Bus error (core dumped) Python 2.7.3 Linux 3.2.0-54-generic #82-Ubuntu SMP Tue Sep 10 20:09:12 UTC 2013 i686 i686 i386 GNU/Linux Ubuntu 12.04.3 LTS Intel(R) Core(TM)2 CPU 6300 @ 1.8
Support Search GitHub This repository Watch 55 Star 73 Fork 36 PacificBiosciences/SMRT-Analysis Code Issues 78 Pull https://github.com/PacificBiosciences/SMRT-Analysis/issues/12 requests 0 Projects 0 Wiki Pulse Graphs New issue smrtanalysis-1.4.0 CentOS 5.6 version: Bus error (core dumped) #12 Closed aboffin opened this Issue Apr 17, 2013 · http://www.backtrack-linux.org/forums/showthread.php?t=48995 15 comments Projects None yet Labels invalid Milestone No milestone Assignees No one assigned 4 participants aboffin commented Apr 17, 2013 Hi, I installed smrtanalysis-1.4.0 on bus error a VM running CentOS 6.2 following instructions given in "SMRT Analysis Software Installation (v1.4.0).pdf". However, running smrtpipe.py generates the error:"Bus error (core dumped)". $ uname -a Linux x 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux $ which python /cluster/senthil/programs/smrtanalysis-1.4.0/redist/python2.7/bin/python $ echo $SEYMOUR_HOME /cluster/senthil/programs/smrtanalysis-1.4.0 Any help is appreciated. Thank bus error core you, Sincerely, Senthil Pacific Biosciences member pacbiodevnet commented Apr 17, 2013 Hi Senthil, Did you successfully run a test job through SMRT Portal, per the last step of the install guide? Also, what is the output from the configure_smrtanalysis.sh script? You can find the information at $SEYMOUR_HOME/common/logs/install/ Jane aboffin commented Apr 17, 2013 Hi, I have pasted the configuration script output below. No, I did not run a test job through the SMRT portal. I am only interested in secondary analysis of PacBio data using smrtpipe.py through command line. The folder "/cluster/senthil/programs/smrtanalysis-1.4.0/common/log/" does not contain any files. Please let me know if you need any other information. Thank you, Sincerely, Senthil 8<---------- Start ---------->8 [senthil@scigc-vm-26 smrtanalysis-1.4.0]$ source etc/setup.sh [senthil@scigc-vm-26 smrtanalysis-1.4.0]$ etc/scripts/postinstall/configure_smrtanalysis.sh [INFO]Wed, 17 Apr 2013 12:39:37 - Initiating SMRTAnalysis configuration [localhost] Executing task 'run' [INFO]Wed, 17 Apr 2013 12:39:38 - Top-level smrtanalysis symlink. isCurrent, basename = True,smrtanalysis-1.4.0 Enter the name of this host (if blank, defaults to x): Enter t
Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders Advanced Search Forum BackTrack 5 Forums BackTrack 5 Bugs Trying to install some packages causes 3977 Bus error (core dumped) ldconfig If this is your first visit, be sure to check out the Forum Rules by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 1 of 1 Thread: Trying to install some packages causes 3977 Bus error (core dumped) ldconfig Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-20-2012,11:44 PM #1 AbuDhabi View Profile View Forum Posts Just burned his ISO Join Date Mar 2012 Posts 1 Trying to install some packages causes 3977 Bus error (core dumped) ldconfig I'm attempting to install some packages from the repository, which fails badly. Here is what happens: Code: root@root:~# aptitude install python-pycryptopp python-scapy libpcap-dev Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done The following NEW packages will be installed: libcrypto++8{a} python-pycryptopp python-scapy 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 1,808kB of archives. After unpacking 6,558kB will be used. Do you want to continue? [Y/n/?] Writing extended state information... Done Get:1 http://32.repository.backtrack-linux.org/ revolution/main libcrypto++8 5.6.0-5 [1,246kB] Get:2 http://all.repository.backtrack-linux.org/ revolution/main python-scapy 2.0.1-1 [189kB] Get:3 http://32.repository.backtrack-linux.org/ revolution/main python-pycryptopp 0.5.17-1 [373kB] Fetched 1,808kB in 2min 29s (12.1kB/s) Selecting previou