Gethostbyname Bus Error
Contents |
23:37 UTC From: dams@php.net Assigned: Status: Closed Package: Network
Bus Error C
related PHP Version: 5CVS-2003-02-19 (dev) OS: MacOSX 10.2 Private bus error linux report: No CVE-ID: View Add Comment Developer Edit [2003-02-19 09:41 UTC] dams@php.net I
How To Solve Bus Error In Linux
encountered this bug on MacOSX, and several version. MacOSX PHP5 dev (12/02/2003) CLI MacOSX PHP5 dev (12/02/2003) CGI MacOSX PHP4.3.0 (built linux bus error core dumped by entropy.ch) Apache module On those specific web sites, there is a 'Bus error' and the whole script halts. This bug was encountered after a long serie of gethostbyname call, and it was also reproduced alone, just like that : //www.editors.coop //www.madisonmarket.coop Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2003-02-19 23:37 UTC] sniper@php.net This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Copyright © 2001-2016 The PHP Group All rights reserved. Last updated: Mon Oct 17 04:01:50 2016 UTC
challenged and removed. (July 2015) (Learn how and when to remove this template message) In computing, a bus error is a fault raised by hardware, notifying
Bus Error Vs Segmentation Fault
an operating system (OS) that a process is trying to access how to debug bus error memory that the CPU cannot physically address: an invalid address for the address bus, hence the name. In
Bus Error 10 Mac
modern use on most architectures these are much rarer than segmentation faults, which occur primarily due to memory access violations: problems in the logical address or permissions. On https://bugs.php.net/22299 POSIX-compliant platforms, bus errors usually result in the SIGBUS signal being sent to the process that caused the error. SIGBUS can also be caused by any general device fault that the computer detects, though a bus error rarely means that the computer hardware is physically broken—it is normally caused by a bug in a program's source code.[citation needed] https://en.wikipedia.org/wiki/Bus_error Bus errors may also be raised for certain other paging errors; see below. Contents 1 Causes 1.1 Non-existent address 1.2 Unaligned access 1.3 Paging errors 2 Example 3 References Causes[edit] There are at least three main causes of bus errors: Non-existent address[edit] Software instructs the CPU to read or write a specific physical memory address. Accordingly, the CPU sets this physical address on its address bus and requests all other hardware connected to the CPU to respond with the results, if they answer for this specific address. If no other hardware responds, the CPU raises an exception, stating that the requested physical address is unrecognized by the whole computer system. Note that this only covers physical memory addresses. Trying to access an undefined virtual memory address is generally considered to be a segmentation fault rather than a bus error, though if the MMU is separate, the processor can't tell the difference. Unaligned access[edit] Most CPUs are byte-addressable, where each unique memory address refers to an 8-bit byte. Most CPUs can access indivi
MacOSX Message ID: 2147483647.1023731416@[172.30.10.3] kay, i think you may be right ..... i built a "vanilla" server and started http://www.nntp.perl.org/group/perl.perl5.porters/2002/06/msg61072.html comparing ....... actually an attempt to test mod_perl2 under apache2 may be pointing in the right direction (?) .... per instructions, i added: LoadModule perl_module modules/mod_perl.so to my httpd.conf file ...... without the LoadModule, apache2 starts/runs fine ........ however, *with* the LoadModule, I get: [root@server]apachectl restart dyld: /usr/local/apache2/sbin/httpd Undefined symbols: _endhostent _endnetent _endprotoent _endservent _freeaddrinfo _getaddrinfo _gethostbyaddr _gethostbyname bus error _gethostent _getnetbyaddr _getnetbyname _getnetent _getprotobyname _getprotobynumber _getprotoent _getservbyname _getservbyport _getservent _sethostent _setnetent _setprotoent _setservent Well that cam as a surprise ..... but would be consistent (?) with a problem when gethostbyaddr is called, no? now, a quick look at the manpage: [root@server]man gethostbyname man: Formatting manual page... GETHOSTBYNAME(3) GETHOSTBYNAME(3) NAME gethostbyname, gethostbyaddr, gethostent, sethostent, end- hostent, herror - bus error c get network host entry SYNOPSIS #include