buffer overflow error when using rasqltimeindex
Jesse Bowling
jessebowling at gmail.com
Wed Aug 29 21:51:31 EDT 2012
Tables do get created:
mysql> show tables;
+----------------------+
| Tables_in_argusTimes |
+----------------------+
| Filename |
| Probes |
| Seconds |
+----------------------+
3 rows in set (0.00 sec)
mysql> desc Filename;
+----------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| filename | varchar(255) | NO | | NULL | |
| size | int(10) unsigned | YES | | NULL | |
| creation | int(10) unsigned | YES | | NULL | |
| hmac | varchar(64) | YES | | NULL | |
| start | int(10) unsigned | YES | | NULL | |
| stop | int(10) unsigned | YES | | NULL | |
| indexed | int(10) unsigned | YES | | NULL | |
+----------+------------------+------+-----+---------+----------------+
8 rows in set (0.00 sec)
mysql> desc Probes;
+-------------+------------------+------+-----+---------------------+-----------------------------+
| Field | Type | Null | Key | Default |
Extra |
+-------------+------------------+------+-----+---------------------+-----------------------------+
| id | int(11) | NO | PRI | NULL |
auto_increment |
| name | varchar(32) | NO | | NULL
| |
| url | varchar(255) | NO | | NULL
| |
| type | varchar(255) | YES | | NULL
| |
| filter | varchar(255) | YES | | NULL
| |
| authname | varchar(255) | YES | | NULL
| |
| authpass | varchar(255) | YES | | NULL
| |
| description | varchar(255) | YES | | NULL
| |
| access | timestamp | NO | | CURRENT_TIMESTAMP | on
update CURRENT_TIMESTAMP |
| created | timestamp | NO | | 0000-00-00 00:00:00
| |
| start | timestamp | NO | | 0000-00-00 00:00:00
| |
| stop | timestamp | NO | | 0000-00-00 00:00:00
| |
| status | int(10) unsigned | YES | | NULL
| |
+-------------+------------------+------+-----+---------------------+-----------------------------+
13 rows in set (0.00 sec)
mysql> desc Seconds;
+-----------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+-------+
| probe | int(10) unsigned | NO | | NULL | |
| second | int(10) unsigned | NO | MUL | NULL | |
| fileindex | int(11) | NO | | NULL | |
| ostart | int(10) unsigned | NO | | NULL | |
| ostop | int(10) unsigned | NO | | NULL | |
+-----------+------------------+------+-----+---------+-------+
5 rows in set (0.00 sec)
mysql> select * from Filename;
Empty set (0.00 sec)
mysql> select * from Probes;
Empty set (0.00 sec)
mysql> select * from Seconds;
Empty set (0.00 sec)
$ rasqltimeindex -r argus.2012.08.27.10.00.00 -w mysql://
root at 127.0.0.1/argusTimes/argus_timetable
*** glibc detected *** rasqltimeindex: munmap_chunk(): invalid pointer:
0x00000000004a685a ***
======= Backtrace: =========
/lib/libc.so.6(+0x77806)[0x7ff897d11806]
rasqltimeindex[0x40b4ca]
rasqltimeindex[0x40ac31]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7ff897cb8c4d]
rasqltimeindex[0x404449]
======= Memory map: ========
00400000-004ce000 r-xp 00000000 08:07 11018009
/usr/local/bin/rasqltimeindex
006cd000-006ce000 r--p 000cd000 08:07 11018009
/usr/local/bin/rasqltimeindex
006ce000-006dd000 rw-p 000ce000 08:07 11018009
/usr/local/bin/rasqltimeindex
006dd000-00b37000 rw-p 00000000 00:00 0
01aa3000-01ae5000 rw-p 00000000 00:00 0
[heap]
7ff89599e000-7ff896c22000 rw-p 00000000 00:00 0
7ff896c22000-7ff896c2e000 r-xp 00000000 08:07 9701369
/lib/libnss_files-2.11.1.so
7ff896c2e000-7ff896e2d000 ---p 0000c000 08:07 9701369
/lib/libnss_files-2.11.1.so
7ff896e2d000-7ff896e2e000 r--p 0000b000 08:07 9701369
/lib/libnss_files-2.11.1.so
7ff896e2e000-7ff896e2f000 rw-p 0000c000 08:07 9701369
/lib/libnss_files-2.11.1.so
7ff896e2f000-7ff896e45000 r-xp 00000000 08:07 9699351
/lib/libgcc_s.so.1
7ff896e45000-7ff897044000 ---p 00016000 08:07 9699351
/lib/libgcc_s.so.1
7ff897044000-7ff897045000 r--p 00015000 08:07 9699351
/lib/libgcc_s.so.1
7ff897045000-7ff897046000 rw-p 00016000 08:07 9699351
/lib/libgcc_s.so.1
7ff897046000-7ff897047000 ---p 00000000 00:00 0
7ff897047000-7ff897847000 rw-p 00000000 00:00 0
7ff897847000-7ff89785e000 r-xp 00000000 08:07 9701350
/lib/libnsl-2.11.1.so
7ff89785e000-7ff897a5d000 ---p 00017000 08:07 9701350
/lib/libnsl-2.11.1.so
7ff897a5d000-7ff897a5e000 r--p 00016000 08:07 9701350
/lib/libnsl-2.11.1.so
7ff897a5e000-7ff897a5f000 rw-p 00017000 08:07 9701350
/lib/libnsl-2.11.1.so
7ff897a5f000-7ff897a61000 rw-p 00000000 00:00 0
7ff897a61000-7ff897a6a000 r-xp 00000000 08:07 9701352
/lib/libcrypt-2.11.1.so
7ff897a6a000-7ff897c6a000 ---p 00009000 08:07 9701352
/lib/libcrypt-2.11.1.so
7ff897c6a000-7ff897c6b000 r--p 00009000 08:07 9701352
/lib/libcrypt-2.11.1.so
7ff897c6b000-7ff897c6c000 rw-p 0000a000 08:07 9701352
/lib/libcrypt-2.11.1.so
7ff897c6c000-7ff897c9a000 rw-p 00000000 00:00 0
7ff897c9a000-7ff897e14000 r-xp 00000000 08:07 9701366
/lib/libc-2.11.1.so
7ff897e14000-7ff898013000 ---p 0017a000 08:07 9701366
/lib/libc-2.11.1.so
7ff898013000-7ff898017000 r--p 00179000 08:07 9701366
/lib/libc-2.11.1.so
7ff898017000-7ff898018000 rw-p 0017d000 08:07 9701366
/lib/libc-2.11.1.so
7ff898018000-7ff89801d000 rw-p 00000000 00:00 0
7ff89801d000-7ff898033000 r-xp 00000000 08:07 9699522
/lib/libz.so.1.2.3.3
7ff898033000-7ff898232000 ---p 00016000 08:07 9699522
/lib/libz.so.1.2.3.3
7ff898232000-7ff898233000 r--p 00015000 08:07 9699522
/lib/libz.so.1.2.3.3
7ff898233000-7ff898234000 rw-p 00016000 08:07 9699522
/lib/libz.so.1.2.3.3
7ff898234000-7ff89824c000 r-xp 00000000 08:07 9701364
/lib/libpthread-2.11.1.so
7ff89824c000-7ff89844b000 ---p 00018000 08:07 9701364
/lib/libpthread-2.11.1.so
7ff89844b000-7ff89844c000 r--p 00017000 08:07 9701364
/lib/libpthread-2.11.1.so
7ff89844c000-7ff89844d000 rw-p 00018000 08:07 9701364
/lib/libpthread-2.11.1.so
7ff89844d000-7ff898451000 rw-p 00000000 00:00 0
7ff898451000-7ff8984d3000 r-xp 00000000 08:07 9699571
/lib/libm-2.11.1.so
7ff8984d3000-7ff8986d2000 ---p 00082000 08:07 9699571
/lib/libm-2.11.1.so
7ff8986d2000-7ff8986d3000 r--p 00081000 08:07 9699571
/lib/libm-2.11.1.so
7ff8986d3000-7ff8986d4000 rw-p 00082000 08:07 9699571
/lib/libm-2.11.1.so
7ff8986d4000-7ff898895000 r-xp 00000000 08:07 10619386
/usr/lib/libmysqlclient_r.so.16.0.0
7ff898895000-7ff898a95000 ---p 001c1000 08:07 10619386
/usr/lib/libmysqlclient_r.so.16.0.0
7ff898a95000-7ff898a9a000 r--p 001c1000 08:07 10619386
/usr/lib/libmysqlclient_r.so.16.0.0
7ff898a9a000-7ff898ae4000 rw-p 001c6000 08:07 10619386
/usr/lib/libmysqlclient_r.so.16.0.0
7ff898ae4000-7ff898ae6000 rw-p 00000000 00:00 0
7ff898ae6000-7ff898b06000 r-xp 00000000 08:07 9701351
/lib/ld-2.11.1.so
7ff898b48000-7ff898cf3000 rw-p 00000000 00:00 0
7ff898d03000-7ff898d05000 rw-p 00000000 00:00 0
7ff898d05000-7ff898d06000 r--p 0001f000 08:07 9701351
/lib/ld-2.11.1.so
7ff898d06000-7ff898d07000 rw-p 00020000 08:07 9701351
/lib/ld-2.11.1.so
7ff898d07000-7ff898d08000 rw-p 00000000 00:00 0
7fffd9f3c000-7fffd9f80000 rw-p 00000000 00:00 0
[stack]
7fffd9fb2000-7fffd9fb3000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
Aborted
Cheers and thanks for the quick response,
Jesse
On Wed, Aug 29, 2012 at 9:40 PM, Carter Bullard <carter at qosient.com> wrote:
> Ooops, I messed up so disregard the last email. You're cool but, look to
> see if your database was generated, and if any of the supporting tables
> were created.
>
> % mysql
> (mysql) use ArgusTimes
> (mysql) show tables
>
> You may not have table creation permissions in mysql which can generate
> weird error messages.
>
> In order ro debug you'll need to configure and compile with the .devel
> and .debug files in your root directory so that when you generate the error
> mesage it will tell us where you are in the code.
>
> Sorry for the inconvenience. I don't get this error on any of my systems,
> but shouldn't be too rough to figure out.
>
> Carter
>
> , Jesse Bowling <jessebowling at gmail.com> wrote:
>
> Hi,
>
> When trying to run rasqltimeindex I get the following:
>
> $ rasqltimeindex --help
> Rasqltimeindex Version 3.0.6.2
> usage: rasqltimeindex -r filename -w mysql://[user[:pass]@]host[:port]/db
> usage: rasqltimeindex -R directory -w mysql://[user[:pass]@]host[:port]/db
> options: -r filename read from file.
> -R directory read files from complete
> directory tree.
> -v verbose mode
> -w mysql://[user[:pass]@]host[:port]/db write indexes to db
> database
>
> $ rasqltimeindex -r argus.2012.08.27.10.00.00 -w mysql://
> root at 127.0.0.1/argusTimes
> *** buffer overflow detected ***: rasqltimeindex terminated
> ======= Backtrace: =========
> /lib/libc.so.6(__fortify_fail+0x37)[0x7fb6131c37e7]
> /lib/libc.so.6(+0xfe6a0)[0x7fb6131c26a0]
> /lib/libc.so.6(+0xfecfb)[0x7fb6131c2cfb]
> rasqltimeindex[0x407306]
> rasqltimeindex[0x4098ea]
> /lib/libc.so.6(__libc_start_main+0xfd)[0x7fb6130e2c4d]
> rasqltimeindex[0x4041c9]
> ======= Memory map: ========
> 00400000-004ad000 r-xp 00000000 08:07 11019088
> /usr/local/bin/rasqltimeindex
> 006ac000-006ad000 r--p 000ac000 08:07 11019088
> /usr/local/bin/rasqltimeindex
> 006ad000-006bc000 rw-p 000ad000 08:07 11019088
> /usr/local/bin/rasqltimeindex
> 006bc000-00b16000 rw-p 00000000 00:00 0
> 01521000-01542000 rw-p 00000000 00:00 0
> [heap]
> 7fb610dc8000-7fb61204c000 rw-p 00000000 00:00 0
> 7fb61204c000-7fb612058000 r-xp 00000000 08:07 9701369
> /lib/libnss_files-2.11.1.so
> 7fb612058000-7fb612257000 ---p 0000c000 08:07 9701369
> /lib/libnss_files-2.11.1.so
> 7fb612257000-7fb612258000 r--p 0000b000 08:07 9701369
> /lib/libnss_files-2.11.1.so
> 7fb612258000-7fb612259000 rw-p 0000c000 08:07 9701369
> /lib/libnss_files-2.11.1.so
> 7fb612259000-7fb61226f000 r-xp 00000000 08:07 9699351
> /lib/libgcc_s.so.1
> 7fb61226f000-7fb61246e000 ---p 00016000 08:07 9699351
> /lib/libgcc_s.so.1
> 7fb61246e000-7fb61246f000 r--p 00015000 08:07 9699351
> /lib/libgcc_s.so.1
> 7fb61246f000-7fb612470000 rw-p 00016000 08:07 9699351
> /lib/libgcc_s.so.1
> 7fb612470000-7fb612471000 ---p 00000000 00:00 0
> 7fb612471000-7fb612c71000 rw-p 00000000 00:00 0
> 7fb612c71000-7fb612c88000 r-xp 00000000 08:07 9701350
> /lib/libnsl-2.11.1.so
> 7fb612c88000-7fb612e87000 ---p 00017000 08:07 9701350
> /lib/libnsl-2.11.1.so
> 7fb612e87000-7fb612e88000 r--p 00016000 08:07 9701350
> /lib/libnsl-2.11.1.so
> 7fb612e88000-7fb612e89000 rw-p 00017000 08:07 9701350
> /lib/libnsl-2.11.1.so
> 7fb612e89000-7fb612e8b000 rw-p 00000000 00:00 0
> 7fb612e8b000-7fb612e94000 r-xp 00000000 08:07 9701352
> /lib/libcrypt-2.11.1.so
> 7fb612e94000-7fb613094000 ---p 00009000 08:07 9701352
> /lib/libcrypt-2.11.1.so
> 7fb613094000-7fb613095000 r--p 00009000 08:07 9701352
> /lib/libcrypt-2.11.1.so
> 7fb613095000-7fb613096000 rw-p 0000a000 08:07 9701352
> /lib/libcrypt-2.11.1.so
> 7fb613096000-7fb6130c4000 rw-p 00000000 00:00 0
> 7fb6130c4000-7fb61323e000 r-xp 00000000 08:07 9701366
> /lib/libc-2.11.1.so
> 7fb61323e000-7fb61343d000 ---p 0017a000 08:07 9701366
> /lib/libc-2.11.1.so
> 7fb61343d000-7fb613441000 r--p 00179000 08:07 9701366
> /lib/libc-2.11.1.so
> 7fb613441000-7fb613442000 rw-p 0017d000 08:07 9701366
> /lib/libc-2.11.1.so
> 7fb613442000-7fb613447000 rw-p 00000000 00:00 0
> 7fb613447000-7fb61345d000 r-xp 00000000 08:07 9699522
> /lib/libz.so.1.2.3.3
> 7fb61345d000-7fb61365c000 ---p 00016000 08:07 9699522
> /lib/libz.so.1.2.3.3
> 7fb61365c000-7fb61365d000 r--p 00015000 08:07 9699522
> /lib/libz.so.1.2.3.3
> 7fb61365d000-7fb61365e000 rw-p 00016000 08:07 9699522
> /lib/libz.so.1.2.3.3
> 7fb61365e000-7fb613676000 r-xp 00000000 08:07 9701364
> /lib/libpthread-2.11.1.so
> 7fb613676000-7fb613875000 ---p 00018000 08:07 9701364
> /lib/libpthread-2.11.1.so
> 7fb613875000-7fb613876000 r--p 00017000 08:07 9701364
> /lib/libpthread-2.11.1.so
> 7fb613876000-7fb613877000 rw-p 00018000 08:07 9701364
> /lib/libpthread-2.11.1.so
> 7fb613877000-7fb61387b000 rw-p 00000000 00:00 0
> 7fb61387b000-7fb6138fd000 r-xp 00000000 08:07 9699571
> /lib/libm-2.11.1.so
> 7fb6138fd000-7fb613afc000 ---p 00082000 08:07 9699571
> /lib/libm-2.11.1.so
> 7fb613afc000-7fb613afd000 r--p 00081000 08:07 9699571
> /lib/libm-2.11.1.so
> 7fb613afd000-7fb613afe000 rw-p 00082000 08:07 9699571
> /lib/libm-2.11.1.so
> 7fb613afe000-7fb613cbf000 r-xp 00000000 08:07 10619386
> /usr/lib/libmysqlclient_r.so.16.0.0
> 7fb613cbf000-7fb613ebf000 ---p 001c1000 08:07 10619386
> /usr/lib/libmysqlclient_r.so.16.0.0
> 7fb613ebf000-7fb613ec4000 r--p 001c1000 08:07 10619386
> /usr/lib/libmysqlclient_r.so.16.0.0
> 7fb613ec4000-7fb613f0e000 rw-p 001c6000 08:07 10619386
> /usr/lib/libmysqlclient_r.so.16.0.0
> 7fb613f0e000-7fb613f10000 rw-p 00000000 00:00 0
> 7fb613f10000-7fb613f30000 r-xp 00000000 08:07 9701351
> /lib/ld-2.11.1.so
> 7fb613f72000-7fb61411d000 rw-p 00000000 00:00 0
> 7fb61412d000-7fb61412f000 rw-p 00000000 00:00 0
> 7fb61412f000-7fb614130000 r--p 0001f000 08:07 9701351
> /lib/ld-2.11.1.so
> 7fb614130000-7fb614131000 rw-p 00020000 08:07 9701351
> /lib/ld-2.11.1.so
> 7fb614131000-7fb614132000 rw-p 00000000 00:00 0
> 7fff83b6a000-7fff83b7f000 rw-p 00000000 00:00 0
> [stack]
> 7fff83bff000-7fff83c00000 r-xp 00000000 00:00 0
> [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
> [vsyscall]
> Aborted
>
> $cat /usr/local/src/argus-clients-3.0.6.2/config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by Argus Client Programs configure 3.0.5, which was
> generated by GNU Autoconf 2.68. Invocation command line was
>
> $ ./configure
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname =
> uname -m = x86_64
> uname -r = 2.6.32-42-generic
> uname -s = Linux
> uname -v = #95-Ubuntu SMP Wed Jul 25 15:56:09 UTC 2012
>
> /usr/bin/uname -p = unknown
> /bin/uname -X = unknown
>
> /bin/arch = unknown
> /usr/bin/arch -k = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo = unknown
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
>
> PATH: /usr/local/sbin
> PATH: /usr/local/bin
> PATH: /usr/sbin
> PATH: /usr/bin
> PATH: /sbin
> PATH: /bin
> <snip>
>
> Anything I can do to help track down the source of this issue?
>
> Cheers,
>
> Jesse
> --
> Jesse Bowling
>
>
>
--
Jesse Bowling
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20120829/83da2e67/attachment.html>
More information about the argus
mailing list