[nycphp-talk] Php in the twilight zone
Iulian Manea
talk at esteticastudios.com
Sat Apr 22 14:20:11 EDT 2006
Hey again,
I ran it with strace , and yes, it's a segmentation fault ... here are the
last few lines from the output txt file:
send(8, "\35\300\1\0\0\1\0\0\0\0\0\0\3www\ttalkshack\3com\0\0"..., 35, 0) =
35
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(8, FIONREAD, [145]) = 0
recvfrom(8, "\35\300\205\200\0\1\0\2\0\2\0\2\3www\ttalkshack\3com\0"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("69.93.35.154")}, [16]) = 145
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Now .. my problem would be.. does anyone have ay idea how to interpret
strace output???
Thx...
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Carlos A Hoyos
Sent: Friday, April 21, 2006 4:55 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Php in the twilight zone
talk-bounces at lists.nyphp.org wrote on 04/21/2006 09:21:36 AM:
> The script is used for spidering a site, which is quite big .. so the 20
> minutes isn't that much. But each time the script finds a new link it
> flushes it to the browser, so the connection shouldn't timeout or
anything
> ...
Sounds like a segmentation fault. I saw this happen some time ago with a
similar script, where given the structure of the site one of the urls was
always different per page, creating an infinite descend.
Running on *nix, if you can run the script from the command line, "strace"
can help you debug and understand why the script is dying.
Carlos Hoyos,
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
New York PHP Conference and Expo 2006
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
__________ NOD32 1.1454 (20060321) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
More information about the talk
mailing list