JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.95k stars 386 forks source link

core dump in #0 0x0000000000410467 in __lookup (this=0x7fcb501e7010, key=0x7fca7c0d2160 "ET_/test") at hash.c:428 #95

Open fanyeren opened 7 years ago

fanyeren commented 7 years ago

private BOOLEAN __lookup(HASH this, char key) { int x; NODE node;

if (key == NULL) { return FALSE; } x = __genkey(this->size, key); for (node = this->table[x]; node != NULL; node = node->next) { if (!strcmp(node->key, key)) { return TRUE; } } return FALSE; }

when i run siege -c 300 -t 1m -b xxx, it works well. when siege -c 500 -t 1m -b xxx, there is a core dump line " if (!strcmp(node->key, key)) {"

JoeDog commented 7 years ago

Could you get a stack trace from the core dump?

gdb --core=/path/to/core bt

On Sat, Jan 21, 2017 at 3:50 AM, 有张纸 notifications@github.com wrote:

private BOOLEAN __lookup(HASH this, char key) { int x; NODE node;

if (key == NULL) { return FALSE; } x = __genkey(this->size, key); for (node = this->table[x]; node != NULL; node = node->next) { if (!strcmp(node->key, key)) { return TRUE; } } return FALSE; }

when i run siege -c 300 -t 1m -b xxx, it works well. when siege -c 500 -t 1m -b xxx, there is a core dump

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/95, or mute the thread https://github.com/notifications/unsubscribe-auth/AFMT5lnD9MXOH9eRkVvC3UGqmKxcfKzfks5rUcbtgaJpZM4LqAtY .