unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9911: valgrind warning in process.c:send_process
@ 2011-10-30 21:38 Dan Nicolaescu
  2011-11-07  2:39 ` Kenichi Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Nicolaescu @ 2011-10-30 21:38 UTC (permalink / raw)
  To: 9911


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.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#9911: valgrind warning in process.c:send_process
  2011-10-30 21:38 bug#9911: valgrind warning in process.c:send_process Dan Nicolaescu
@ 2011-11-07  2:39 ` Kenichi Handa
  2011-11-07  8:39   ` Andreas Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Kenichi Handa @ 2011-11-07  2:39 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 9911

In article <yxqzkgif9ck.fsf@fencepost.gnu.org>, Dan Nicolaescu <dann@gnu.org> writes:

> 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.

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.

---
Kenichi Handa
handa@m17n.org





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#9911: valgrind warning in process.c:send_process
  2011-11-07  2:39 ` Kenichi Handa
@ 2011-11-07  8:39   ` Andreas Schwab
  2011-11-11  6:35     ` Kenichi Handa
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2011-11-07  8:39 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: Dan Nicolaescu, 9911

Kenichi Handa <handa@m17n.org> writes:

> But as "valgrind ./temacs" segfaults in my environment,

Try defining VIRT_ADDR_VARIES.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#9911: valgrind warning in process.c:send_process
  2011-11-07  8:39   ` Andreas Schwab
@ 2011-11-11  6:35     ` Kenichi Handa
  0 siblings, 0 replies; 4+ messages in thread
From: Kenichi Handa @ 2011-11-11  6:35 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: dann, 9911

In article <m38vnsmimc.fsf@hase.home>, Andreas Schwab <schwab@linux-m68k.org> writes:

> Kenichi Handa <handa@m17n.org> writes:
> > But as "valgrind ./temacs" segfaults in my environment,

> Try defining VIRT_ADDR_VARIES.

Thank you.  When I re-built Emacs with that defined,
I can use valgrind on temacs.

---
Kenichi Handa
handa@m17n.org





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-11  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-30 21:38 bug#9911: valgrind warning in process.c:send_process Dan Nicolaescu
2011-11-07  2:39 ` Kenichi Handa
2011-11-07  8:39   ` Andreas Schwab
2011-11-11  6:35     ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).