1. eubins - change causing machine func errors

Hi

Windows xp

eubin eu-r3523.zip works ok

eubins-mingw32-3598M-20101026.zip and all subsequent eubins produce the error

Error specifics :

C:\EUPHORIA\eusqlite\eusqlite3.ew:319 in function sqlite_open()  
A machine-level exception occurred during execution of this statement  
    filename = {101'e',109'm',112'p',108'l',111'o',121'y',101'e',101'e',115's', 
46'.',115's',113'q',108'l'} 
    mode = 0 
    filename_addr = 34431224 
    err_no = <no value> 
    db = <no value> 
    db_addr = 21988168 
    message_addr (from inlined routine 'sqlite_errmsg' at 45) = <no value> 
    message (from inlined routine 'sqlite_errmsg' at 45) = <no value> 
etc

I have tested all the eubins with mingw32 in the file name, so I can only assume that there has been a change in the compiler that has caused this.

Note - sqlite3 uses the misc.e include file in order to retain eu3 compatability - don't know if this is an issue or not.

Chris

new topic     » topic index » view message » categorize

2. Re: eubins - change causing machine func errors

ChrisB said...

Hi

Windows xp

eubin eu-r3523.zip works ok

eubins-mingw32-3598M-20101026.zip and all subsequent eubins produce the error

Error specifics :

C:\EUPHORIA\eusqlite\eusqlite3.ew:319 in function sqlite_open()  
A machine-level exception occurred during execution of this statement  
    filename = {101'e',109'm',112'p',108'l',111'o',121'y',101'e',101'e',115's', 
46'.',115's',113'q',108'l'} 
    mode = 0 
    filename_addr = 34431224 
    err_no = <no value> 
    db = <no value> 
    db_addr = 21988168 
    message_addr (from inlined routine 'sqlite_errmsg' at 45) = <no value> 
    message (from inlined routine 'sqlite_errmsg' at 45) = <no value> 
etc

I have tested all the eubins with mingw32 in the file name, so I can only assume that there has been a change in the compiler that has caused this.

Note - sqlite3 uses the misc.e include file in order to retain eu3 compatability - don't know if this is an issue or not.

Chris

misc.e shouldn't have anything to do with it. Which machine_func() is the crash occuring in?

new topic     » goto parent     » topic index » view message » categorize

3. Re: eubins - change causing machine func errors

I just wanted to point out that the lack of watcom eubins is due to circumstance, not a deliberate decision to pull them. Watcom's still the official compiler under Windows, and all releases of Euphoria on that platform will continue to be based on Watcom.

new topic     » goto parent     » topic index » view message » categorize

4. Re: eubins - change causing machine func errors

global function sqlite_open(sequence filename, integer mode)  
atom filename_addr, err_no, db, db_addr 
 
        filename_addr = allocate_string(filename)                       --put the filename into memory 
        db_addr = allocate(4)                                           --allocate memory for the db handle 
         
        err_no = c_func(xsqlite3_open, {filename_addr, db_addr})        --call the open function                 THIS ONE 
        db = peek4u(db_addr) 
         
        sqlite_last_err_no = err_no 
        if err_no != SQLITE_OK then 
                sqlite_last_err_desc = sqlite_errmsg(db) 
      fatal(db, "sqlite_open()") 
        else  
                sqlite_last_err_desc = "" 
        end if 
         
        return db 
 
end function 
 
 
new topic     » goto parent     » topic index » view message » categorize

5. Re: eubins - change causing machine func errors

This has been fixed as of 3810. eubins-mingw32-3810-20101103.zip has also been uploaded.

new topic     » goto parent     » topic index » view message » categorize

6. Re: eubins - change causing machine func errors

Hi

Ok, thanks, I'll give it a go.

Chris

new topic     » goto parent     » topic index » view message » categorize

7. Re: eubins - change causing machine func errors

Hi

Yes, that fixed it, ta.

Chris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu