[Geany] Crash on some php files (opensolaris)

Enrico Tröger enrico.troeger at xxxxx
Fri Apr 25 16:26:29 UTC 2008


On Wed, 23 Apr 2008 16:48:36 +0300, "Andras Barna"
<andras.barna at gmail.com> wrote:

> yes i stopped in vStringNCatS
> after applying the patch:
> (dbx) print matchTagPattern
> `geany`lregex.c`matchTagPattern =
> &`geany`lregex.c`matchTagPattern(const vString *const line, const
> regexPattern *const patbuf, const regmatch_t *const pmatch) at
> 0x817a57e
> and:
> t at 1 (l at 1) signal SEGV (no mapping at the fault address) in strlen at
> 0xd018a940 0xd018a940: strlen+0x0030:	movl     (%eax),%ecx
> Current function is error
>   284       fprintf (errout, "%s: %s", getExecutableName (),
> (dbx) where
> current thread: t at 1
> dbx: read of 4 bytes at address 3 failed
> dbx: attempt to read frame failed -- cannot get return address
>   [1] strlen(0x0), at 0xd018a940
>   [2] _ndoprnt(0x81a485b, 0x8046e20, 0x81d08e0, 0x0), at 0xd01cbe26
>   [3] _fprintf(0x81d08e0, 0x81a4859, 0x0, 0x81a484e), at 0xd01cdc9f
> =>[4] error(selection = 2, format = 0x81a7c70 "%s:%ld: null expansion
> of name pattern "%s"", ...), line 284 in "ctags.c"
This causes generally an error message like:

(null): Warning: /tmp/test.php:24: null expansion of name pattern "\1"

The leading "(null)" is caused in Geany we don't set the applicaton
name in ctags.c. It is just initialised with NULL. This is generally
not a problem except for Windows where printf("%s", NULL) results in a
segfault. I just changed this in SVN r2531.
But this is yet another step to find the real problem your crashes.

Could you send the output of Geany when started on a console?

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080425/2d4418bc/attachment.pgp>


More information about the Users mailing list