Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I recently built perl 5.32.1 with -DDEBUGGING & DateTime 1.54 from source (Ports, FreeBSD 13-STABLE). Now use of DateTime results in "failed to extend arg stack" (a solution seems not likely any time soon, tagged as "low serverity) ...

# perl -MDateTime -e0 panic: XSUB Package::Stash::XS::list_all_symbols (XS.c) failed to exte +nd arg stack: base=801cff418, sp=801cff480, hwm=801cff440 Compilation failed in require at /usr/local/lib/perl5/site_perl/mach/5 +.32/DateTime/Duration.pm line 12. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/ma +ch/5.32/DateTime/Duration.pm line 12. Compilation failed in require at /usr/local/lib/perl5/site_perl/mach/5 +.32/DateTime.pm line 14. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/ma +ch/5.32/DateTime.pm line 14. Compilation failed in require. BEGIN failed--compilation aborted.

What good is -DDEBUGGING now if it XS modules cannot run.

# perl -V Summary of my perl5 (revision 5 version 32 subversion 1) configuration +: Platform: osname=freebsd osvers=13.0-stable archname=amd64-freebsd-thread-multi uname='freebsd gaia 13.0-stable freebsd 13.0-stable #1 zfs-arc-uni +t-n246112-d528d2685de: mon jun 28 01:30:03 hst 2021 root@gaia:src-bui +ldobjsrc-buildsrcamd64.amd64sysinvm-efi amd64 ' config_args='-Darchlib=/usr/local/lib/perl5/5.32/mach -Dcc=cc -Dcf +_by=mat -Dcf_email=mat@FreeBSD.org -Dcf_time=Sat Jan 23 04:56:40 HST +2021 -Dinc_version_list=none -Dlibperl=libperl.so.5.32.1 -Dman1dir=/u +sr/local/lib/perl5/5.32/perl/man/man1 -Dman3dir=/usr/local/lib/perl5/ +5.32/perl/man/man3 -Dprefix=/usr/local -Dprivlib=/usr/local/lib/perl5 +/5.32 -Dscriptdir=/usr/local/bin -Dsitearch=/usr/local/lib/perl5/site +_perl/mach/5.32 -Dsitelib=/usr/local/lib/perl5/site_perl -Dsiteman1di +r=/usr/local/lib/perl5/site_perl/man/man1 -Dsiteman3dir=/usr/local/li +b/perl5/site_perl/man/man3 -Dusenm=n -Duseshrplib -sde -Ui_iconv -Ui_ +malloc -Uinstallusrbinperl -Alddlflags=-L/src-build/ports-build/src-b +uild/ports/lang/perl5.32/work/perl-5.32.1 -L/usr/local/lib/perl5/5.32 +/mach/CORE -lperl -Dshrpldflags=$(LDDLFLAGS:N-L/src-build/ports-build +/src-build/ports/lang/perl5.32/work/perl-5.32.1:N-L/usr/local/lib/per +l5/5.32/mach/CORE:N-lperl) -Wl,-soname,$(LIBPERL:R) -DDEBUGGING -Dopt +imize=-g -Dusedtrace -Ui_gdbm -Dusemultiplicity=y -Dusemymalloc=n -Du +sesitecustomize -Dusethreads=y -Accflags=-DUSE_THREAD_SAFE_LOCALE' hint=recommended useposix=true d_sigaction=define useithreads=define usemultiplicity=define use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='cc' ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_ +LOCALE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-stron +g -I/usr/local/include' optimize='-g' cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_ +LOCALE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-stron +g -I/usr/local/include' ccversion='' gccversion='FreeBSD Clang 11.0.1 (git@github.com:llvm/llvm-project +.git llvmorg-11.0.1-0-g43ff75f2c3fe)' gccosandvers='' intsize=4 longsize=8 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=16 longdblkind=3 ivtype='long' ivsize=8 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='cc' ldflags ='-pthread -Wl,-E -fstack-protector-strong -L/usr/local/l +ib' libpth=/usr/lib /usr/local/lib /usr/lib/clang/11.0.1/lib /usr/lib libs=-lpthread -lgdbm -lm -lcrypt -lutil perllibs=-lpthread -lm -lcrypt -lutil libc= so=so useshrplib=true libperl=libperl.so.5.32.1 gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=so d_dlsymun=undef ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE' cccdlflags='-DPIC -fPIC' lddlflags='-shared -L/usr/local/lib/perl5/5.32/mach/CORE -lperl - +L/usr/local/lib -fstack-protector-strong' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_OP_PARENT PERL_PRESERVE_IVUV PERL_TRACK_MEMPOOL USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API USE_SITECUSTOMIZE USE_THREAD_SAFE_LOCALE Built under freebsd @INC: /usr/local/lib/perl5/site_perl/mach/5.32 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.32/mach /usr/local/lib/perl5/5.32

Is there a way to have perl built with DEBUGGING and XS modules not fail?


In reply to perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules by parv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-16 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found