Re: librpmio memory allocation issue

2011-03-03 Thread Qing He
On Mar 1, 2011, at 2:45 PM, Jeff Johnson wrote: On Mar 1, 2011, at 2:33 PM, Mark Hatle wrote: On 3/1/11 1:27 PM, Jeff Johnson wrote: On Mar 1, 2011, at 2:20 PM, Mark Hatle wrote: I think jbj might have figured out the problem. Zypper is not using pcre, but is instead

Re: librpmio memory allocation issue

2011-03-03 Thread Jeff Johnson
On Mar 3, 2011, at 7:09 AM, Qing He wrote: The only way that backtrace can happen (that I can see) is if RPM, not zypper, is mis-compiled using an unfixed (to redefine colliding symbols) system: PCRE with #include pcreposix.h which leaves you two choices: 1) fix you system

librpmio memory allocation issue

2011-03-01 Thread Paul Eggleton
Hi there, In Poky we're currently seeing a crash of zypper search in conjunction with rpm 5.4.0 [1]. Using valgrind I tracked the issue down to rpmio/mire.c line 361: mire-preg = xcalloc(1, sizeof(*mire-preg)); If I hack this line to specify 64 as the size (the expected

Re: librpmio memory allocation issue

2011-03-01 Thread Jeff Johnson
On Mar 1, 2011, at 11:04 AM, Paul Eggleton wrote: Hi there, In Poky we're currently seeing a crash of zypper search in conjunction with rpm 5.4.0 [1]. Using valgrind I tracked the issue down to rpmio/mire.c line 361: mire-preg = xcalloc(1, sizeof(*mire-preg)); If I hack this

RE: librpmio memory allocation issue

2011-03-01 Thread pinto.e...@gmail.com
-Original Message- From: Paul Eggleton Sent: 01/03/2011, 17:04 To: rpm-devel@rpm5.org Subject: librpmio memory allocation issue Hi there, In Poky we're currently seeing a crash of zypper search in conjunction with rpm 5.4.0 [1]. Using valgrind I tracked the issue down to rpmio/mire.c

Re: librpmio memory allocation issue

2011-03-01 Thread Mark Hatle
. Regards -Original Message- From: Paul Eggleton Sent: 01/03/2011, 17:04 To: rpm-devel@rpm5.org Subject: librpmio memory allocation issue Hi there, In Poky we're currently seeing a crash of zypper search in conjunction with rpm 5.4.0 [1]. Using valgrind I tracked the issue down

Re: librpmio memory allocation issue

2011-03-01 Thread Jeff Johnson
memory allocation issue Hi there, In Poky we're currently seeing a crash of zypper search in conjunction with rpm 5.4.0 [1]. Using valgrind I tracked the issue down to rpmio/mire.c line 361: mire-preg = xcalloc(1, sizeof(*mire-preg)); If I hack this line to specify 64 as the size

Re: librpmio memory allocation issue

2011-03-01 Thread Jeff Johnson
On Mar 1, 2011, at 2:45 PM, Jeff Johnson wrote: On Mar 1, 2011, at 2:33 PM, Mark Hatle wrote: On 3/1/11 1:27 PM, Jeff Johnson wrote: On Mar 1, 2011, at 2:20 PM, Mark Hatle wrote: I think jbj might have figured out the problem. Zypper is not using pcre, but is instead causing mire