Comments (9)
Hi,
Can you paste perl -V
on your environment?
from msgpack-perl.
Hi,
apologize for the delay, here it is:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\> C:\strawberry\perl\bin\perl.exe -V
Summary of my perl5 (revision 5 version 16 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname='Win32 strawberry-perl 5.16.1.1 #1 Thu Aug 9 09:54:46 2012 i386'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT
_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.6.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++.exe', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib"'
libpth=C:\strawberry\c\lib C:\strawberry\c\i686-w64-mingw32\lib
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32
-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion
-lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladva
pi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lver
sion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl516.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PL_OP_SLAB_ALLOC
USE_ITHREADS USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Aug 9 2012 10:03:09
@INC:
C:/strawberry/perl/site/lib
C:/strawberry/perl/vendor/lib
C:/strawberry/perl/lib
.
That is, basically, just a latest portable Strawberry Perl 5.16, 32 bit.
from msgpack-perl.
I wrote the eval-trapping code because I thank that that code don't show the warning.
Would you show the sample code?
from msgpack-perl.
I can't reproduce on the sample code for now - let me double-verify on what could cause eval to fail and come back to you, if reproduced.
Thank you for the prompt response.
from msgpack-perl.
Got it reproduced - please, get the source code from here: http://dl.dropbox.com/u/3556694/test.tar
Any clue?
from msgpack-perl.
Localize signal handler
package Handler;
local $SIG{__DIE__} = sub {
print "Caught die: @_";
};
# any code
1;
or change order of importing modules
use Data::MessagePack;
use Handler;
use strict;
use warnings;
exit 0;
from msgpack-perl.
Got it, thank you!
from msgpack-perl.
As syohex said, there are some way to solve the probblem.
But I think that localizing $SIG{DIE} in MessagePack::PP is more proper.
from msgpack-perl.
Blog about $SIG{__DIE__}
and eval
in Japanese.
http://perl.g.hatena.ne.jp/Cormorant/20080919/1221842240
from msgpack-perl.
Related Issues (20)
- Cannot communicate with a Haskell based MsgPack RPC server HOT 5
- Minimal Perl version supported HOT 10
- failed test with perl5.19.1? HOT 6
- Use Types::Serialiser::Boolean for true/false HOT 5
- unpack with "extra bytes" HOT 2
- Problem parsing incoming data from Metasploit HOT 20
- Test failing on Mac with perl 5.22.0 HOT 10
- MessagePack working in a weird way. HOT 5
- No msgpack in alpine HOT 6
- New Str encoding broke compatibility with 0.49 decoding HOT 5
- Support IEEE 754 HOT 3
- Potential issue in casting numbers HOT 2
- Fails Makefile.PL with no '.' in @INC HOT 1
- Should prefer IV when both IV and NV are OK HOT 1
- Can't install under strawberry perl 5.30.0 HOT 3
- Hook for blessed variables HOT 1
- FAIL under -Dusequadmath HOT 1
- Deserialization Error with MessagePack JavaScript Libraries HOT 4
- trying to unpack MessagePack from C failing with "extra bytes (length should be 145)" message HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msgpack-perl.