[Bug 483252] New: swig/python detected a memory leak of type 'struct _Pool *', no destructor found.
https://bugzilla.novell.com/show_bug.cgi?id=483252 Summary: swig/python detected a memory leak of type 'struct _Pool *', no destructor found. Classification: openSUSE Product: openSUSE 11.2 Version: Alpha 0 Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: gp@novell.com QAContact: qa@suse.de CC: jmatejek@novell.com, prusnak@novell.com Found By: Product Management Entering an unknown command on the shell triggers the following: % asdf swig/python detected a memory leak of type 'struct _Pool *', no destructor found. This is latest factory, with bash-4.0-4.1 command-not-found-0.1.0-28.35 python-2.6.0-9.9 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c1 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |kkaempf@novell.com |ovo.novell.com | --- Comment #1 from Pavol Rusnak <prusnak@novell.com> 2009-03-09 02:23:42 MST --- this is an issue in python-satsolver -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c2 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Klaus Kämpf <kkaempf@novell.com> 2009-03-09 02:37:03 MST --- Right, and here's the explanation (taken from sat-solver/bindings/pool.i): /* * Document-method: discard * * There is no destructor defined for Pool since the pool pointer * is mostly used implicitly (e.g. in Solvable or Solver) which * cannot be reliably tracked in the bindings. * * Deleting the Pool is seldomly needed anyways. Just call * Pool::discard to explicitly free the pool. Just remember that * Solvables originating from this Pool are invalidated. */ I'll re-add a no-op Pool destructor for now, running out of ideas how to solve it better. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c3 --- Comment #3 from Pavol Rusnak <prusnak@novell.com> 2009-03-09 02:48:03 MST --- Klaus: Just curious, but why is it not OK to call Pool::discard in destructor, but rather using a no-op one? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c4 --- Comment #4 from Klaus Kämpf <kkaempf@novell.com> 2009-03-09 02:57:10 MST --- I did the following in Ruby def create_solver() pool = Satsolver::Pool.new() ... loading solv files etc. ... solver = pool.create_solver() return solver end and worked with just the returned solver. This code crashed when Rubys garbage collection kicked in, because the 'pool' object was not referenced anymore. However, there is an internal reference through 'solver', undetectable for the garbage collector. Since 'Pool' is so central when working with Satsolver, one usually needs the destructor at end of the program. If, for memory optimisations, the Pool should be freed before, pool.discard() does this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c5 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvyskocil@novell.com --- Comment #5 from Pavol Rusnak <prusnak@novell.com> 2009-03-12 04:14:16 MST --- *** Bug 484668 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=484668 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c6 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wstephenson@novell.com --- Comment #6 from Pavol Rusnak <prusnak@novell.com> 2009-03-18 10:18:58 MST --- *** Bug 486482 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=486482 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User gp@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c7 Gerald Pfeifer <gp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |gp@novell.com Resolution|FIXED | --- Comment #7 from Gerald Pfeifer <gp@novell.com> 2009-03-31 06:08:41 MDT --- I am still seeing this: gp@tomonaga:~> blah If 'blah' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf blah gp@tomonaga:~> cnf blah blah: command not found. searching ... swig/python detected a memory leak of type 'struct _Pool *', no destructor found. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c8 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kkaempf@novell.com |mls@novell.com --- Comment #8 from Klaus Kämpf <kkaempf@novell.com> 2009-03-31 06:50:47 MDT --- Thats probably due to satsolver still being statically linked ?! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c9 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mls@novell.com |kkaempf@novell.com --- Comment #9 from Michael Schröder <mls@novell.com> 2009-03-31 07:12:45 MDT --- statically linked where? It's linked into /usr/lib/python2.6/site-packages/_satsolver.so Anyway, I don't know how to fix this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c10 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |mls@novell.com Info Provider| |gp@novell.com --- Comment #10 from Klaus Kämpf <kkaempf@novell.com> 2009-03-31 07:29:12 MDT --- It _is_ fixed (see comment #2) but somehow not distributed to Factory (resp. gp's system) whats the output of "rpm -qf /usr/lib/python2.6/site-packages/_satsolver.so" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User gp@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c11 Gerald Pfeifer <gp@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|gp@novell.com | --- Comment #11 from Gerald Pfeifer <gp@novell.com> 2009-03-31 09:24:29 MDT --- Interesting: # rpm -qf /usr/lib/python2.6/site-packages/_satsolver.so error: file /usr/lib/python2.6/site-packages/_satsolver.so: No such file or directory The system is current FACTORY, only pulseaudio being locked (out): # zypper lr -d # | Alias | Name | Enabled | Refresh | Priority | Type | URI | Service --+---------+---------+---------+---------+----------+-------+------------------------------------------------+-------- 1 | factory | factory | Yes | Yes | 99 | yast2 | http://download.opensuse.org/factory/repo/oss/ | # zypper ll # | Name | Type | Repository --+------------+---------+----------- 1 | pulseaudio | package | (any) # sudo zypper dup Loading repository data... Reading installed packages... Computing distribution upgrade... Nothing to do. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User prusnak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c12 --- Comment #12 from Pavol Rusnak <prusnak@novell.com> 2009-03-31 10:02:33 MDT --- Gerald: you might be running 64-bit system. In my case: $ rpm -qf /usr/lib64/python2.6/site-packages/_satsolver.so python-satsolver-0.13.2-0.1.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User gp@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c13 --- Comment #13 from Gerald Pfeifer <gp@novell.com> 2009-03-31 10:20:41 MDT --- Of course! Thanks Pavol! I was thinking ia64 (which has /usr/lib/ as the primary one), but indeed on my x86-64 tester: # rpm -qf /usr/lib64/python2.6/site-packages/_satsolver.so python-satsolver-0.14.0-1.5 The latest ChangeLog entry according to rpm -q --changelog is * Wed Mar 04 2009 mls@suse.de - fix problem_to_solutions segfault - bump version to 0.14 to make it different from code11 branch - 0.14.0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=483252 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c14 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #14 from Klaus Kämpf <kkaempf@novell.com> 2009-04-01 02:42:43 MDT --- The Python workaround was added on Mar 09. Submitting satsolver to Factory now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com