exception Assert_failure when parsing a project with pfff_db #14

Closed
lonnen opened this Issue Oct 20, 2011 · 5 comments

Projects

None yet

2 participants

@lonnen

While running $ pfff_db --lang php path/to/project I had the following parsing error:

...
Adjusting: ezcFeedIdElement->__toString
Adjusting: ezcFeedImageElement->__toString
Fatal error: exception Assert_failure("common.ml", 6315, 2)

seems to have occured while parsing https://github.com/Lonnen/socorro/blob/master/webapp-php/modules/ezcomponents/libraries/Feed/structs/image.php

using Objective Caml toplevel, version 3.12.1

@aryx
Facebook member

Is it still happening with recent version of pfff?

@lonnen

Checked out the latest master. $ pfff_db --lang php path/to/project gives me a different error now:

NB total files = 405; perfect = 405; =========> 100%
nb good = 56746,  nb bad = 0 =========> 100.000000%
Fatal error: exception Assert_failure("common.ml", 6401, 2)

I don't have any idea what is causing this new assert failure.

using ocaml 3.12.1, same as before

@aryx
Facebook member

I can't reproduce again ...

$ cd /tmp
$ git clone https://github.com/Lonnen/socorro.git
$ ~/pfff/pfff_db -lang php soccorro
...
NB total files = 405; perfect = 405; =========> 100%
nb good = 56746, nb bad = 0 =========> 100.000000%
writing data in /data/users/pad/software/php/socorro/PFFF_DB.marshall [y/n] ?
y

@aryx
Facebook member

can you do
$ export OCAMLRUNPARAM="b"
$ ~/pfff/pfff_db -lang php soccorro

and give me the full stack trace that should be reported when an exception is raised.

@aryx
Facebook member

I can't reproduce, I'm closing this issue.

@aryx aryx closed this Jul 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment