Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 907265 Details for
Bug 1107728
Perl core-dumps if a hash is tied to DB_File before spawning a thread
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test
db-threads.t (text/plain), 929 bytes, created by
Petr Pisar
on 2014-06-10 13:36:17 UTC
(
hide
)
Description:
Test
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2014-06-10 13:36:17 UTC
Size:
929 bytes
patch
obsolete
>#!./perl > >use warnings; >use strict; >use Config; >use Fcntl; >use Test::More; >use DB_File; > >if (-d "lib" && -f "TEST") { > if ($Config{'extensions'} !~ /\bDB_File\b/ ) { > plan skip_all => 'DB_File was not built'; > } >} >plan skip_all => 'Threads are disabled' > unless $Config{usethreads}; > >plan tests => 7; > ># Check DBM back-ends do not destroy objects from then-spawned threads. ># RT#61912. >use_ok('threads'); > >my %h; >unlink <threads*>; > >my $db = tie %h, 'DB_File', 'threads', O_RDWR|O_CREAT, 0640; >isa_ok($db, 'DB_File'); > >for (1 .. 2) { > ok(threads->create( > sub { > $SIG{'__WARN__'} = sub { fail(shift) }; # debugging perl panics > # report it by spurious TAP line > 1; > }), "Thread $_ created"); >} >for (threads->list) { > is($_->join, 1, "A thread exited successfully"); >} > >pass("Tied object survived exiting threads"); > >undef $db; >untie %h; >unlink <threads*>;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1107728
:
907264
| 907265 |
924952