Killed By Signal Bus Error-10
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 Learn more about Stack Overflow the company Business Learn more about hiring
Bus Error C++
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question bus error linux x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them;
Bus Error Vs Segmentation Fault
it only takes a minute: Sign up Bus error vs Segmentation fault up vote 25 down vote favorite 8 Difference between a bus error and a segmentation fault? Can it happen that a program gives a seg fault and how to debug bus error stops for the first time and for the second time it may give a bus error and exit ? c share|improve this question edited May 2 '12 at 12:04 casperOne 58.2k10127202 asked May 8 '09 at 6:56 Thunderboltz 6253915 add a comment| 6 Answers 6 active oldest votes up vote 34 down vote accepted On most architectures I've used, the distinction is that: a SEGV is caused when you access memory you're not meant to (e.g., outside of your address bus error signal 7 space). a SIGBUS is caused due to alignment issues with the CPU (e.g., trying to read a long from an address which isn't a multiple of 4). share|improve this answer answered May 8 '09 at 7:06 paxdiablo 491k1189731422 10 Memory mapped files can also generate SIGBUS. –bk1e May 8 '09 at 16:06 on arm SIGBUS can occur if you read a float from an address that is not 4 byte aligned –shoosh Mar 30 at 7:29 shoosh, I'm pretty certain that's covered by my second bullet point. –paxdiablo Mar 30 at 13:28 add a comment| up vote 11 down vote SIGBUS will also be raised if you mmap() a file and attempt to access part of the mapped buffer that extends past the end of the file, as well as for error conditions such as out of space. If you register a signal handler using sigaction() and you set SA_SIGINFO, it may be possible to have your program examine the faulting memory address and handle only memory mapped file errors. share|improve this answer answered May 8 '09 at 16:04 bk1e 17.9k43760 add a comment| up vote 5 down vote For instance, a bus error might be caused when your program tries to do something that the hardware bus doesn't support. On SPARCs, for instance, trying to read a multi-byte value (such as an int, 32-bits) from an odd address generated
Subject RE: [users@httpd] child pid 27536 exit signal Bus error (10) Date Wed, 25 Aug 2004 15:26:49
Program Terminated With Signal 7 Bus Error
GMT Hello, I tried to debug the problem we are how to solve bus error in linux facing by running the httpd process in a single user mode and then running truss
Sigbus Error Linux
to finally see how the process gets killed - (thanks to John for that..!!!) This is the error that I got in the truss http://stackoverflow.com/questions/838540/bus-error-vs-segmentation-fault log - ------------------------------------------------------------------------- 1529: Incurred fault #5, FLTACCESS %pc = 0xFF3411C0 1529: siginfo: SIGBUS BUS_ADRALN addr=0x0012E0CF 1529: Received signal #10, SIGBUS [default] 1529: siginfo: SIGBUS BUS_ADRALN addr=0x0012E0CF 1529: *** process killed *** ------------------------------------------------------------------------- Apparently the process is getting killed. I don't think I have gdb so that I can debug http://mail-archives.apache.org/mod_mbox/httpd-users/200408.mbox/%3CF3F879E67280B94E913E1E6CB459A57310837DB3@CINMLVEM04.e2k.ad.ge.com%3E the problem further. Any pointers to the solution for the above problem will be appreciated. Rgds, Rohit -----Original Message----- From: Joshua Slive [mailto:jslive@gmail.com] Sent: Wednesday, August 18, 2004 6:51 PM To: users@httpd.apache.org Subject: Re: [users@httpd] child pid 27536 exit signal Bus error (10) On Wed, 18 Aug 2004 19:00:20 -0400, Kaul, Rohit (EM, RAIL, TATA, CONSULTANT) floods console Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hello, I just upgraded a lot of ports on https://lists.freebsd.org/pipermail/freebsd-stable/2005-February/012220.html a 4.9-STABLE machine and many php scripts will not run. phpinfo() works but most scripts kill apache and the following is on httpd-error.log [Tue Feb 22 04:30:33 2005] [notice] child pid 92055 exit signal https://forum.mamp.info/viewtopic.php?f=6&t=14845 Bus error (10) [Tue Feb 22 04:30:46 2005] [notice] child pid 92056 exit signal Bus error (10) httpd in free(): warning: junk pointer, too high to make sense [Tue Feb 22 04:30:47 2005] bus error [notice] child pid 92105 exit signal Bus error (10) This is all on a FreeBSD 4.9-STABLE #0: Thu Oct 30 18:26:33 GMT 2003 apache+mod_ssl-1.3.33+2.8.22 The Apache 1.3 webserver with SSL/TLS functionality apache-ant-1.6.2 Java- and XML-based build tool, conceptually similar to mak php4-4.3.10_2 PHP Scripting Language (Apache Module and CLI) This server has an uptime of 466 days, 8:06, 4 users, load averages: 2.05, 2.21, 2.12 I bus error linux tried to start apache with truss and all I can see is that the line below looks suspicious but other than that I have no ideas... How can I provide more information? How can I trace the httpd child processes? Should I? Before I put in the DNS request to switch over to the yet-untested-in-real-life backup server can someone tell me how to get apache php working again on this machine before all my users wake up? Thanks! stat("/var/run/httpd.pid",0xbfbff700) ERR#2 'No such file or directory' truss -o help.log /usr/local/sbin/apachectl startssl getpid() = 91339 (0x164cb) geteuid() = 0 (0x0) getppid() = 91337 (0x164c9) readlink("/etc/malloc.conf","J",63) = 1 (0x1) mmap(0x0,4096,0x3,0x1002,-1,0x0) = 671817728 (0x280b2000) break(0x80c1000) = 0 (0x0) break(0x80c2000) = 0 (0x0) stat("/var/mail/root",0xbfbff9d0) ERR#2 'No such file or directory' getuid() = 0 (0x0) geteuid() = 0 (0x0) getgid() = 0 (0x0) getegid() = 0 (0x0) open("/usr/local/sbin/apachectl",0x0,01002652540) = 4 (0x4) fcntl(0x4,0x0,0xa) = 10 (0xa) close(4) = 0 (0x0) fcntl(0xa,0x2,0x1) = 0 (0x0) sigaction(SIGINT,0x0,0xbfbff9c8) = 0 (0x0) sigaction(SIGINT,0xbfbff9c8,0xbfbff9b0) = 0 (0x0) sigaction(SIGINT,0x0,0xbfbff9c8) = 0 (0x0) sigaction(SIGINT,0xbfbff9c8,0x0) = 0 (0x0) sigaction(SIGQUIT,0x0,0xbfbff9b8) = 0 (0x0) sigaction(SIGQUIT,0xbfbff9b8,0xbfbff9a0) = 0 (0x0) sigaction(SIGQUIT,0x0,0xbfbff9b8) = 0 (0x0) sigaction(SIGQUIT,0xbfbff9b8,0x0) = 0 (0x0) sigaction(SIGTERM,0x0,0xbfbff9c8) = 0 (0x0) sigaction(SIGTERM,0xbfbff9c8,0xbfbff9b0) = 0 (0x0) sigaction(SI