Bug 17614 - ran out of memory in call to value_optimized_out
Summary: ran out of memory in call to value_optimized_out
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.8
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-17 23:11 UTC by dje
Modified: 2014-11-17 23:12 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dje 2014-11-17 23:11:48 UTC
Reported by a user on IRC.

Program received signal SIGABRT, Aborted.
0x00007f6e36b98107 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f6e36b98107 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f6e36b994e8 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x0000000000668336 in dump_core () at utils.c:612
#3  0x000000000066a5c5 in internal_vproblem (problem=problem@entry=0xbc6280 <internal_error_problem>,
    file=<optimized out>, line=<optimized out>, fmt=<optimized out>, ap=ap@entry=0x7fff5fd83d48) at utils.c:777
#4  0x000000000066a649 in internal_verror (file=<optimized out>, line=<optimized out>, fmt=<optimized out>,
    ap=ap@entry=0x7fff5fd83d48) at utils.c:803
#5  0x000000000066a6f2 in internal_error (file=file@entry=0x7d9838 "utils.c", line=line@entry=1056,
    string=<optimized out>) at utils.c:813
#6  0x000000000066a781 in malloc_failure (size=size@entry=2640407921) at utils.c:1056
#7  0x00000000006940c8 in xcalloc (number=number@entry=1, size=2640407921) at ./common/common-utils.c:93
#8  0x00000000006940dd in xzalloc (size=<optimized out>) at ./common/common-utils.c:101
#9  0x0000000000554ccc in allocate_value_contents (val=<optimized out>, val=<optimized out>) at value.c:857
#10 0x0000000000557f38 in allocate_value_contents (val=<optimized out>, val=<optimized out>) at value.c:3724
#11 value_fetch_lazy (val=0x22927b0) at value.c:3670
#12 0x00000000005588b1 in value_optimized_out (value=value@entry=0x22927b0) at value.c:1241
#13 0x00000000005091db in valpy_get_is_optimized_out (self=<optimized out>, closure=<optimized out>)
    at ./python/py-value.c:851
#14 0x00007f6e374b6395 in _PyObject_GenericGetAttrWithDict () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#15 0x00007f6e374cbaca in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#16 0x00007f6e374cff2d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#17 0x00007f6e374cff2d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#18 0x00007f6e374cff2d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#19 0x00007f6e37542010 in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#20 0x00007f6e3749201c in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#21 0x00007f6e3749a8d3 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#22 0x00007f6e374dcd05 in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#23 0x00007f6e3749a8d3 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#24 0x00007f6e3749aacf in PyObject_CallMethodObjArgs () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#25 0x00000000004f990b in cmdpy_function (command=<optimized out>, args=<optimized out>, from_tty=1)
    at ./python/py-cmd.c:152
#26 0x000000000066673c in execute_command (p=<optimized out>,
---Type <return> to continue, or q <return> to quit---
    p@entry=0x7fff5fd84a30 "bb options:fancy,autoderef,dyntype vars: expanded:local,watch,inspect,return typeformats: formats: watchers: stringcutoff:10000 displaystringlimit:100", from_tty=from_tty@entry=1) at top.c:479
#27 0x00000000004de347 in safe_execute_command (command_uiout=<optimized out>,
    command=command@entry=0x7fff5fd84a30 "bb options:fancy,autoderef,dyntype vars: expanded:local,watch,inspect,return typeformats: formats: watchers: stringcutoff:10000 displaystringlimit:100", from_tty=1)
    at ./cli/cli-interp.c:193
#28 0x00000000004de3e3 in cli_interpreter_exec (data=<optimized out>, command_str=<optimized out>)
    at ./cli/cli-interp.c:176
#29 0x00000000005a85c2 in interp_exec (interp=interp@entry=0x1f96e20, command_str=<optimized out>)
    at interps.c:364
#30 0x00000000004e4edb in mi_cmd_interpreter_exec (command=command@entry=0x78672a "-interpreter-exec",
    argv=argv@entry=0x7fff5fd84b90, argc=argc@entry=2) at ./mi/mi-interp.c:261
#31 0x00000000004e8402 in captured_mi_execute_command (context=0x21a7af0, uiout=0x209f800) at ./mi/mi-main.c:2027
#32 mi_execute_command (
    cmd=0x236f330 "1103bb options:fancy,autoderef,dyntype vars: expanded:local,watch,inspect,return typeformats: formats: watchers: stringcutoff:10000 displaystringlimit:100", from_tty=<optimized out>) at ./mi/mi-main.c:2116
#33 0x00000000004e39fd in mi_execute_command_wrapper (cmd=<optimized out>) at ./mi/mi-interp.c:306
#34 mi_execute_command_input_handler (cmd=<optimized out>) at ./mi/mi-interp.c:336
#35 0x00000000005af261 in process_event () at event-loop.c:343
#36 0x00000000005af62a in gdb_do_one_event () at event-loop.c:395
#37 0x00000000005af87e in start_event_loop () at event-loop.c:432
#38 0x00000000005a9053 in captured_command_loop (data=data@entry=0x0) at main.c:303
#39 0x00000000005a627a in catch_errors (func=func@entry=0x5a9040 <captured_command_loop>,
    func_args=func_args@entry=0x0, errstring=errstring@entry=0x773732 "", mask=mask@entry=RETURN_MASK_ALL)
    at exceptions.c:506
#40 0x00000000005a9fc6 in captured_main (data=data@entry=0x7fff5fd84e50) at main.c:1164
#41 0x00000000005a627a in catch_errors (func=func@entry=0x5a9570 <captured_main>,
    func_args=func_args@entry=0x7fff5fd84e50, errstring=errstring@entry=0x773732 "",
    mask=mask@entry=RETURN_MASK_ALL) at exceptions.c:506
#42 0x00000000005aa49b in gdb_main (args=args@entry=0x7fff5fd84e50) at main.c:1172
#43 0x000000000045e185 in main (argc=<optimized out>, argv=<optimized out>) at gdb.c:33
Comment 1 dje 2014-11-17 23:12:35 UTC
See also pr 9232 and pr 14456.
Maybe dups, maybe not.