Seg fault when continue with breakpoint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am able to run the program without seg fault and just run the program in gdb does not have seg fault. However, when I set the some specific breakpoint (but not every possible breakpoint), and then run program, seg fault will happen on some other line than the breakpoint after some continues.
Bellow is the trace:
GNU gdb (Ubuntu 8.2-0ubuntu1~
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/anygroup/
warning: File "/home/
To enable execution of this file add
add-auto-
line to your configuration file "/home/
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) br *0x409398
Breakpoint 1 at 0x409398: file /home/anygroup/
(gdb) run test.zip
Starting program: /home/anygroup/
Breakpoint 1, 0x0000000000409398 in scanblock (b=<error reading variable: Attempt to dereference a generic pointer.>,
n=<error reading variable: Attempt to dereference a generic pointer.>) at /home/anygroup/
135 obj = (void*)
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
scanblock (b=<error reading variable: Attempt to dereference a generic pointer.>, n=<error reading variable: Attempt to dereference a generic pointer.>)
at /home/anygroup/
141 xbits = *bitp;