Perl throws an exception when my program attempts to save an excel spreadsheet via
Spreadsheet::Excel::Simple::Save with the error message in the title. My program is not running with any setuid bits set, so I don't know why Perl was running in suid mode... I am running on Red Hat Linux with Perl 5.6.1.
I was running my script via the supervise program in
the excellent daemontools package
but even after manually running it, the problem still occurs.
The odd thing is it was running all day with no problem. I made a few changes to the program which had nothing to do with saving and then this error starting occuring. I looked through the config flags and noticed -Ddo_suid so I think I need to recompile Perl without that... but any input is appreciated. Compile flags below:
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_
+by=Red Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/us
+r -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Uuseth
+reads -Uuseithreads -Uuselargefiles -Dd_dosuid -Dd_semctl_semun -Di_d
+b -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality... download and use
The Emacs Code Browser
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.