×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    Hi guys,

    I'm porting the libavcodec library, my project compile without error, but it crashs with Kern EXEC 3 error..
    I debugged my program, and it seems that the problem come from a malloc, that returns NULL.
    I use the debug tool, with a breakpoint and "step into" button I have a message that said :
    Code:
    Can't find a source file at "R:\wk29\stdlibs\libc\ualloc.cpp"
    Locate the file or edit the source lookup path to include its location.
    If I continue clicking on the "step into" button several times, I have this kind of error :
    Code:
    No source avaible for "0x6000F3F1(euser.dll)()"
    I made a simple program with just a malloc, and I saw the same errors with the debugger but finally it resume normally..
    Do you have any idea what's happend? Thanks.
    Regards and Peace.

    Cartouche67.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    Usually you do not have the complete Symbian source code at hand, so there is nothing wrong with the message. A step return (F7) would make more sense in such situations.
    Otherwise feel free to read the documentation of malloc anywhere, including the OpenC documentation.

  3. #3
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    how is your malloc function in used?
    Symbian && Android && iPhoneOS

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    Quote Originally Posted by paipeng View Post
    how is your malloc function in used?
    Paipeng, please. Cartouche67 simply ran out of memory, that is why malloc returned a NULL pointer. Then he decided to step into malloc, a function he has no source code for.
    So there is no error to solve. Ok, he can raise EPOCHEAPSIZE, but that is all.

  5. #5
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    i was wondering, how many spaces are allocated?! (Because it returns NULL.)
    Symbian && Android && iPhoneOS

  6. #6
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    Hi guys

    ya I discovered EPOCHEAPSIZE, now malloc don't fail but the Kern Error 3 persists .. I have to debug one more time now
    thank you for your answers

    [edit] in fact I try to encode bitmap images into mpeg2 video. The size of images are 640x360, and the memory allocation was too large I think, so I reduce the allocation and increase the heap size.
    Last edited by Cartouche67; 2009-09-15 at 18:37.
    Regards and Peace.

    Cartouche67.

  7. #7
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    Quote Originally Posted by Cartouche67 View Post
    Hi guys

    ya I discovered EPOCHEAPSIZE, now malloc don't fail but the Kern Error 3 persists .. I have to debug one more time now
    thank you for your answers

    [edit] in fact I try to encode bitmap images into mpeg2 video. The size of images are 640x360, and the memory allocation was too large I think, so I reduce the allocation and increase the heap size.
    Hi

    I am also try to play WMV amd OGG(Theora), so i download FFMPEG 0.5 and build all lib files and try to build ffmpeg but do not able to build GCCE.

    Please if possible than help me in for play WMV and OGG(Theora).
    my mailid: taruna.gajera@gmail.com

    Thanks in Advance

    Regards,
    SymbianTH

  8. #8
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    Hi SymbianTH, I don't think I'm able to help you ,but during my research I found this : http://www.xiph.org/oggz/
    perhaps it can help you, there is a symbian directory with a bld.inf file.


    I still have not succeeded to resolve my problem, I use the debug "step into" until a function that create quickly a lot of threads then it crash.
    Regards and Peace.

    Cartouche67.

  9. #9
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: malloc failed - "can't find source file at "R:\stdlibs\libc\src\ualloc.cpp"

    Hi,
    I resolved my problem, I just added the macro CONFIG_ENCODERS in the config.g file and it works, thanks.
    Regards and Peace.

    Cartouche67.

Similar Threads

  1. Build time get error in FFMPEG example.
    By SymbianTH in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2010-05-11, 16:11
  2. Regarding BMCONV
    By sanah007 in forum Symbian
    Replies: 2
    Last Post: 2009-05-26, 12:47
  3. Porting C Open source.
    By debasish1234 in forum Open C/C++
    Replies: 7
    Last Post: 2008-01-28, 11:06
  4. Replies: 1
    Last Post: 2005-05-26, 14:22
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×