Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gdb misbehaviour

While trying to update pkgsrc glib-networking on -current/amd64,
I saw that gio-querymodules kept dumping core. I don't understand
the gdb output:

quantz# gdb /usr/pkg/bin/gio-querymodules  
GNU gdb (GDB) 7.12
(gdb) break main
Breakpoint 1 at 0x401438: file gio-querymodules.c, line 132.
(gdb) run /usr/pkg/lib/gio/modules
Starting program: /usr/pkg/bin/gio-querymodules /usr/pkg/lib/gio/modules

Breakpoint 1, main (argc=2, argv=0x7f7fffffe7a0) at gio-querymodules.c:132
132       if (argc == 1)
(gdb) n
139       setlocale (LC_ALL, "");
142       g_type_ensure (G_TYPE_OBJECT);
144       for (i = 1; i < argc; i++)
145         query_dir (argv[i]);
144       for (i = 1; i < argc; i++)
147       return 0;
148     }
0x000000000040101b in ___start ()
Single stepping until exit from function ___start,
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x00007f7ff4c0979f in ?? ()
Cannot find bounds of current function

"return 0;" didn't? (This is a 20 August system)



Home | Main Index | Thread Index | Old Index