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)

C Sights
2007-10-28T15:36:18Z

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

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

The attached program causes a SIGABRT for me,

Thanks,
C.

[-- Attachment #2: main.cpp --]
[-- Type: text/x-c++src, Size: 161 bytes --]

#include <string>
using namespace std;

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

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

return 0;
}