Re: Valgrind: conditional jump or move depends on uninitalized value(s)

2024-06-21 Thread Scott Kostyshak
On Fri, Jun 21, 2024 at 05:24:16PM GMT, Jean-Marc Lasgouttes wrote: > Le 20/06/2024 à 20:03, Scott Kostyshak a écrit : > > This report is from opening LyX, starting a new document, and quitting. > > How can I read it to know if it's LyX's fault or not? Specifically, how > > can I know whether the u

Re: valgrind: points to unaddressable byte(s)

2024-06-21 Thread Scott Kostyshak
On Fri, Jun 21, 2024 at 04:16:32PM GMT, Pavel Sanda wrote: > On Thu, Jun 20, 2024 at 02:00:08PM -0400, Scott Kostyshak wrote: > > When I export the English Welcome.lyx on the command line with the > > following command: > > > > lyx -e default Welcome.lyx > > > > I get the following output: > >

Re: Valgrind: conditional jump or move depends on uninitalized value(s)

2024-06-21 Thread Jean-Marc Lasgouttes
Le 20/06/2024 à 20:03, Scott Kostyshak a écrit : This report is from opening LyX, starting a new document, and quitting. How can I read it to know if it's LyX's fault or not? Specifically, how can I know whether the uninitialised value is created inside QPainter::drawPixmap() or if it's instead i

Re: valgrind: points to unaddressable byte(s)

2024-06-21 Thread Pavel Sanda
On Thu, Jun 20, 2024 at 02:00:08PM -0400, Scott Kostyshak wrote: > When I export the English Welcome.lyx on the command line with the following > command: > > lyx -e default Welcome.lyx > > I get the following output: > > ==8181== Syscall param waitid(infop) points to unaddressable byte(s) >

Valgrind: conditional jump or move depends on uninitalized value(s)

2024-06-20 Thread Scott Kostyshak
This report is from opening LyX, starting a new document, and quitting. How can I read it to know if it's LyX's fault or not? Specifically, how can I know whether the uninitialised value is created inside QPainter::drawPixmap() or if it's instead in lyx::frontend::(anonymous namespace)::BackgroundW

valgrind: points to unaddressable byte(s)

2024-06-20 Thread Scott Kostyshak
When I export the English Welcome.lyx on the command line with the following command: lyx -e default Welcome.lyx I get the following output: ==8181== Syscall param waitid(infop) points to unaddressable byte(s) ==8181==at 0x628925D: syscall (syscall.S:38) ==8181==by 0x5B9A7A6: ??? (in

Why does this patch silence an invalid read reported by Valgrind?

2022-03-21 Thread Scott Kostyshak
Attached is part of a Valgrind log (the full log is 1MB, let me know if you want to go leak hunting). I was trying to investigate https://www.lyx.org/trac/ticket/12510. I get the Valgrind message when opening probability8.lyx on that ticket. Also attached is a possible patch that fixes this

Re: [LyX/master] Cmake tests: Start preparing for tests involving valgrind

2020-04-07 Thread Scott Kostyshak
On Thu, Jan 01, 1970 at 12:00:00AM +, Kornel Benko wrote: > commit 353295e4997e5719b1189d119b9745031bc45af4 > Author: Kornel Benko > Date: Tue Apr 7 12:12:29 2020 +0200 > > Cmake tests: Start preparing for tests involving valgrind > --- Thanks! I look forward to te

Re: Valgrind "definitely lost" backtrace

2020-02-18 Thread Scott Kostyshak
ping to investigate > >>>>>> this memory leak but it seems to be beyond my knowledge. > >>>>> Do you have recipy to reproduce valgrind's warning? > >>>> 1. I run the following command (you will need to adapt it): > >>>> > >>

Re: Valgrind "definitely lost" backtrace

2020-02-17 Thread Richard Kimberly Heck
>> Do you have recipy to reproduce valgrind's warning? >>>> 1. I run the following command (you will need to adapt it): >>>> >>>> valgrind --leak-check=full --track-origins=yes --log-file=valgrind.log >>>> ~/lyxbuilds/master/CMakeBuil

Re: Valgrind "definitely lost" backtrace

2020-02-17 Thread Scott Kostyshak
x27;s warning? > >> 1. I run the following command (you will need to adapt it): > >> > >> valgrind --leak-check=full --track-origins=yes --log-file=valgrind.log > >> ~/lyxbuilds/master/CMakeBuild/bin/lyx -userdir ~/lyxbuilds/master/user-dir > >> > >> 2. Do &q

Re: Valgrind "definitely lost" backtrace

2020-02-17 Thread Richard Kimberly Heck
or taking a look. I was hoping to investigate >>>> this memory leak but it seems to be beyond my knowledge. >>> Do you have recipy to reproduce valgrind's warning? >> 1. I run the following command (you will need to adapt it): >> >> valgrind --leak-che

Re: Valgrind "definitely lost" backtrace

2020-02-17 Thread Pavel Sanda
; > this memory leak but it seems to be beyond my knowledge. > > > > Do you have recipy to reproduce valgrind's warning? > > 1. I run the following command (you will need to adapt it): > > valgrind --leak-check=full --track-origins=yes --log-file=valgri

Re: Valgrind "definitely lost" backtrace

2020-02-16 Thread Scott Kostyshak
e recipy to reproduce valgrind's warning? 1. I run the following command (you will need to adapt it): valgrind --leak-check=full --track-origins=yes --log-file=valgrind.log ~/lyxbuilds/master/CMakeBuild/bin/lyx -userdir ~/lyxbuilds/master/user-dir 2. Do "ctrl + n" to start a ne

Re: Valgrind "definitely lost" backtrace

2020-02-15 Thread Scott Kostyshak
On Sat, Feb 15, 2020 at 09:42:52PM +0100, Pavel Sanda wrote: > On Fri, Feb 14, 2020 at 08:09:09PM -0500, Scott Kostyshak wrote: > > Thanks to both of you for taking a look. I was hoping to investigate > > this memory leak but it seems to be beyond my knowledge. > > Do you have recipy to reproduce

Re: Valgrind "definitely lost" backtrace

2020-02-15 Thread Pavel Sanda
On Fri, Feb 14, 2020 at 08:09:09PM -0500, Scott Kostyshak wrote: > Thanks to both of you for taking a look. I was hoping to investigate > this memory leak but it seems to be beyond my knowledge. Do you have recipy to reproduce valgrind's warning? Pavel -- lyx-devel mailing list lyx-devel@lists.l

Re: Valgrind "definitely lost" backtrace

2020-02-14 Thread Scott Kostyshak
ete on these > pointers, but the whole point of this change (see 6ad1b1cd0) was not to > recreate all the objects every time we reset the TocModel. I.e., the > pointers don't change. We just clear the objects to which they point and > then reuse them. > > I'm puzzled. Is

Re: Valgrind "definitely lost" backtrace

2020-02-14 Thread Richard Kimberly Heck
b/dev/src/corelib/tools/qhash.h I doubt that it is QHash's responsibility to call delete on these pointers, but the whole point of this change (see 6ad1b1cd0) was not to recreate all the objects every time we reset the TocModel. I.e., the pointers don't change. We just clear the objects to

Re: Valgrind "definitely lost" backtrace

2020-02-14 Thread Pavel Sanda
On Thu, Feb 13, 2020 at 09:58:15PM -0500, Scott Kostyshak wrote: > The corresponding line of TocModel.cpp:362 is the line with "new" below: > > // First, fill in the toc models. > iterator mod_it = models_.find(type); > if (mod_it == models_.end()) > mod_it = models_.insert(type, new T

Valgrind "definitely lost" backtrace

2020-02-13 Thread Scott Kostyshak
Valgrind gave me the following when I was trying to debug what I believe to be a separate issue: ==20945== 840 (336 direct, 504 indirect) bytes in 7 blocks are definitely lost in loss record 5,624 of 5,867 ==20945==at 0x483AE63: operator new(unsigned long) (in /usr/lib/x86_64-linux

Re: help tracking down an uninitialized value (with Valgrind output)

2016-09-30 Thread Scott Kostyshak
On Thu, Sep 29, 2016 at 07:12:40PM -0700, Pavel Sanda wrote: > Scott Kostyshak wrote: > > How did you know it was preview_error_? I'm searching for bug-fixing > > intuition. > > valgrind log -> LaTeX.cpp:115 -> clean_start -> buffer.lastPreviewError() > [Con

Re: help tracking down an uninitialized value (with Valgrind output)

2016-09-29 Thread Pavel Sanda
Scott Kostyshak wrote: > How did you know it was preview_error_? I'm searching for bug-fixing > intuition. valgrind log -> LaTeX.cpp:115 -> clean_start -> buffer.lastPreviewError() [Converter.cpp:656] -> d->preview_error_ [Buffer.cpp:1200] -> preview_error

Re: help tracking down an uninitialized value (with Valgrind output)

2016-09-29 Thread Scott Kostyshak
k these out. > fixing preview_error_ should fix your valgrind err. How did you know it was preview_error_? I'm searching for bug-fixing intuition. Also, do you know why Valgrind did not simply say something like "preview_error_ was used before initialized" ? (I do use --track-orig

Re: help tracking down an uninitialized value (with Valgrind output)

2016-09-28 Thread Pavel Sanda
_file_ preview_format_ preview_error_ tracked_changes_present_ but you might want to carefully check all members. fixing preview_error_ should fix your valgrind err. these uninitialized guys get transfered in constructor of LaTeX class. pavel

help tracking down an uninitialized value (with Valgrind output)

2016-09-28 Thread Scott Kostyshak
I am trying to investigate what I think is a bug where sometimes when I compile sk/Intro.lyx with system fonts + LuaTeX it gives an error and sometimes not. I wouldn't be surprised if the Valgrind error I see has nothing to do with it, but nonetheless it seems important. I get the following

Re: [LyX/master] Fix memory error detected by valgrind

2014-11-18 Thread Richard Heck
On 11/18/2014 01:21 PM, Georg Baum wrote: Georg Baum wrote: commit e5845fea49e6c8a2cae0dfd8c708a31ae3d67719 Author: Georg Baum Date: Mon Nov 17 22:08:21 2014 +0100 Fix memory error detected by valgrind The assignment name = sub.str(1) reads from the first argument given

Re: [LyX/master] Fix memory error detected by valgrind

2014-11-18 Thread Georg Baum
Georg Baum wrote: > commit e5845fea49e6c8a2cae0dfd8c708a31ae3d67719 > Author: Georg Baum > Date: Mon Nov 17 22:08:21 2014 +0100 > > Fix memory error detected by valgrind > > The assignment name = sub.str(1) reads from the first argument given >

Valgrind reports memory leaks

2007-10-25 Thread Angus Leeming
On a Linux box: valgrind --leak-check=full src/lyx Open up the Users' Guide using the menu "Help>Users' Guide" Wait some time... Close LyX with "File>Exit" That produces the rather disturbing report. This is with a bang-up-to-date check out. -- Angus valgrin

Re: valgrind

2007-05-22 Thread Jean-Marc Lasgouttes
>>>>> "Dov" == Dov Feldstern <[EMAIL PROTECTED]> writes: Dov> Hi! The behavior Darren was describing got me thinking of Dov> valgrind. Is anyone regularly (or occasionally) testing LyX using Dov> valgrind? I do that from time to time. And it did find bugs for us. JMarc

valgrind

2007-05-22 Thread Dov Feldstern
Hi! The behavior Darren was describing got me thinking of valgrind. Is anyone regularly (or occasionally) testing LyX using valgrind? (If anyone's not familiar with valgrind: it's an open source runtime memory checker which does a lot more than just memory checking, for example, I

[PATCH] valgrind warning

2006-12-18 Thread Jean-Marc Lasgouttes
Without this patch valgrind complains about an uninitialized variable at startup. Since it is kind of obvious, I'll just commit (note that it does also a tiny bit of reformatting) JMarc Index: src/frontends/Applicat

Re: Valgrind bug report

2005-07-22 Thread Michael Schmitt
Angus Leeming wrote: Is QPreambleDialogBase.ui old cruft that should be removed??? Yes. Ok, I will move it to the attic tomorrow. Michael

Re: Valgrind bug report

2005-07-21 Thread Angus Leeming
Michael Schmitt wrote: > enclosed please find some new (?) bug reports. > Is QPreambleDialogBase.ui old cruft that should be removed??? Yes. -- Angus

Valgrind bug report

2005-07-21 Thread Michael Schmitt
with right mouse button => First valgrind message, then crash ==3279== Conditional jump or move depends on uninitialised value(s) ==3279==at 0x80CE4FF: operator==(Change const&, Change const&) (changes.C:28) ==3279==by 0x80D0484: Changes::lyxMarkChange(std::ostream&, int&

Re: Playing a bit with valgrind/massif

2004-11-29 Thread Kuba Ober
> The last interesting thingy is the dark blue 'stack' entry. This > memory grows when I press PageDown continuously and goes down when LyX > has managed to keep up with the number of PageDown request I have > issued. So there seems to be some recusrsivity going on when LyX > cannot execute events

Re: Playing a bit with valgrind/massif

2004-11-29 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> >> writes: > > Angus> Jean-Marc Lasgouttes wrote: >>> The light blue entry is interesting, since it seems to point to >>> the banner. Following the stack leads to: >>> http://www-rocq.inria.fr/~lasgoutt/lyx/massif

Re: Playing a bit with valgrind/massif

2004-11-29 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc Lasgouttes wrote: >> The light blue entry is interesting, since it seems to point to the >> banner. Following the stack leads to: >> http://www-rocq.inria.fr/~lasgoutt/lyx/massif.10779.html#bB24C7D08 >> therefore hinting a

Re: Playing a bit with valgrind/massif

2004-11-29 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > The light blue entry is interesting, since it seems to point to the > banner. Following the stack leads to: > http://www-rocq.inria.fr/~lasgoutt/lyx/massif.10779.html#bB24C7D08 > therefore hinting at the graphics cache. Since the is no graphics in > Customization.lyx

Playing a bit with valgrind/massif

2004-11-29 Thread Jean-Marc Lasgouttes
I took a look at what happens when running lyx under the heap profiler massif. The command used is valgrind --tool=massif --format=html --depth=10 ./lyx ~/src/lyx/lyx-devel/lib/doc/Customization.lyx and then I pressed pagedown repetedly until the scrollbar was at the middle of the document

Re: valgrind error report

2004-05-03 Thread Jean-Marc Lasgouttes
but I get basically the same + 2 Georg> strncpy errors with lyx cvs and xforms-1.0-218 on SuSE 9.0 Georg> (german locale). This was with valgrind 2.0.0, but 2.1.1 does Georg> not show any difference. This strncpy error is harmless, but fixed in xforms cvs. JMarc

Re: valgrind error report

2004-05-03 Thread Georg Baum
is was with valgrind 2.0.0, but 2.1.1 does not show any difference. Georg ==14833== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==14833== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==14833== Using valgrind-2.0.0, a program supervision framework for x86-linux. ==1

valgrind error report

2004-05-02 Thread Angus Leeming
Firing up the XForms version of lyx under valgrind and then shutting down immediately produces the following error report. It would be nice if we could clean this up, but I can't see anything wrong with the LyX or XForms code, which suggests bugs in the X11 routines. No doubt I'v

Re: [Bug 482] valgrind problems when searching in math

2004-01-07 Thread Alfredo Braunstein
Andre Poenitz wrote: > I don't mean the find scheme, but the 'dialog' scheme. To search for a > 'real' formula one must be able to enter it in the search dialog. Which, > in turn, means that the search dialog needs to accept almost arbitrary > data instead of a simple string. Sort of 'embedded Ins

Re: [Bug 482] valgrind problems when searching in math

2004-01-07 Thread Angus Leeming
Andre Poenitz wrote: > I don't mean the find scheme, but the 'dialog' scheme. To search for > a 'real' formula one must be able to enter it in the search dialog. > Which, in turn, means that the search dialog needs to accept almost > arbitrary data instead of a simple string. Sort of 'embedded > In

Re: [Bug 482] valgrind problems when searching in math

2004-01-07 Thread Andre Poenitz
On Wed, Jan 07, 2004 at 01:53:29PM +0100, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > > On Wed, Jan 07, 2004 at 01:30:02PM +0100, Alfredo Braunstein wrote: > > Would be a good starting point. Searching for real formulas would be > > better, of course, but that would involve something simi

Re: [Bug 482] valgrind problems when searching in math

2004-01-07 Thread Alfredo Braunstein
Andre Poenitz wrote: > On Wed, Jan 07, 2004 at 01:30:02PM +0100, Alfredo Braunstein wrote: > Would be a good starting point. Searching for real formulas would be > better, of course, but that would involve something similar to a > InsetText as 'search' field in the S&R dialog. I am not sure whethe

Re: [Bug 482] valgrind problems when searching in math

2004-01-07 Thread Andre Poenitz
On Wed, Jan 07, 2004 at 01:30:02PM +0100, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > > On Wed, Jan 07, 2004 at 01:00:53PM +0100, Andre' Poenitz wrote: > >> But should be re-added somehow... > > > > Incidently, where do I start? > > It depends on what we want. I want real S&R in math.

Re: [Bug 482] valgrind problems when searching in math

2004-01-07 Thread Alfredo Braunstein
Andre Poenitz wrote: > On Wed, Jan 07, 2004 at 01:00:53PM +0100, Andre' Poenitz wrote: >> But should be re-added somehow... > > Incidently, where do I start? It depends on what we want. > lyx::find seems to use insets only implicitly by using PosIterator, > i.e. does not descend into math at a

Re: [Bug 482] valgrind problems when searching in math

2004-01-07 Thread Andre Poenitz
On Wed, Jan 07, 2004 at 01:00:53PM +0100, Andre' Poenitz wrote: > But should be re-added somehow... Incidently, where do I start? lyx::find seems to use insets only implicitly by using PosIterator, i.e. does not descend into math at all. Andre' -- Those who desire to give up Freedom in order

New valgrind release

2003-11-21 Thread Michael Schmitt
Hello everybody, a new release of our favourite debugging tool is available: http://valgrind.kde.org/downloads.html Michael

valgrind report for setCursor

2003-09-03 Thread Michael Schmitt
Hi, I cannot reproduce this problem (I was moving the cursor innocently through nested descriptions in read-only file TOC.lyx) but nevertheless you might consider it interesting. ==18947== Conditional jump or move depends on uninitialised value(s) ==18947==at 0x816C72E: LyXText::setCursor(L

valgrind report

2003-08-19 Thread Michael Schmitt
Any idea why this happened? All I remember is that I cut some text and put it at the end of the document. When I wanted to move the cursor upwards (which IIRC was at the final empty line), the following crash occurred. Obviously, layout() returns an invalid pointer (0x1C). Unfortunately, I cann

Re: Valgrind memory errors in mathed

2002-07-25 Thread Jean-Marc Lasgouttes
LyXLex &) >> (../../../lyx-devel/src/mathed/formulamacro.C:113) Andre> I just swapped two lines. Could you check whether this fixed Andre> the problem? No I can't, because I can run valgrind only at home. But you can do it yourself :) Anyway, your fix seems reasonable. JMarc

Re: Valgrind memory errors in mathed

2002-07-25 Thread Andre Poenitz
On Thu, Jul 25, 2002 at 09:48:57AM +0200, Jean-Marc Lasgouttes wrote: > This one may be bogus: > > ==2426== Conditional jump or move depends on uninitialised value(s) > ==2426==at 0x404873D5: (within /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so) > ==2426==by 0x8195004: initMath(void) > (../.

Valgrind memory errors in mathed

2002-07-25 Thread Jean-Marc Lasgouttes
If I load the UserGuide, then quit, valgrind has among other things these complaints in mathed: This one may be bogus: ==2426== Conditional jump or move depends on uninitialised value(s) ==2426==at 0x404873D5: (within /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so) ==2426==by 0x8195004

valgrind - update

2002-02-22 Thread Michael Schmitt
Hi, Julian Seward, the author of valgrind, is a wizard! Yesterday, he has implemented the facility to invoke gdb when a memory access error occurs. After leaving gdb, valgrind takes over control again and program execution proceeds as if nothing has ever happened! If I hadn't tested

Re: valgrind

2002-02-19 Thread John Levon
On Tue, Feb 19, 2002 at 02:15:49PM -0800, Kayvan A. Sylvan wrote: > Where is valgrind to be found again? go to lists.kde.org and search for valgrind on kde-core-devel regards john -- "They eat cold meat for breakfast and make jokes about gzip." - Rik Hemsley on KDE developers

Re: valgrind

2002-02-19 Thread Kayvan A. Sylvan
ave never heard > of "valgrind" before. > > Thanks for the hint, John. > > Michael Where is valgrind to be found again? -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/8

Re: valgrind

2002-02-19 Thread John Levon
On Tue, Feb 19, 2002 at 02:22:06PM +0100, [EMAIL PROTECTED] wrote: > it even finds uninitialized variables. it even does this transitively. > I wonder why I have never heard > of "valgrind" before. it's new that's why :) It's nice to see some dynamic binar

valgrind

2002-02-19 Thread michael . schmitt
Hi, this memory checker seems to be great! IMHO every LyX developer/tester should use it. AFAIK it is the only real alternative to Purify so far as it even finds uninitialized variables. I wonder why I have never heard of "valgrind" before. Thanks for the hint, John. Michael

Re: valgrind

2002-02-19 Thread John Levon
On Tue, Feb 19, 2002 at 01:17:26PM +1000, Allan Rae wrote: > Finally a memory checker that works for me too! you realise you are expected to fix all the bugs now :) john -- "They eat cold meat for breakfast and make jokes about gzip." - Rik Hemsley on KDE developers

Re: valgrind

2002-02-18 Thread Allan Rae
On Mon, 18 Feb 2002, John Levon wrote: > On Mon, Feb 18, 2002 at 08:43:37PM +0100, Michael Schmitt wrote: > > > google does not know it and sourceforge provides an empty project. > > http://lists.kde.org/?l=kde-core-devel&m=101380460705928&w=2 > > It's slowish for some things but has already repo

Re: valgrind

2002-02-18 Thread John Levon
On Mon, Feb 18, 2002 at 08:43:37PM +0100, Michael Schmitt wrote: > google does not know it and sourceforge provides an empty project. http://lists.kde.org/?l=kde-core-devel&m=101380460705928&w=2 It's slowish for some things but has already reported a problem that njamd didn't notice ... regard