> From: Marcus Grando
> Sent: Friday, 22 August 2003 8:17 AM

> I try use the freeradius+iodbc+freetds+mssql, but when start freeradius 
> he says "Segmentation fault".

> The freetds (tsql) works fine, the iodbc (odbctest) works fine. Connect, 
> select, insert, works normally, but freeradius not work.
> 
> Freeradius backtrace:
> --skip--
>   sql: group_membership_query = ""
>   sql: connect_failure_retry_delay = 60
>   sql: simul_count_query = ""
>   sql: simul_verify_query = ""
> rlm_sql (sql): Driver rlm_sql_iodbc (module rlm_sql_iodbc) loaded and linked
> rlm_sql (sql): Attempting to connect to [EMAIL PROTECTED]:/radius
> rlm_sql (sql): starting 0
> rlm_sql (sql): Attempting to connect rlm_sql_iodbc #0
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 16384 (LWP 21663)]
> _iodbcdm_sqlerror (henv=0x8104330, hdbc=0x8104358, hstmt=0x62646f69, 
> szSqlstate=0xbfffe3a0 "", pfNativeError=0xbfffe398,
>      szErrorMsg=0x40237400 "", cbErrorMsgMax=256, 
> pcbErrorMsg=0xbfffe39e, bDelete=1) at herr.c:273
> 273           thdbc = pstmt->hdbc;
> (gdb) bt
> #0  _iodbcdm_sqlerror (henv=0x8104330, hdbc=0x8104358, hstmt=0x62646f69, 
> szSqlstate=0xbfffe3a0 "",
>      pfNativeError=0xbfffe398, szErrorMsg=0x40237400 "", 
> cbErrorMsgMax=256, pcbErrorMsg=0xbfffe39e, bDelete=1) at herr.c:273
> #1  0x40251408 in SQLError (henv=0x8104330, hdbc=0x8104358, 
> hstmt=0x62646f69, szSqlstate=0xbfffe3a0 "",
>      pfNativeError=0xbfffe398, szErrorMsg=0x40237400 "", 
> cbErrorMsgMax=256, pcbErrorMsg=0xbfffe39e) at herr.c:503
> #2  0x4023605d in sql_error (sqlsocket=0x62646f69, config=0x8102ec0) at 
> sql_iodbc.c:293
> #3  0x40235ca3 in sql_init_socket (sqlsocket=0x8103ed0, 
> config=0x8102ec0) at sql_iodbc.c:64

It's trying to connect to the database server and failing. Then the
sql_error function is segfaulting... This looks rather like the Oracle
problem we're seeing just now... Yuck.

Hmm. Go to the sql_error function in sql_iodbc.c and move 'return error;'
from after the SQLError call to before it.

Recompile, restart, and see if it still segfaults.

Then try and work out why it's failling to connect to your SQL server.
(Check your parameters and such... See if there's anything in the server
or iodbc logs that indicates a failure or reason.)

--
=========================================================
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]

This is a one line proof...if we start
sufficiently far to the left.
        -- Cambridge University Math Department
---------------------------------------------------------
Random signature generator 3.0 by Paul "TBBle" Hampson
=========================================================


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to