Discussion:
[mdb-dev] Segmentation fault in 0.7_rc1
Vitali
2011-09-27 10:26:23 UTC
Permalink
Hello,
 
with the current version I get this error:
server:~/test # mdb-sql Museum.mdb
1 => SELECT Name as museum_name FROM Museum
2 => go
Error at Line : syntax error near as
syntax error near asSegmentation fault
 
 I compiled mdbtools on Suse Linux Enterprise Server 11 SP1 X64
How can I debug this problem?
 
 
Regards
Vitali
Brian Bruns
2011-09-27 11:46:01 UTC
Permalink
Please run it in gdb and provide a backtrace

gdb mdb-sql
(gdb) run Museum.mdb
1=> SELECT ...
2=> go
seg fault
(gdb) where

and post the output.

Brian
Post by Vitali
Hello,
server:~/test # mdb-sql Museum.mdb
1 => SELECT Name as museum_name FROM Museum
2 => go
Error at Line : syntax error near as
syntax error near asSegmentation fault
I compiled mdbtools on Suse Linux Enterprise Server 11 SP1 X64
How can I debug this problem?
Regards
Vitali
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
mdbtools-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mdbtools-dev
m***@vr-net.org
2011-09-27 12:02:38 UTC
Permalink
(gdb) run Museum.mdb
Starting program: /usr/local/bin/mdb-sql Museum.mdb
1 => SELECT Name AS museum_name FROM Museum
2 => go
Error at Line : syntax error near AS
syntax error near AS
Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:31
31      ../sysdeps/x86_64/strlen.S: No such file or directory.
        in ../sysdeps/x86_64/strlen.S
(gdb)
 
 
 
Post by Brian Bruns
Please run it in gdb and provide a backtrace
gdb mdb-sql
(gdb) run Museum.mdb
1=> SELECT ...
2=> go
seg fault
(gdb) where
and post the output.
Brian
Post by Vitali
Hello,
server:~/test # mdb-sql Museum.mdb
1 => SELECT Name as museum_name FROM Museum
2 => go
Error at Line : syntax error near as
syntax error near asSegmentation fault
I compiled mdbtools on Suse Linux Enterprise Server 11 SP1 X64
How can I debug this problem?
Regards
Vitali
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
mdbtools-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mdbtools-dev
m***@vr-net.org
2011-09-27 17:01:03 UTC
Permalink
gdb output with backtrace:
(gdb) run Museum.mdb
Starting program: /usr/local/bin/mdb-sql Museum.mdb
1 => SELECT Name AS museum_name FROM Museum
2 => go
Error at Line : syntax error near AS
syntax error near AS
Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:31
31      ../sysdeps/x86_64/strlen.S: No such file or directory.
        in ../sysdeps/x86_64/strlen.S
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:31
#1  0x00007ffff71a117d in _IO_vfprintf_internal (s=0x7fffffffd7e0,
format=<optimized out>, ap=0x7fffffffd900) at vfprintf.c:1593
#2  0x00007ffff71c2289 in __IO_vsprintf (string=0x6062e0 "",
format=0x7ffff79c64bf "%s near %s", args=0x7fffffffd900) at iovsprintf.c:43
#3  0x00007ffff79c3302 in mdb_sql_error (sql=<optimized out>, fmt=0x7ffff79c64bf
"%s near %s") at mdbsql.c:55
#4  0x00007ffff79c437b in yyparse () at parser.c:1634
#5  0x00007ffff79c3ea1 in mdb_sql_run_query (sql=0x605a90, querystr=0x6191d0
"SELECT Name AS museum_name FROM Museum\n") at mdbsql.c:113
#6  0x0000000000401a5c in run_query (out=0x7ffff74b2780, sql=0x605a90,
mybuf=0x7fffffffd940 "\377\377\377\377", delimiter=
    0xffffffff <Address 0xffffffff out of bounds>) at mdb-sql.c:200
#7  0x000000000040220b in main (argc=<optimized out>, argv=<optimized out>) at
mdb-sql.c:455
(gdb)
 

 
Post by Brian Bruns
Please run it in gdb and provide a backtrace
gdb mdb-sql
(gdb) run Museum.mdb
1=> SELECT ...
2=> go
seg fault
(gdb) where
and post the output.
Brian
Post by Vitali
Hello,
server:~/test # mdb-sql Museum.mdb
1 => SELECT Name as museum_name FROM Museum
2 => go
Error at Line : syntax error near as
syntax error near asSegmentation fault
I compiled mdbtools on Suse Linux Enterprise Server 11 SP1 X64
How can I debug this problem?
Regards
Vitali
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
mdbtools-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mdbtools-dev
Loading...