Version: rxvt-unicode 9.14
Platform: Linux/amd64 (modified RHEL 4)
Compiler: gcc 4.5.2 (not from distro package)
Problem: Using the default CFLAGS and configuration options, I get an
rxvt binary that consistently crashes. I can reproduce it most easily
with:
1 start rxvt
2 run 'top'
3 hit space to refresh (rarely, twice)
4 crash

The following error message is printed:
terminate called after throwing an instance of 'out_of_input'

Stack trace:
#0  0x0000002a96a4f26d in raise () from /lib64/tls/libc.so.6
#1  0x0000002a96a50a6e in abort () from /lib64/tls/libc.so.6
#2  0x000000000046b95d in __gnu_cxx::__verbose_terminate_handler ()
    at ../../../../../src/gcc-4.5.2/libstdc++-v3/libsupc++/vterminate.cc:93
#3  0x000000000046b1b6 in __cxxabiv1::__terminate (handler=<optimized out>)
    at ../../../../../src/gcc-4.5.2/libstdc++-v3/libsupc++/eh_terminate.cc:39
#4  0x000000000046b1e3 in std::terminate ()
    at ../../../../../src/gcc-4.5.2/libstdc++-v3/libsupc++/eh_terminate.cc:49
#5  0x000000000046b2ee in __cxxabiv1::__cxa_throw (obj=<optimized out>,
    tinfo=<optimized out>, dest=<optimized out>)
    at ../../../../../src/gcc-4.5.2/libstdc++-v3/libsupc++/eh_throw.cc:83
#6  0x0000000000434dec in cmd_getc (this=<optimized out>) at command.C:2392
#7  rxvt_term::process_escape_seq (this=0x7424b0) at command.C:2684
#8  0x0000000000435230 in rxvt_term::cmd_parse (this=0x7424b0)
    at command.C:2327
#9  0x0000000000437638 in rxvt_term::pty_cb (this=0x7424b0, w=<optimized out>,
    revents=1) at command.C:1201
#10 0x0000000000455f94 in ev_invoke_pending () at ./../libev/ev.c:2626
#11 0x000000000045725f in ev_run (flags=<optimized out>)
    at ./../libev/ev.c:3026
#12 0x000000000042ba04 in main (argc=1, argv=0x7fbfffeea8) at rxvt.C:38

The stack trace is the same regardless of how I produce the crash.

Workaround: When I rebuild without optimization, or with -O1, the
program doesn't crash.

Analysis: I poked around command.C a bit and I see that the
out_of_input exception is supposed to be caught by cmd_parse, so this
must be what the optimizer is breaking.

--Neil

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to