Php Bus Error
Contents |
Start 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
Bus Error (core Dumped) Linux
more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges bus error (core dumped) c Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a bus error core dumped in unix minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Bus error during PHP5 is running a simple script - what? up
Bus Error (core Dumped) Centos
vote 0 down vote favorite When working with PHP scripts, I usually do not have to bother with the underlying system. Today, I have to. A PHP script (cronjob) that has worked fine is crashing since 2 days ago. The cronjob mail as well as running the script via shell both say: Bus-Zugriffsfehler (Speicherabzug geschrieben) If running the same script via PHP-FPM (via nginx) I receive a Bad Gateway which probably means "I have crashed, leave me
Bus Error (core Dumped) C++
alone", as well. Unfortunately, I have no idea how to find more information, let alone, solve the problem. I have already checked the syslog (nothing related to the issue), dmesg (nothing) and the PHP error log (nothing). I also have reinstalled php5-cli, php5-pfm, and even libc6 and restarted the server -- no effect. By the way: The whole thing is running on a virtual server (VPS), which also limits the chances of a hardware error. PHP has been updated to php5-cli (5.5.9+dfsg-1ubuntu4.7) recently, but the script worked fine after that for 9 days and two reboots... Any ideas? Thanks a lot! BurninLeo EDIT: Solution Of course, regularly sending echo from the PHP script is not elegant - but it helps to track problems to function calls. And, of course, the one seeking help did touch something, when he told he did not... The solution was quite simple: A static class method called itself in the first line: class ServerManager { public static function dropCache() { ServerManager::dropCache(); // VERY STUPID foreach (array('active', 'packed', 'old') as $class) { $cacheID = 'cache-'.$class.'-0'; Cache::drop($cacheID); } } } Well, maybe PHP could have been a bit more specific in the cause of the problem. Yet, removing this one solved the problem. ubuntu php virtual-machines php5 php-cli share|improve this question edited Mar 31 '15 at 11:28 asked Mar 31 '15 at 10:12 BurninLeo 303519
Votes:1 Avg. Score:3.0 ± 0.0 Reproduced:1 of 1 (100.0%) Same bus error (core dumped) gulp Version:1 (100.0%) Same OS:1 (100.0%) From: pahan at hubbitus
How To Fix Bus Error (core Dumped)
dot info Assigned: shire Status: Closed Package: Reproducible crash PHP Version: 5.3.0beta1 OS: Linux linux bus error message Private report: No CVE-ID: View Add Comment Developer Edit [2009-03-08 09:37 UTC] pahan at hubbitus dot info Description: ------------ On particular file php http://serverfault.com/questions/679525/bus-error-during-php5-is-running-a-simple-script-what always crashes with Bus Error. I'm try split file to get only sensible data, but I can't. ANY changes in it do predictable behavior and all works as expected. Even add/delete comment, any letter, space in any place... $ php test.bus.error.php Bus error Its contain https://bugs.php.net/47596 many external dependencies, but it is absolutely unneeded for reproducibility: $ php -d"include_path=:::::" test.bus.error.php Bus error [pasha@x-www _SHARED_]$ ulimit -c unlimited [pasha@x-www _SHARED_]$ php -d"include_path=/" test.bus.error.php Bus error (core dumped) This file is my working mess for test and sandboxing :), so, it is really not intended for any use outside and even any use except probes and examples. But as I can't even change 1 letter in it, I place it as is: http://ru.bir.ru/_temp/php-bugs/2/test.bus.error.php.gz Coredump file also available for download: http://ru.bir.ru/_temp/php- bugs/2/core.19581 Reproduce code: --------------- http://ru.bir.ru/_temp/php-bugs/2/test.bus.error.php.gz Sorry, I can't do that smaller. Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2009-03-10 11:12 UTC] pahan at hubbitus dot info This script completely self-contained reproducing script. But as I mention before, I can't make it smaller because it break reproducibility. [2009-03-10 18:23
dumped)" Pages: 1 #1 2013-05-08 22:28:13 gay Member Registered: 2012-12-16 Posts: 73 A hint regarding applications failing with: "Bus error (core dumped)" This happens to me sometimes, for the solution see at the end of https://bbs.archlinux.org/viewtopic.php?id=162972 this posting after the description of the error. From GUII try to start an application (it might be that this only concerns gtk applications such as evince & gthumb but I don't http://arstechnica.com/civis/viewtopic.php?f=20&t=447176 know). The application does not start, instead I am told by my GUI (e17) 'XXXX (the application) stopped running unexpectedly. There was no error message. This error log will be saved as bus error /home/...'. This error message matches the various joke error messages concocted by Microsoft in unhelpfulness. The log is not saved.From TerminalI try to start it from the terminal. The terminal tells me 'Bus error (core dumped)'. Nothing more. I could not find any coredump - though the journalctl log does at least know about this: "May 09 02:03:07 xxxxxx systemd-coredump[9439]: Process 9436 (XXXX) dumped core." bus error (core Running the application with strace is also not very helpful, though it hints that it all has to do with dconf: "open("/etc/dconf/profile/user", O_RDONLY) = -1 ENOENT (No such file or directory) (...) open("/home/xxxxx/.config/dconf/user", O_RDONLY) = 11"Google searches etc.Not helpful. But then again: who is going to talk about google any more in just a couple of years.Solutionremove /home/