in reply to Bus Error

Without any more specific code samples you're probably just going to get generalities and hints (like this . . .).

Normal Perl code shouldn't be generating bus errors. The most likely culprit is a buggy XS extension, or an XS extension that's being passed "bad" data that it's not validating. Check that you're checking the return values from things like module initialization calls (e.g. maybe you're getting an error when you attempt to open the database (hand waving here because I've never used the module in question) but you don't catch that and pass an invalid handle to a query routine; or maybe you're getting an error back from one of your lookups and there's something that needs to be done to put the handle back into a "sane" state before you continue making queries).

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Bus Error
by mreal (Initiate) on Dec 04, 2007 at 16:26 UTC
    All the actual code, that I wrote, is this:

    my ($ora) = Geo::Coder::US->geocode("$office_address, $office_address +_city, $office_address_state, $search_zip_code" );

    The actual modules that are being called are located here:

    Geo::Coder::US -> http://search.cpan.org/src/SDERLE/Geo-Coder-US-1.00/ +US.pm Geo::StreetAddress::US -> http://search.cpan.org/src/SDERLE/Geo-Street +Address-US-0.99/US.pm DB_File -> http://search.cpan.org/src/PMQS/DB_File-1.816/DB_File.pm

    I know, from research I've done on PERL, that Bus Errors don't happen in PERL and I think it might be attributed with the DB_File. I've gotten it to work on Mac OS X 10.4 and 10.5 as well as ActivePerl. I'm just not sure what's wrong with this.

    Edit: g0n - code tags and formatting