krime / serf

Automatically exported from code.google.com/p/serf
Apache License 2.0
1 stars 0 forks source link

serf_spider branch using unitialized value w/patch #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It looks like ctx->requests_outstanding is not getting initialized
properly.  Fix attached.

valgrind --tool=memcheck --leak-check=full
--suppressions=/home/dchristian/www/no_crawl/svn-trace/val.sup
test/serf_spider http://slashdot.org > /dev/null

==12959== Thread 1:
==12959== Conditional jump or move depends on uninitialised value(s)
==12959==    at 0x804BE6F: main (serf_spider.c:784)

==12963== Thread 3:
==12963== Conditional jump or move depends on uninitialised value(s)
==12963==    at 0x804B949: parser_thread (serf_spider.c:600)
==12963==    by 0x807209B: dummy_worker (thread.c:138)
==12963==    by 0x404EC8B: pthread_start_thread (manager.c:310)
==12963==    by 0x416D109: clone (clone.S:119)

Original issue reported on code.google.com by DanChris...@gmail.com on 30 May 2007 at 11:20

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r1107 (patch tweaked to support APR 0.9.x).  Thanks!

Original comment by justin.e...@gmail.com on 1 Jun 2007 at 6:19