emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#9911: closed (valgrind warning in process.c:send_p


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#9911: closed (valgrind warning in process.c:send_process)
Date: Mon, 07 Nov 2011 04:32:02 +0000

Your message dated Sun, 06 Nov 2011 23:28:38 -0500
with message-id <address@hidden>
and subject line Re: bug#9910: valgrind warning in 
coding.c:coding_set_destination
has caused the debbugs.gnu.org bug report #9911,
regarding valgrind warning in process.c:send_process
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
9911: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9911
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: valgrind warning in process.c:send_process Date: Sun, 30 Oct 2011 17:38:51 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
valgrind ./temacs 

produces this warning

 

==30382== Conditional jump or move depends on uninitialised value(s)
==30382==    at 0x6302A9: send_process (process.c:5398)
==30382==    by 0x630DC8: Fprocess_send_string (process.c:5648)
==30382==    by 0x5D6D61: Ffuncall (eval.c:2977)
==30382==    by 0x622C5B: exec_byte_code (bytecode.c:785)
==30382==    by 0x5D77BA: funcall_lambda (eval.c:3205)
==30382==    by 0x5D6F4C: Ffuncall (eval.c:3023)
==30382==    by 0x622C5B: exec_byte_code (bytecode.c:785)
==30382==    by 0x5D77BA: funcall_lambda (eval.c:3205)
==30382==    by 0x5D6F4C: Ffuncall (eval.c:3023)
==30382==    by 0x622C5B: exec_byte_code (bytecode.c:785)
==30382==    by 0x5D77BA: funcall_lambda (eval.c:3205)
==30382==    by 0x5D6F4C: Ffuncall (eval.c:3023)

Looks like struct coding_system.src_multibyte needs to be
initialized.




--- End Message ---
--- Begin Message --- Subject: Re: bug#9910: valgrind warning in coding.c:coding_set_destination Date: Sun, 06 Nov 2011 23:28:38 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Kenichi Handa <address@hidden> writes:

> In article <address@hidden>, Dan Nicolaescu <address@hidden> writes:
>
>> valgrind ./temacs 
>
>> produces this warning:
>
>> ==30382== Conditional jump or move depends on uninitialised value(s)
>> ==30382==    at 0x499251: coding_set_destination (coding.c:1046)
>> ==30382==    by 0x4B477A: decode_coding (coding.c:7022)
>> ==30382==    by 0x4B7317: decode_coding_object (coding.c:7671)
>> ==30382==    by 0x63610F: Fcall_process (callproc.c:813)
>> ==30382==    by 0x5D6C07: Ffuncall (eval.c:2956)
>> ==30382==    by 0x5D5ECA: Fapply (eval.c:2479)
>> ==30382==    by 0x5D6C07: Ffuncall (eval.c:2956)
>> ==30382==    by 0x622C5B: exec_byte_code (bytecode.c:785)
>> ==30382==    by 0x5D77BA: funcall_lambda (eval.c:3205)
>> ==30382==    by 0x5D6F4C: Ffuncall (eval.c:3023)
>> ==30382==    by 0x622C5B: exec_byte_code (bytecode.c:785)
>> ==30382==    by 0x5D77BA: funcall_lambda (eval.c:3205)
>  
>>  This looks like setup_coding_system (or whatever else initializes struct
>>  coding_system) does not initialize the src_pos field.
>
> I fixed it.  But as "valgrind ./temacs" segfaults in my
> environment, I can't confirm the fix.  Please check if the
> fix is correct or not.

Thank you very much!
The fix looks good, the warning does not appear anymore.

valgrind ./temacs also segfaults for me in 32 bit mode (i686), it works
in 64 bit mode (x86_64).


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]