Dixit Patrick Powell <[EMAIL PROTECTED]> (le Thu, 13 Jun 2002 07:10:42 -0700 (PDT)) :
� I will release a new version ASAP.
Hello
I encountered a problem with ifhp 3.5.8 on solaris 8.
I switched from 3.4.7 to 3.5.8 and the section 10 script to debug
filter problems stopped to work with ifhp core dump (whereas with
3.4.7, it works). You introduced pagecount_prog between 3.4.7 and
3.5.8...
The core says :
#0 fmtstr (visible_control=1, buffer=0xffbeeec4, left=0xffbeeec0,
value=0x200000 <Address 0x200000 out of bounds>, ljust=0, len=0, zpad=0,
precision=-1) at plp_snprintf.c:785
785 for( strlenv = i = 0; (c=CVAL(value+i)); ++i ){
(gdb) bt
#0 fmtstr (visible_control=1, buffer=0xffbeeec4, left=0xffbeeec0,
value=0x200000 <Address 0x200000 out of bounds>, ljust=0, len=0, zpad=0,
precision=-1) at plp_snprintf.c:785
#1 0x2e2c4 in dopr (visible_control=1, buffer=0xffbeeec4, left=0xffbeeec0,
format=0x32686 "'", args=0xffbeefa0) at plp_snprintf.c:737
#2 0x2dd40 in plp_vsnprintf (
str=0x4e9df "Start_of_job: do_pagecount 0, ps 0, pjl 0, prog '6:16:09.970\n",
count=10209, fmt=0x32686 "'", args=0xffbeefa0) at plp_snprintf.c:557
#3 0x26024 in logDebug (
msg=0x32650 "Start_of_job: do_pagecount %d, ps %d, pjl %d, prog '%s'")
at errormsg.c:157
#4 0x18998 in Start_of_job (startpagecounter=0xffbef0d4, do_pagecount=0,
pagecount_ps=0, pagecount_pjl=0, nested_job=0,
pagecount_prog=0x200000 <Address 0x200000 out of bounds>) at ifhp.c:1167
#5 0x188e0 in Process_job (do_pagecount=0, pagecount_ps=0, pagecount_pjl=0,
pagecount_prog=0x200000 <Address 0x200000 out of bounds>) at ifhp.c:1147
#6 0x167d8 in main (argc=334848, argv=0x51c00, envp=0x0) at ifhp.c:413
I traced the problem back to the pagecount_prog definition in main().
You use it uninitialized in check_pagecount(). On my system, it was
set to random value and it made the program core dump. Setting it to
NULL solves the problem. Can you incorporate that in the new to come
version, please ?
Here's a small patch :
*** ifhp.c.dist Thu Jun 13 16:39:25 2002
--- ifhp.c Thu Jun 13 16:37:03 2002
***************
*** 64,70 ****
struct stat statb;
char *s, *dump;
int i, fd, c, do_pagecount, pagecount_ps, pagecount_pjl;
! char *pagecount_prog;
OBJ *l = 0;
/* make sure that the NSLPATH cannot be use to compromisze root
--- 64,70 ----
struct stat statb;
char *s, *dump;
int i, fd, c, do_pagecount, pagecount_ps, pagecount_pjl;
! char *pagecount_prog = NULL;
OBJ *l = 0;
/* make sure that the NSLPATH cannot be use to compromisze root
Thanks in advance.
Best regards.
-- Thierry Besancon
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------