Bug#185243: libstdc++3-dev: rope segfaults under heavy load

2003-03-18 Thread Ian Turner
Philip, The revised code works for me on gcc-3.2 as well, but not gcc-3.0. I suspect this is a library difference (libstdc++-3 vs libstdc++-5), though in principle I suppose it could be a compiler bug as well. See bug 184242, which is this same problem applied to libstdc++-5. Ian On Wed, Mar 19

Bug#185243: libstdc++3-dev: rope segfaults under heavy load

2003-03-18 Thread Philip Martin
Ian Turner <[EMAIL PROTECTED]> writes: > Here is the modified code, with some additional checks: With that code I get a crash when I use Debian's g++-3.0 version 1:3.0.4-7. I also have a gcc-3.2 that I compiled from CVS $ g++ -v Reading specs from /usr/local/gcc-3.2-cvs/lib/gcc-lib/i686-pc-lin

Bug#185242: Error in testcase program.

2003-03-18 Thread Ian Turner
As Philip Martin pointed out in bug 185242, the testcase program submitted is incorrect; having failed to return rval, the return value is undefined in the case that rval != max. Fixing this problem, I am unable to reproduce the bug on gcc-3.2 (though still on gcc-3.0). New source code appears

Bug#185243: libstdc++3-dev: rope segfaults under heavy load

2003-03-18 Thread Ian Turner
Good point, though changing the function to return rval in the other case seems to change the result not at all. I suspect that (due to luck) rval is on the stack in any case. Here is the modified code, with some additional checks: #include #include #include using namespace std; using names

Bug#185243: libstdc++3-dev: rope segfaults under heavy load

2003-03-18 Thread Philip Martin
> unsigned int rand(unsigned int max) { > unsigned int rval = (unsigned int)(((double)max)*rand()/(RAND_MAX)); > if (rval == max) > return max-1; > } This function returns no value if rval != max so the behaviour is undefined. -- Philip Martin

gcc-3.3_3.3ds2-0pre2_hppa.changes ACCEPTED

2003-03-18 Thread Debian Installer
Accepted: cpp-3.3-doc_3.3-0pre2_all.deb to pool/main/g/gcc-3.3/cpp-3.3-doc_3.3-0pre2_all.deb cpp-3.3_3.3-0pre2_hppa.deb to pool/main/g/gcc-3.3/cpp-3.3_3.3-0pre2_hppa.deb fastjar_3.3-0pre2_hppa.deb to pool/main/g/gcc-3.3/fastjar_3.3-0pre2_hppa.deb fixincludes_3.3-0pre2_hppa.deb to pool/main

gcc-3.3 override disparity

2003-03-18 Thread Debian Installer
There are disparities between your recently accepted upload and the override file for the following file(s): libstdc++5_3.3-0pre2_hppa.deb: package says priority is standard, override says important. g++-3.3_3.3-0pre2_hppa.deb: package says priority is standard, override says optional. gcc-3.3_3

gcc-3.3_3.3ds2-0pre2_hppa.changes REJECTED

2003-03-18 Thread Debian Installer
Rejected: can not copy libstdc++5_3.3-0pre2_hppa.deb to holding area: file not found. Rejected: can not copy libg2c0_3.3-0pre2_hppa.deb to holding area: file not found. Rejected: can not copy libstdc++5-3.3-pic_3.3-0pre2_hppa.deb to holding area: file not found. Rejected: can not copy libobjc1_