[unixODBC-support] isql segmentation fault - stuck

Nick Gorham nick at lurcher.org
Mon Nov 18 18:38:18 GMT 2013


On 18/11/13 18:26, sambuca555 wrote:
> Yes that returns an error:
>
> isql -v wibble
> [IM002][unixODBC][Driver Manager]Data source name not found, and no default
> driver specified
> [ISQL]ERROR: Could not SQLConnect
>
> You'll have to excuse my ignorance still a bit of a linux newbie. Is truss
> the a strace command in linux. I tried that and this is what I got: (this is
> just the end of the output)
>
> ......
> open("/usr/local/etc/odbcinst.ini", O_RDONLY) = 3
> fstat64(0x3, 0xffff8098)                = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0x1000) = 0xffffff                            fff7ca7000
> read(3, "[Oracle 11g ODBC driver]\nDescrip"..., 4096) = 229
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0xf7ca7000, 4096)                = 0
> open("/vol1/aimia/.odbcinst.ini", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> time(NULL)                              = 1384798880
> time(NULL)                              = 1384798880
> open("/tmp/duh", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
> fstat64(0x3, 0xffffb244)                = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0x1000) = 0xffffff                            fff7ca7000
> fstat64(0x3, 0xffffb31c)                = 0
> _llseek(3, 89178, [89178], SEEK_SET)    = 0
> write(3, "\t\tUNICODE Using encoding ASCII \'"..., 62) = 62
> close(3)                                = 0
> munmap(0xf7ca7000, 4096)                = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
>
Looks to me like its trying to load what it thinks is a lib, and jumps 
to location 0 and fails.

Not sure why its trying to load

/tmp/duh

But it is.

I would guess its failing in SQLConnect. I would check what driver lib 
the ini files are point it to use.

-- 
Nick


More information about the unixODBC-support mailing list