On Tue, 22 Apr 2008 20:39:04 +0300 "Andras Barna" andras.barna@gmail.com wrote:
with -g3 and -Wdisabled-optimization
Thanks for the new trace.
Could you try the attached patch - I'm still not sure what the problem is, but it should fix the actual reason of the segfault, and might reveal the cause of the problem.
Maybe there is some code we should backport elsewhere in CTags, but lregex.c and php.c don't have any relevant changes, so I'm not really sure where to look.
One thing to try - can you print *line in the matchTagPattern() frame of the segfault trace?
BTW, I'm not familiar with dbx, but why does the first trace for the segfault end with the matchRegexPattern frame - is it possible to print the frames below that? Is the second trace just for a breakpoint?
Regards, Nick