electrum / ssb-dbgen

Star Schema Benchmark dbgen

Home Page:http://www.cs.umb.edu/~poneil/publist.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dbgen crashes when generating lineorder.tbl

alanbernstein opened this issue · comments

$ dbgen -s 1 -T l
SSBM (Star Schema Benchmark) Population Generator (Version 1.0.0)
Copyright Transaction Processing Performance Council 1994 - 2000
Abort trap: 6

The resulting file appears incomplete:

$ cat lineorder.tbl
1|1|73801|465569|8273|19960102|5-LOW|0|17|2608718|21280402|4|2504369|92072|2|19960212|TRUCK|
1|2|73801|201928|1630|19960102|5-LOW|0|36|6587676|21280402|9|5994785|109794|6|19960228|MAIL|
1|3|73801|191100|709|19960102|5-LOW|0|8|952880|21280402|10|857592|71466|2|19960305|REG AIR|
1|4|73801|6395|9421|19960102|5-LOW|0|28|3643892|21280402|9|3315941|78083|6|19960330|AIR|
1|5|73801|72080|16246|19960102|5-LOW|0|24|2524992|21280402|10|2272492|63124|4|19960314|FOB|
1|6|73801|46904|13672|19960102|5-LOW|0|32|5922880|21280402|7|5508278|111054|2|19960207|MAIL|
2|1|156004|318510|10657|19961201|1-URGENT|0|38|5808300|6098715|0|5808300|91710|5|19970114|RAIL|
3|1|246628|12891|19585|19931014|5-LOW|0|45|8117505|23639715|6|7630454|108233|0|19940104|AIR|
3|2|246628|57107|16666|19931014|5-LOW|0|49|5214090|23639715|10|4692681|63846|0|19931220|RAIL|
3|3|246628|385345|14090|19931014|5-LOW|0|27|3861891|23639715|6|3630177|85819|7|19931122|SHIP|
3|4|246628|88139|7417|19931014|5-LOW|0|2|225426|23639715|1|223171|67627|6|19940107|TRUCK|
3|5|246628|549283|16067|19931014|5-LOW|0|28|3730328|23639715|4|3581114|79935|0|19940110|FOB|
3|6|246628|186428|17654|19931014|5-LOW|0|26|3937492|23639715|10|3543742|90865|2|19931218|RAIL|
4|1|273553|264105|18120|19951011|5-LOW|0|30|3207270|3359935|3|3111051|64145|8|19951214|REG AIR|
5|1|88970|325708|417|19940730|5-LOW|0|15|2600535|15086669|2|2548524|104021|4|19940831|AIR|
5|2|88970|371781|2590|19940730|5-LOW|0|26|4817202|15086669|7|4479997|111166|8|19940925|FOB|
5|3|88970|112591|8331|19940730|5-LOW|0|50|8017950|15086669|8|7376514|96215|3|19941013|AIR|

This is on OSX 10.12.6

commented

i met the same question.
in my case it arised from build.c, line 259
strcpy(o->lineorders[lcnt].opriority,o->opriority);
sometimes lineorder.opriority exceeds the limit:MAXAGG_LEN

in shared.h, line 120, change MAXAGG_LEN from 10 to 32,
#define MAXAGG_LEN 32 /* max component length for a agg str */
and it works

This worked for me as well.

I experienced a similar crash, and this fix worked for me as well. Thanks so much!

(dev|tpcds100gb) (master) ~/rs/ssb-dbgen$ ./dbgen -s 1 -T l
SSBM (Star Schema Benchmark) Population Generator (Version 1.0.0)
Copyright Transaction Processing Performance Council 1994 - 2000
Do you want to overwrite ./lineorder.tbl ? [Y/N]: y
*** buffer overflow detected ***: ./dbgen terminated
Aborted