Re: Core dump with tip (ucom0 -> external modem)

From: Mike Hunter (mhunter_at_ack.Berkeley.EDU)
Date: 04/27/04

  • Next message: Peter Pentchev: "Re: Loosing STDOUT after file rotation"
    Date: Mon, 26 Apr 2004 23:55:46 -0700
    To: "Daniel O'Connor" <doconnor@gsoft.com.au>
    
    

    On Apr 26, "To Daniel O'Connor" wrote:

    > > then bt at the gdb prompt.
    >
    > Thanks for taking a look at it.
    >
    > GNU gdb 5.2.1 (FreeBSD)
    > Copyright 2002 Free Software Foundation, Inc.
    > GDB is free software, covered by the GNU General Public License, and you are
    > welcome to change it and/or distribute copies of it under certain conditions.
    > Type "show copying" to see the conditions.
    > There is absolutely no warranty for GDB. Type "show warranty" for details.
    > This GDB was configured as "i386-unknown-freebsd"...
    > (no debugging symbols found)...
    > Core was generated by `tip'.
    > Program terminated with signal 11, Segmentation fault.
    > Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done.
    > Loaded symbols for /lib/libc.so.5
    > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...
    > done.
    > Loaded symbols for /libexec/ld-elf.so.1
    > #0 0x08049bd2 in connect ()
    > (gdb) bt
    > #0 0x08049bd2 in connect ()
    > #1 0x0804d055 in send ()
    > #2 0x08049942 in sigprocmask ()
    > (gdb)

    I went and built tip with debugging symbols...

    (gdb) set args -9600 33230
    (gdb) run
    Starting program: /usr/src/usr.bin/tip/tip/tip -9600 33230
    Stale lock on ucom0 PID=6696... overriding.

    Program received signal SIGSEGV, Segmentation fault.
    0x08049cd7 in connect () at acu.c:110
    110 if (*cp != '\0')
    (gdb) bt 10
    #0 0x08049cd7 in connect () at acu.c:110
    #1 0x0804d4bd in main (argc=1, argv=0xbfbfec48) at tip.c:202
    #2 0x08049a42 in _start ()
    (gdb)

    checking for cp != NULL fixes the seg fault, but it still hangs for
    me...sigh.

    Mike
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Peter Pentchev: "Re: Loosing STDOUT after file rotation"

    Relevant Pages

    • Re: Fedora 9
      ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... Program received signal SIGSEGV, Segmentation fault. ... Missing separate debuginfos, use: debuginfo-install atk.i386 cairo.i386 ...
      (Fedora)
    • Re: Fedora 9
      ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... There is NO WARRANTY, to the extent permitted by law. ... Program received signal SIGSEGV, Segmentation fault. ...
      (Fedora)
    • Re: Fedora 9
      ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... There is NO WARRANTY, to the extent permitted by law. ... Program received signal SIGSEGV, Segmentation fault. ...
      (Fedora)
    • Re: Fedora 9
      ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... There is NO WARRANTY, to the extent permitted by law. ... Program received signal SIGSEGV, Segmentation fault. ...
      (Fedora)
    • Re: Fedora 9
      ... GNU gdb Fedora ... This is free software: you are free to change and redistribute it. ... Program received signal SIGSEGV, Segmentation fault. ... Missing separate debuginfos, use: debuginfo-install atk.i386 cairo.i386 ...
      (Fedora)