[MacPorts] #22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT -------------------------------+-------------------------------------------- Reporter: francis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: devel/apr -------------------------------+-------------------------------------------- apr 1.3.9 defines APR_OFF_T_FMT in apr.h as "lld" when the universal variant is not selected. This causes svn 1.6.5 to crash (see attached reproduce.sh). The attached patch causes APR_OFF_T_FMT to be defined as "ld", which fixes the Subversion crash. -- Ticket URL: <http://trac.macports.org/ticket/22770> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT -------------------------------+-------------------------------------------- Reporter: francis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: devel/apr -------------------------------+-------------------------------------------- Comment(by francis@…): Note that this only applies to Snow Leopard - works fine on Leopard. Also, note that subversion needs to be recompiled after patching and reinstalling apr for the fix to take effect. -- Ticket URL: <http://trac.macports.org/ticket/22770#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT -------------------------------+-------------------------------------------- Reporter: francis@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: apr -------------------------------+-------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => dluke@… * port: devel/apr => apr -- Ticket URL: <http://trac.macports.org/ticket/22770#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT -------------------------------+-------------------------------------------- Reporter: francis@… | Owner: dluke@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: apr -------------------------------+-------------------------------------------- Changes (by dluke@…): * status: new => assigned -- Ticket URL: <http://trac.macports.org/ticket/22770#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT -------------------------------+-------------------------------------------- Reporter: francis@… | Owner: dluke@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: apr -------------------------------+-------------------------------------------- Comment(by toby@…): This doesn't make sense. apr_off_t is just an off_t, %lld is the correct specifier. -- Ticket URL: <http://trac.macports.org/ticket/22770#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT -------------------------------+-------------------------------------------- Reporter: francis@… | Owner: dluke@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: apr -------------------------------+-------------------------------------------- Comment(by toby@…): Easy to test: {{{ #include <stdio.h> int main() { off_t x = 1; printf("%ld %lld\n", x, x); return 0; } }}} -- Ticket URL: <http://trac.macports.org/ticket/22770#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT -------------------------------+-------------------------------------------- Reporter: francis@… | Owner: dluke@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: apr -------------------------------+-------------------------------------------- Comment(by toby@…): {{{ test.c: In function ‘main’: test.c:8: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘off_t’ test.c: In function ‘main’: test.c:8: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘off_t’ }}} -- Ticket URL: <http://trac.macports.org/ticket/22770#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22770: apr 1.3.9 causes svn to crash due to incorrect APR_OFF_T_FMT --------------------------------+------------------------------------------- Reporter: francis@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: apr | --------------------------------+------------------------------------------- Changes (by dluke@…): * status: assigned => closed * resolution: => fixed Comment: This should now be resolved (r62330) see also #22032 and associated upstream bug. -- Ticket URL: <http://trac.macports.org/ticket/22770#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts