This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug record/21195] Record immediately crashes with multiple inferiors


https://sourceware.org/bugzilla/show_bug.cgi?id=21195

Daniel Black <daniel at linux dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel at linux dot ibm.com

--- Comment #1 from Daniel Black <daniel at linux dot ibm.com> ---

/usr/local/bin/gdb  --args /usr/local/mariadb-10.3_libc_memcpy/bin/mysqld
--datadir=/tmp/datadir   
GNU gdb (GDB) 8.1.50.20180418-git
..
(gdb) break network_init
(gdb) run
Thread 1 "mysqld" hit Breakpoint 1, mysqld_main (argc=<optimized out>,
argv=<optimized out>) at /home/dan/mariadb-server/sql/mysqld.cc:5964
5964      network_init();
(gdb) record full
(gdb) s
network_init () at /home/dan/mariadb-server/sql/mysqld.cc:2718
2718      if (MYSQL_CALLBACK_ELSE(thread_scheduler, init, (), 0))
(gdb) n
record-full.c:1046: internal-error: ptid_t record_full_wait_1(target_ops*,
ptid_t, target_waitstatus*, int): Assertion `(options & TARGET_WNOHANG) != 0'
failed.




/usr/local/bin/gdb /usr/local/bin/gdb core.171192 

[New LWP 171192]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/opt/at11.0/lib64/power9/libthread_db.so.1".
Core was generated by `/usr/local/bin/gdb --args
/usr/local/mariadb-10.3_libc_memcpy/bin/mysqld --data'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007638aaf78550 in __libc_signal_restore_set (set=0x7fffc15070e0) at
../sysdeps/unix/sysv/linux/nptl-signals.h:80
80      ../sysdeps/unix/sysv/linux/nptl-signals.h: No such file or directory.
(gdb) bt
#0  0x00007638aaf78550 in __libc_signal_restore_set (set=0x7fffc15070e0) at
../sysdeps/unix/sysv/linux/nptl-signals.h:80
#1  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:48
#2  0x00007638aaf7ad68 in __GI_abort () at abort.c:90
#3  0x000000001046b28c in dump_core () at utils.c:255
#4  0x000000001046ecc0 in internal_vproblem (problem=0x10b8f3d8
<internal_error_problem>, file=<optimized out>, line=<optimized out>,
fmt=<optimized out>,
    ap=<optimized out>) at utils.c:464
#5  0x000000001046ee90 in internal_verror (file=<optimized out>,
line=<optimized out>, fmt=<optimized out>, ap=<optimized out>) at utils.c:489
#6  0x0000000010208160 in internal_error (file=<optimized out>, line=<optimized
out>, fmt=<optimized out>) at common/errors.c:55
#7  0x0000000010395134 in record_full_wait_1 (options=0, status=0x7fffc1507710,
ptid=..., ops=0x10bdf728 <record_full_ops>) at record-full.c:1046
#8  record_full_wait (ops=0x10bdf728 <record_full_ops>, ptid=...,
status=0x7fffc1507710, options=<optimized out>) at record-full.c:1325
#9  0x000000001041176c in delegate_wait (self=<optimized out>, arg1=...,
arg2=<optimized out>, arg3=<optimized out>) at target-delegates.c:138
#10 0x000000001042afc0 in target_wait (ptid=..., status=<optimized out>,
options=<optimized out>) at target.c:2258
#11 0x00000000103071f0 in wait_one (ws=<optimized out>) at infrun.c:4339
#12 stop_all_threads () at infrun.c:4551
#13 0x000000001030733c in stop_waiting (ecs=<optimized out>) at infrun.c:7664
#14 0x000000001030bf08 in handle_signal_stop (ecs=0x7fffc1507b30) at
infrun.c:6084
#15 0x00000000103107b4 in handle_inferior_event_1 (ecs=0x7fffc1507b30) at
infrun.c:5371
#16 handle_inferior_event (ecs=0x7fffc1507b30) at infrun.c:5406
#17 0x0000000010311c8c in fetch_inferior_event (client_data=<optimized out>) at
infrun.c:3920
#18 0x00000000102f2388 in inferior_event_handler (event_type=<optimized out>,
client_data=<optimized out>) at inf-loop.c:43
#19 0x000000001007df20 in handle_target_event (error=<optimized out>,
client_data=<optimized out>) at linux-nat.c:4465
#20 0x00000000102abc7c in handle_file_event (file_ptr=0x11f4e620,
ready_mask=<optimized out>) at event-loop.c:733
#21 0x00000000102ac4b4 in gdb_wait_for_event (block=0) at event-loop.c:859
#22 0x00000000102ac7d8 in gdb_do_one_event () at event-loop.c:322
#23 0x00000000102ac93c in gdb_do_one_event () at event-loop.c:304
#24 start_event_loop () at event-loop.c:371
#25 0x000000001033b3bc in captured_command_loop () at main.c:330
#26 0x000000001033cbe0 in captured_main (data=<optimized out>) at main.c:1157
#27 gdb_main (args=<optimized out>) at main.c:1173
#28 0x0000000010014158 in main (argc=<error reading variable: value has been
optimized out>, argv=<optimized out>) at gdb.c:32

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]