Closed ribasushi closed 4 years ago
Thanks for the report, I'm investigating some crash-on-free errors right now, hopefully whatever fixes come out of it will clear this up too.
Can you try version 3.10.3 or better? I'm hoping it fixes this.
Closing for now, as there has been much work on memory freeing problems since the original report. Please re-open if still seen on recent versions of DBD::Pg
The ASAN issue is gone, but the Use of freed value in iteration at t/72pg.t line 489.
is still there. Likely no point reopening, may be a DBI bug instead that Pg tickles.
The ASAN issue is gone, but the
Use of freed value in iteration at t/72pg.t line 489.
is still there.
There’s nothing on line 489 in the version linked above. It’s blank. I looked at the current version, and line 489 there is like $@ ...
.
Could you try narrowing down 72pg.t to be just the code which causes the error and posting it here? That might be help track down the cause.
If it’s not fixed, it should be reopened, IMHO.
@esabol the source line is likely misleading due to internal corruption. The problem is still there, reproducible on 4 separate perls: https://travis-ci.com/github/Perl5/DBIx-Class/builds/173364908 Key is an older version of DBI with a current version of DBD::Pg. This is why I am not that interested in digging into it further. You can certainly take this onwards, would be much appreciated!
Key is an older version of DBI with a current version of DBD::Pg.
So you’re saying there is no error with the current version of DBI and the current version of DBD::Pg? If so, I agree there’s no point in digging further.
FWIW I am doing some heavy testing across various versions of DBI and Postgres. Nothing related found yet (but did flush out some other minor bugs)
@turnstep note that this is something I can easily reproduce on any system. That particular DBI version with latest DBD::Pg. Should fail the same way for you too...
@ribasushi Hmm I cannot get DBIx::Class to work (separate issue). I will try to duplicate everything else as much as I can with regards to the DBD::Pg test output posted above. Perhaps its related to more than just the DBI/DBD::Pg combo.
I cannot get DBIx::Class to work (separate issue).
Huh... things should install without fail these days. Could you please file a bugreport ( just email bug-DBIx-Class@rt.cpan.org
) Thanks!
In any case: I will reduce the test to a standalone DBIC-less script later today, reproducing the above.
It's probably me, not the software. I can git checkout the repo, but when I run perl Makefile.PL it complains about line 201, with WriteAll line, despite having Module::AutoInstall installed.
@turnstep I'd say a git clean -fxd
will fix it. There is likely something in your checkout dir...
Sweet, that unblocked things! Will let you know if I can dupe that bug now.
Cannot dupe on 72pg.t or 09arrays.t: used DBI 1.642, DBD::Pg 3.10.0, and Postgres 9.5.18 (was not able to compile 9.5.3). Perl was a little newer, 5.26.3. Thus, going to leave this closed. If anyone can duplicate and run on a newer version of Postgres 9.5 (latest is 9.5.22), that would be good to rule out the possibility it's a bug related to 9.5.3.
One of DBIC's tests causes interpreter corruption when run against DBI@1.634 and DBD::Pg 3.10.0 ( specifically due to commit: https://github.com/bucardo/dbdpg/commit/81b518137a08a ). The exit code is 255 and the The exact error is:
ASAN instrumentation sadly does not reveal anything, however one of DBD::Pg's own tests fails like so: