Re: cannot "hibernate" if program being debugged in gdb is paused after SIGABRT in linux 2.6.23 (but can in 2.6.22.7)




Well, a test program that triggers the SIGABRT under gdb would be useful.

The attached program causes a SIGABRT for me,

Thanks,
C.
#include <string>
using namespace std;

int main (char **argv, int argc) {
string t = "linux rocks!";

t.replace(LONG_MAX, 1, "sigabrt here");

return 0;
}


Relevant Pages

  • SHA1_Update() produces wrong results for large buffers
    ... Attached is a test program, which mmaps a file and then ... int fd; struct stat st; SHA_CTX ctx; unsigned char *buf; char hexdigest; ...
    (freebsd-stable)
  • Re: PHP-4.3.9-3 Recompile Fails
    ... Can you try compiling this test program on its own so see can see what the ... /* We use char because int might match the return type of a gcc2 ...
    (Fedora)
  • I cant create thread more than 256 on Redhat 9
    ... But after create 255, pthread_creationreturns int 12. ... Here are the test program and the result from my computer. ... int main(int argc, char *argv) { ... On fedora core 1, it couldn't create thread more than 305. ...
    (comp.os.linux.development.apps)
  • Re: KB 839136 is wrong -- bug not fixed in VC6SP6
    ... however running a simple test program shows that it is not fixed. ... int main(int argc, char* argv) ...
    (microsoft.public.vc.language)
  • Re: Why doesnt std::cin choke on this?
    ... when I was writing a user-driven test program for a data structure I ... You read an int. ... it simpler then checking the stream for it's ... read in a string, this becomes trivial. ...
    (comp.lang.cpp)