[Geany] Crash on some php files (opensolaris)
Andras Barna
andras.barna at xxxxx
Fri Apr 25 16:43:01 UTC 2008
bash-3.2$ geany -d
** INFO: Geany 0.14, GTK+ 2.12.3, GLib 2.14.4
** INFO: Initializing plugin 'HTML Characters'
** INFO: Loaded: /usr/lib/geany/htmlchars.so (HTML Characters)
** INFO: Initializing plugin 'File Browser'
** INFO: Loaded: /usr/lib/geany/filebrowser.so (File Browser)
** INFO: /var/apache2/2.2/htdocs/adduseraction.php : PHP (UTF-8)
Segmentation Fault (core dumped)
bash-3.2$ pstack core
core 'core' of 7712: geany -d
d018a940 strlen (81a485b, 8046ec0, 81d08e0, 0) + 30
d01cdc9f fprintf (81d08e0, 81a4859, 0, 81a484e) + 9f
0816b511 error (2, 81a7c70, 8a666b0, 3, 89fd528, 89fd528) + 40
0817a5fe matchTagPattern (8a660f8, 8a61250, 8046f28, 2000) + 80
0817a708 matchRegexPattern (8a660f8, 8a61250, 0) + 56
ffffffff ???????? ()
bash-3.2$ pflags core
core 'core' of 7712: geany -d
data model = _ILP32 flags = MSACCT|MSFORK
/1: flags = 0
sigmask = 0xffffbefc,0x0000ffff cursig = SIGSEGV
bash-3.2$
svn worth a try?
On Fri, Apr 25, 2008 at 7:26 PM, Enrico Tröger <enrico.troeger at uvena.de> wrote:
> 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
>
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
>
--
Andy
http://blog.sartek.net
More information about the Users
mailing list