New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault when using Storable on DB_File #12626
Comments
From @fanglyThis is a bug report for perl from florent.angly@gmail.com, Hi, From the acknowledgments and the test suite of Storable, it appears This code reproduces the issue: Note that the bug is reproducible when using GDBM_File instead of I generated a stack trace for this error: Best, Florent Flags: Site configuration information for perl 5.14.2: Configured by Debian Project at Sun Nov 4 10:59:22 UTC 2012. Summary of my perl5 (revision 5 version 14 subversion 2) configuration: Platform: Locally applied patches: @INC for perl 5.14.2: Environment for perl 5.14.2: |
From @LeontOn Sun Dec 02 17:49:11 2012, fangly wrote:
The problem isn't ties, it's that the DB_File object is implemented in C
I bet it's reproducible on any class using T_PTROBJ. When the Perl Leon |
The RT System itself - Status changed from 'new' to 'open' |
From @bulk88On Mon Dec 03 18:03:35 2012, LeonT wrote:
The rest of this post has nothing specific about DB_File. The problem you describe isn't very difficult to fix. I have an https://metacpan.org/source/BULKDD/Win32-API-0.74/Callback/Callback.xs#L624 It adds a refcount of the number of interps/SVs that own a malloc block. -- |
From @fangly
Thanks for the reply bulk88, but do you suggest that my code could be |
From @bulk88On Tue Mar 05 17:25:24 2013, fangly wrote:
I was speaking generically about the problem LeonT described with Perl, -- |
From @bulk88On Tue Mar 05 17:44:04 2013, bulk88 wrote:
If the solution is implementing Storable hooks in DB_File, then I think -- |
From @pmqsSorry for not responding to this sooner - just happened to notice this I will (at least) get DB_File to do the same as Compress::Raw::Bzip2 Florent - I'm curious about why you need Storable for DB_File at all. cheers Paul |
From @pmqsTurns out DB_File can handle freeze/thaw gracefully since version Paul |
@iabyn - Status changed from 'open' to 'resolved' |
From @fanglyOn 06/03/13 20:45, Paul Marquess via RT wrote:
On 09/03/13 22:44, Paul Marquess via RT wrote:
That's good that DB_File now dies instead of segfaulting. However, the reason I originally posted this report on the Perl5 tracker
Should all XXX_File modules implement hooks for Storable (as mentioned Or is it that Storable could be smarter about dealing with XXX_File Florent |
From @lizmatOn Mar 11, 2013, at 3:39 AM, Florent Angly <florent.angly@gmail.com> wrote:
From the pod of Thread::Queue::Any: # specify class with "freeze" and "thaw" methods So maybe another serializer might do the job for you? Maybe Sereal? Liz |
From @tseeOn 03/11/2013 03:39 AM, Florent Angly wrote:
FWIW, I think there is no "Storable maintainer" outside the general I think Storable should UNDER NO CIRCUMSTANCES add support for specific --Steffen [1] Without looking at the Storable code again, I bet that there's a |
From @fanglyThanks for the answers. The best seem to have the different XX_File I have filed a separate bug report for DB_File at I have also confirmed that GDBM_File, NDBM_File, ODBM_File and SDBM_File |
Migrated from rt.perl.org#115972 (status was 'resolved')
Searchable as RT115972$
The text was updated successfully, but these errors were encountered: