Re: Segmentation fault at malloc.c:4232

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

 



hanpingtian@xxxxxxxxx wrote:
hi,

I have written a program and it failed with "Segmentation fault". With
gdb, it seems that there is something wrong in the malloc.c:

gdb) set args src.txt
(gdb) r
Starting program: /home/hpt/test/c/algorithms_in_c/4.17/compiler src.txt

Program received signal SIGSEGV, Segmentation fault.
_int_malloc (av=0x996120, bytes=14) at malloc.c:4232
4232          bck->fd = unsorted_chunks(av);
(gdb) where
#0  _int_malloc (av=0x996120, bytes=14) at malloc.c:4232
#1  0x008abb7b in __libc_malloc (bytes=14) at malloc.c:3553
#2  0x080486c1 in STACKinit (maxN=14) at STACK.c:8
#3  0x08048565 in main (argc=1, argv=0x0) at compiler.c:16

Is this a bug?

Yes, but almost certainly in your code not malloc.c .... What exactly do you have in compiler.c, particularly at line 16 ?

cheers Chris

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux