mfazliazran / skipfish

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

segfault #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1.08b segfaults after 

make clean debug
ulimit -c unlimited
./skipfish -p 25% -g 5000 -m 1000 -o www.unosoft.hu http://www.unosoft.hu/ 
2>logfile.txt

gdb --batch -ex back ./skipfish core >gdb.out

Any suggestions?

Tamás Gulácsi
gt-dev@gthomas.homelinux.org

Original issue reported on code.google.com by tgulacs...@gmail.com on 21 Mar 2010 at 9:22

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the report. Do you still have the core file? If yes, please do this:

$ gdb ./skipfish core

And type:

printf "pv=%x c=%d, pv->child=%x, pv->child_cnt=%d\n", pv, c, pv->child, 
pv->child_cnt

...then let me know what it outputs. This should be easy to fix, I'm hoping.

Original comment by lcam...@google.com on 21 Mar 2010 at 9:37

GoogleCodeExporter commented 8 years ago
Actually, I think I figured this out. Please let me know if 1.09 fixes this for 
you.

Original comment by lcam...@gmail.com on 21 Mar 2010 at 9:41

GoogleCodeExporter commented 8 years ago
Core was generated by `./skipfish -p 25% -g 5000 -m 1000 -o www.unosoft.hu 
http://www.unosoft.hu/'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000041d255 in crawl_par_trylist_init (pv=0x173f0b0)
    at crawler.c:1952
1952          if (!pv->child[c]->linked) pv->child[c]->linked = 1;
(gdb) printf "pv=%x c=%d, pv->child=%x, pv->child_cnt=%d\n", pv, c, pv->child, 
pv-
>child_cnt
pv=173f0b0 c=0, pv->child=0, pv->child_cnt=0

Original comment by tgulacs...@gmail.com on 21 Mar 2010 at 9:50

GoogleCodeExporter commented 8 years ago
Yeah, thanks. Looks like what I just fixed. Let me know if this pops up again.

Original comment by lcam...@gmail.com on 21 Mar 2010 at 9:53

GoogleCodeExporter commented 8 years ago
Right, 1.09b is OK.

Original comment by tgulacs...@gmail.com on 21 Mar 2010 at 9:55