With the rpm4 port (rpm-4.9.1.2), import the rpm module in python causes a segfault. The cause of the segfault is dereferencing glob_t.gl_pathv at line 629 in rpm-4.9.1.2/rpmio/rpmfileutil.c. The reason for the gl_pathv is set to an invalid pointer is because rpm is using the header file rpm-4.9.1.2/misc/glob.h which defines a different glob_t structure then the one found in /usr/include/glob.h. As the glob function linked to is the one in libc.a and not misc/glob.c, resulting in dereferencing the wrong address. Fix: Replace the definition of the glob_t struct in misc/glob.h with the definition found in /usr/include/glob.h How-To-Repeat: install rpm4 port. run python -c "import rpm"
State Changed From-To: open->feedback I'm sorry, I don't understand. Is this a problem with the python ports, or with rpm4?
State Changed From-To: feedback->open reclassify based on input from submitter.
Responsible Changed From-To: freebsd-ports-bugs->johans
johans 2011-11-14 21:47:47 UTC FreeBSD ports repository Modified files: archivers/rpm4 Makefile Added files: archivers/rpm4/files patch-misc_glob.h Log: Fix conflicting glob_t definitions, which triggered a crash when importing the rpm4 module in Python. PR: ports/162483 Submitted by: Sean Mitchell <smitchell@hcn-inc.com> Feature safe: yes Revision Changes Path 1.40 +1 -0 ports/archivers/rpm4/Makefile 1.1 +18 -0 ports/archivers/rpm4/files/patch-misc_glob.h (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Thanks for the report and good analysis. Patch committed.